コード例 #1
0
        /// <summary>
        /// Get AL1 Records from ARD_A19_QUERY_RESPONSE
        /// </summary>
        public static IEnumerable GetAL1Records(this ARD_A19_QUERY_RESPONSE message)
        {
            object[] result = message.GetRecords("AL1RepetitionsUsed", "GetAL1");

            if ((result != null) && (result.Count() > 0))
            {
                for (int i = 0; i < result.Count(); i++)
                {
                    yield return(result[i]);
                }
            }
        }
コード例 #2
0
ファイル: ARD_A19.cs プロジェクト: henriquetomaz/nhapi-1
        /**
         * Returns  first repetition of ARD_A19_QUERY_RESPONSE (a Group object) - creates it if necessary
         */
        public ARD_A19_QUERY_RESPONSE getQUERY_RESPONSE()
        {
            ARD_A19_QUERY_RESPONSE ret = null;

            try {
                ret = (ARD_A19_QUERY_RESPONSE)this.get_Renamed("QUERY_RESPONSE");
            } 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>
 /// Get all OBX Records from ARD_A19_QUERY_RESPONSE
 /// </summary>
 public static List <OBX> GetAllOBXRecords(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <OBX>("OBXRepetitionsUsed", "GetOBX"));
 }
コード例 #4
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to OBX
 /// </summary>
 public static OBX AddOBX(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetOBX(message.OBXRepetitionsUsed));
 }
コード例 #5
0
 /// <summary>
 /// Get all NK1 Records from ARD_A19_QUERY_RESPONSE
 /// </summary>
 public static List <NK1> GetAllNK1Records(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <NK1>("NK1RepetitionsUsed", "GetNK1"));
 }
コード例 #6
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to NK1
 /// </summary>
 public static NK1 AddNK1(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetNK1(message.NK1RepetitionsUsed));
 }
コード例 #7
0
 /// <summary>
 /// Get all INSURANCE Records from ARD_A19_QUERY_RESPONSE
 /// </summary>
 public static List <ARD_A19_INSURANCE> GetAllINSURANCERecords(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <ARD_A19_INSURANCE>("INSURANCERepetitionsUsed", "GetINSURANCE"));
 }
コード例 #8
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to INSURANCE
 /// </summary>
 public static ARD_A19_INSURANCE AddINSURANCE(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetINSURANCE(message.INSURANCERepetitionsUsed));
 }
コード例 #9
0
 /// <summary>
 /// Get all GT1 Records from ARD_A19_QUERY_RESPONSE
 /// </summary>
 public static List <GT1> GetAllGT1Records(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <GT1>("GT1RepetitionsUsed", "GetGT1"));
 }
コード例 #10
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to GT1
 /// </summary>
 public static GT1 AddGT1(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetGT1(message.GT1RepetitionsUsed));
 }
コード例 #11
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to PR1
 /// </summary>
 public static PR1 AddPR1(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetPR1(message.PR1RepetitionsUsed));
 }
コード例 #12
0
 /// <summary>
 /// Get all PR1 Records from ARD_A19_QUERY_RESPONSE
 /// </summary>
 public static List <PR1> GetAllPR1Records(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <PR1>("PR1RepetitionsUsed", "GetPR1"));
 }
コード例 #13
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to DG1
 /// </summary>
 public static DG1 AddDG1(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetDG1(message.DG1RepetitionsUsed));
 }
コード例 #14
0
 /// <summary>
 /// Get all DG1 Records from ARD_A19_QUERY_RESPONSE
 /// </summary>
 public static List <DG1> GetAllDG1Records(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <DG1>("DG1RepetitionsUsed", "GetDG1"));
 }
コード例 #15
0
 /// <summary>
 /// Add a new ARD_A19_QUERY_RESPONSE to AL1
 /// </summary>
 public static AL1 AddAL1(this ARD_A19_QUERY_RESPONSE message)
 {
     return(message.GetAL1(message.AL1RepetitionsUsed));
 }