Example #1
0
        /// <summary>
        /// Returns  first repetition of ORU_R03_PATIENT_RESULT (a Group object) - creates it if
        /// necessary.
        /// </summary>
        ///
        /// <exception cref="Exception">    Thrown when an exception error condition occurs. </exception>
        ///
        /// <returns>   The patient result. </returns>

        public ORU_R03_PATIENT_RESULT GetPATIENT_RESULT()
        {
            ORU_R03_PATIENT_RESULT ret = null;

            try {
                ret = (ORU_R03_PATIENT_RESULT)this.GetStructure("PATIENT_RESULT");
            } 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);
        }
Example #2
0
        /// <summary>
        /// Get ORDER_OBSERVATION Records from ORU_R03_PATIENT_RESULT
        /// </summary>
        public static IEnumerable GetORDER_OBSERVATIONRecords(this ORU_R03_PATIENT_RESULT message)
        {
            object[] result = message.GetRecords("ORDER_OBSERVATIONRepetitionsUsed", "GetORDER_OBSERVATION");

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

            try
            {
                ret = (ORU_R03_PATIENT_RESULT)this.get_Renamed("PATIENT_RESULT");
            }
            catch (NuGenHL7Exception)
            {
                throw new Exception();
            }
            return(ret);
        }
Example #4
0
 ///<summary>
 ///Removes the given ORU_R03_PATIENT_RESULT
 ///</summary>
 public void RemovePATIENT_RESULT(ORU_R03_PATIENT_RESULT toRemove)
 {
     this.RemoveStructure("PATIENT_RESULT", toRemove);
 }
Example #5
0
 /// <summary>
 /// Add a new ORU_R03_PATIENT_RESULT to ORDER_OBSERVATION
 /// </summary>
 public static ORU_R03_ORDER_OBSERVATION AddORDER_OBSERVATION(this ORU_R03_PATIENT_RESULT message)
 {
     return(message.GetORDER_OBSERVATION(message.ORDER_OBSERVATIONRepetitionsUsed));
 }
Example #6
0
 /// <summary>
 /// Get all ORDER_OBSERVATION Records from ORU_R03_PATIENT_RESULT
 /// </summary>
 public static List <ORU_R03_ORDER_OBSERVATION> GetAllORDER_OBSERVATIONRecords(this ORU_R03_PATIENT_RESULT message)
 {
     return(message.GetAllRecords <ORU_R03_ORDER_OBSERVATION>("ORDER_OBSERVATIONRepetitionsUsed", "GetORDER_OBSERVATION"));
 }