/// <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]); } } }
///<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); }
/// <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); }
/// <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")); }
/// <summary> /// Add a new BAR_P01_VISIT to NK1 /// </summary> public static NK1 AddNK1(this BAR_P01_VISIT message) { return(message.GetNK1(message.NK1RepetitionsUsed)); }
/// <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")); }
/// <summary> /// Add a new BAR_P01_VISIT to PR1 /// </summary> public static PR1 AddPR1(this BAR_P01_VISIT message) { return(message.GetPR1(message.PR1RepetitionsUsed)); }
/// <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")); }
/// <summary> /// Add a new BAR_P01_VISIT to DG1 /// </summary> public static DG1 AddDG1(this BAR_P01_VISIT message) { return(message.GetDG1(message.DG1RepetitionsUsed)); }
/// <summary> /// Add a new BAR_P01_VISIT to OBX /// </summary> public static OBX AddOBX(this BAR_P01_VISIT message) { return(message.GetOBX(message.OBXRepetitionsUsed)); }
/// <summary> /// Add a new BAR_P01_VISIT to IN1 /// </summary> public static IN1 AddIN1(this BAR_P01_VISIT message) { return(message.GetIN1(message.IN1RepetitionsUsed)); }
/// <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")); }
///<summary> ///Removes the given BAR_P01_VISIT ///</summary> public void RemoveVISIT(BAR_P01_VISIT toRemove) { this.RemoveStructure("VISIT", toRemove); }
/// <summary> /// Add a new BAR_P01_VISIT to GT1 /// </summary> public static GT1 AddGT1(this BAR_P01_VISIT message) { return(message.GetGT1(message.GT1RepetitionsUsed)); }
/// <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")); }
/// <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)); }
/// <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")); }
/// <summary> /// Add a new BAR_P01_VISIT to AL1 /// </summary> public static AL1 AddAL1(this BAR_P01_VISIT message) { return(message.GetAL1(message.AL1RepetitionsUsed)); }
/// <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")); }
/// <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")); }