/// <summary> /// Get PATIENT Records from BAR_P02 /// </summary> public static IEnumerable GetPATIENTRecords(this BAR_P02 message) { object[] result = message.GetRecords("PATIENTRepetitionsUsed", "GetPATIENT"); if ((result != null) && (result.Count() > 0)) { for (int i = 0; i < result.Count(); i++) { yield return(result[i]); } } }
/// <summary> /// Add a new BAR_P02 to PATIENT /// </summary> public static BAR_P02_PATIENT AddPATIENT(this BAR_P02 message) { return(message.GetPATIENT(message.PATIENTRepetitionsUsed)); }
/// <summary> /// Get all PATIENT Records from BAR_P02 /// </summary> public static List <BAR_P02_PATIENT> GetAllPATIENTRecords(this BAR_P02 message) { return(message.GetAllRecords <BAR_P02_PATIENT>("PATIENTRepetitionsUsed", "GetPATIENT")); }