Пример #1
0
        ///<summary>
        /// Returns  first repetition of ORF_R04_QUERY_RESPONSE (a Group object) - creates it if necessary
        ///</summary>
        public ORF_R04_QUERY_RESPONSE GetQUERY_RESPONSE()
        {
            ORF_R04_QUERY_RESPONSE ret = null;

            try {
                ret = (ORF_R04_QUERY_RESPONSE)this.GetStructure("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);
        }
Пример #2
0
        /// <summary>
        /// Get NTE Records from ORF_R04_QUERY_RESPONSE
        /// </summary>
        public static IEnumerable GetNTERecords(this ORF_R04_QUERY_RESPONSE message)
        {
            object[] result = message.GetRecords("NTERepetitionsUsed", "GetNTE");

            if ((result != null) && (result.Count() > 0))
            {
                for (int i = 0; i < result.Count(); i++)
                {
                    yield return(result[i]);
                }
            }
        }
Пример #3
0
        /// <summary> Returns  first repetition of ORF_R04_QUERY_RESPONSE (a Group object) - creates it if necessary</summary>
        public virtual ORF_R04_QUERY_RESPONSE getQUERY_RESPONSE()
        {
            ORF_R04_QUERY_RESPONSE ret = null;

            try
            {
                ret = (ORF_R04_QUERY_RESPONSE)this.get_Renamed("QUERY_RESPONSE");
            }
            catch (NuGenHL7Exception)
            {
                throw new Exception();
            }
            return(ret);
        }
Пример #4
0
 ///<summary>
 ///Removes the given ORF_R04_QUERY_RESPONSE
 ///</summary>
 public void RemoveQUERY_RESPONSE(ORF_R04_QUERY_RESPONSE toRemove)
 {
     this.RemoveStructure("QUERY_RESPONSE", toRemove);
 }
Пример #5
0
 /// <summary>
 /// Add a new ORF_R04_QUERY_RESPONSE to NTE
 /// </summary>
 public static NTE AddNTE(this ORF_R04_QUERY_RESPONSE message)
 {
     return(message.GetNTE(message.NTERepetitionsUsed));
 }
Пример #6
0
 /// <summary>
 /// Get all NTE Records from ORF_R04_QUERY_RESPONSE
 /// </summary>
 public static List <NTE> GetAllNTERecords(this ORF_R04_QUERY_RESPONSE message)
 {
     return(message.GetAllRecords <NTE>("NTERepetitionsUsed", "GetNTE"));
 }