/// <summary> /// Returns first repetition of ORF_R04_ORDER (a Group object) - creates it if necessary. /// </summary> /// /// <exception cref="Exception"> Thrown when an exception error condition occurs. </exception> /// /// <returns> The order. </returns> public ORF_R04_ORDER GetORDER() { ORF_R04_ORDER ret = null; try { ret = (ORF_R04_ORDER)this.GetStructure("ORDER"); } 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); }
/// <summary> /// Get OBSERVATION Records from ORF_R04_ORDER /// </summary> public static IEnumerable GetOBSERVATIONRecords(this ORF_R04_ORDER message) { object[] result = message.GetRecords("OBSERVATIONRepetitionsUsed", "GetOBSERVATION"); if ((result != null) && (result.Count() > 0)) { for (int i = 0; i < result.Count(); i++) { yield return(result[i]); } } }
/// <summary> Returns first repetition of ORF_R04_ORDER (a Group object) - creates it if necessary</summary> public virtual ORF_R04_ORDER getORDER() { ORF_R04_ORDER ret = null; try { ret = (ORF_R04_ORDER)this.get_Renamed("ORDER"); } catch (NuGenHL7Exception) { throw new Exception(); } return(ret); }
/// <summary> /// Add a new ORF_R04_ORDER to OBSERVATION /// </summary> public static ORF_R04_OBSERVATION AddOBSERVATION(this ORF_R04_ORDER message) { return(message.GetOBSERVATION(message.OBSERVATIONRepetitionsUsed)); }
/// <summary> /// Get all OBSERVATION Records from ORF_R04_ORDER /// </summary> public static List <ORF_R04_OBSERVATION> GetAllOBSERVATIONRecords(this ORF_R04_ORDER message) { return(message.GetAllRecords <ORF_R04_OBSERVATION>("OBSERVATIONRepetitionsUsed", "GetOBSERVATION")); }
/// <summary> /// Add a new ORF_R04_ORDER to NTE /// </summary> public static NTE AddNTE(this ORF_R04_ORDER message) { return(message.GetNTE(message.NTERepetitionsUsed)); }
/// <summary> /// Get all NTE Records from ORF_R04_ORDER /// </summary> public static List <NTE> GetAllNTERecords(this ORF_R04_ORDER message) { return(message.GetAllRecords <NTE>("NTERepetitionsUsed", "GetNTE")); }
///<summary> ///Removes the given ORF_R04_ORDER ///</summary> public void RemoveORDER(ORF_R04_ORDER toRemove) { this.RemoveStructure("ORDER", toRemove); }