コード例 #1
0
        /// <summary>
        /// Get GT1 Records from BAR_P01_VISIT
        /// </summary>
        public static IEnumerable GetGT1Records(this BAR_P01_VISIT message)
        {
            object[] result = message.GetRecords("GT1RepetitionsUsed", "GetGT1");

            if ((result != null) && (result.Count() > 0))
            {
                for (int i = 0; i < result.Count(); i++)
                {
                    yield return(result[i]);
                }
            }
        }
コード例 #2
0
        ///<summary>
        /// Returns  first repetition of BAR_P01_VISIT (a Group object) - creates it if necessary
        ///</summary>
        public BAR_P01_VISIT GetVISIT()
        {
            BAR_P01_VISIT ret = null;

            try {
                ret = (BAR_P01_VISIT)this.GetStructure("VISIT");
            } catch (HL7Exception e) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
                throw new System.Exception("An unexpected error ocurred", e);
            }
            return(ret);
        }
コード例 #3
0
        /// <summary> Returns  first repetition of BAR_P01_VISIT (a Group object) - creates it if necessary</summary>
        public virtual BAR_P01_VISIT getVISIT()
        {
            BAR_P01_VISIT ret = null;

            try
            {
                ret = (BAR_P01_VISIT)this.get_Renamed("VISIT");
            }
            catch (NuGenHL7Exception)
            {
                throw new Exception();
            }
            return(ret);
        }
コード例 #4
0
 /// <summary>
 /// Get all AL1 Records from BAR_P01_VISIT
 /// </summary>
 public static List <AL1> GetAllAL1Records(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <AL1>("AL1RepetitionsUsed", "GetAL1"));
 }
コード例 #5
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to NK1
 /// </summary>
 public static NK1 AddNK1(this BAR_P01_VISIT message)
 {
     return(message.GetNK1(message.NK1RepetitionsUsed));
 }
コード例 #6
0
 /// <summary>
 /// Get all PR1 Records from BAR_P01_VISIT
 /// </summary>
 public static List <PR1> GetAllPR1Records(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <PR1>("PR1RepetitionsUsed", "GetPR1"));
 }
コード例 #7
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to PR1
 /// </summary>
 public static PR1 AddPR1(this BAR_P01_VISIT message)
 {
     return(message.GetPR1(message.PR1RepetitionsUsed));
 }
コード例 #8
0
 /// <summary>
 /// Get all DG1 Records from BAR_P01_VISIT
 /// </summary>
 public static List <DG1> GetAllDG1Records(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <DG1>("DG1RepetitionsUsed", "GetDG1"));
 }
コード例 #9
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to DG1
 /// </summary>
 public static DG1 AddDG1(this BAR_P01_VISIT message)
 {
     return(message.GetDG1(message.DG1RepetitionsUsed));
 }
コード例 #10
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to OBX
 /// </summary>
 public static OBX AddOBX(this BAR_P01_VISIT message)
 {
     return(message.GetOBX(message.OBXRepetitionsUsed));
 }
コード例 #11
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to IN1
 /// </summary>
 public static IN1 AddIN1(this BAR_P01_VISIT message)
 {
     return(message.GetIN1(message.IN1RepetitionsUsed));
 }
コード例 #12
0
 /// <summary>
 /// Get all NK1 Records from BAR_P01_VISIT
 /// </summary>
 public static List <NK1> GetAllNK1Records(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <NK1>("NK1RepetitionsUsed", "GetNK1"));
 }
コード例 #13
0
 ///<summary>
 ///Removes the given BAR_P01_VISIT
 ///</summary>
 public void RemoveVISIT(BAR_P01_VISIT toRemove)
 {
     this.RemoveStructure("VISIT", toRemove);
 }
コード例 #14
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to GT1
 /// </summary>
 public static GT1 AddGT1(this BAR_P01_VISIT message)
 {
     return(message.GetGT1(message.GT1RepetitionsUsed));
 }
コード例 #15
0
 /// <summary>
 /// Get all GT1 Records from BAR_P01_VISIT
 /// </summary>
 public static List <GT1> GetAllGT1Records(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <GT1>("GT1RepetitionsUsed", "GetGT1"));
 }
コード例 #16
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to INSURANCE
 /// </summary>
 public static BAR_P01_INSURANCE AddINSURANCE(this BAR_P01_VISIT message)
 {
     return(message.GetINSURANCE(message.INSURANCERepetitionsUsed));
 }
コード例 #17
0
 /// <summary>
 /// Get all INSURANCE Records from BAR_P01_VISIT
 /// </summary>
 public static List <BAR_P01_INSURANCE> GetAllINSURANCERecords(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <BAR_P01_INSURANCE>("INSURANCERepetitionsUsed", "GetINSURANCE"));
 }
コード例 #18
0
 /// <summary>
 /// Add a new BAR_P01_VISIT to AL1
 /// </summary>
 public static AL1 AddAL1(this BAR_P01_VISIT message)
 {
     return(message.GetAL1(message.AL1RepetitionsUsed));
 }
コード例 #19
0
 /// <summary>
 /// Get all IN1 Records from BAR_P01_VISIT
 /// </summary>
 public static List <IN1> GetAllIN1Records(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <IN1>("IN1RepetitionsUsed", "GetIN1"));
 }
コード例 #20
0
 /// <summary>
 /// Get all OBX Records from BAR_P01_VISIT
 /// </summary>
 public static List <OBX> GetAllOBXRecords(this BAR_P01_VISIT message)
 {
     return(message.GetAllRecords <OBX>("OBXRepetitionsUsed", "GetOBX"));
 }