/// <summary>
        /// Get ORDER Records from ORR_O02_PATIENT
        /// </summary>
        public static IEnumerable GetORDERRecords(this ORR_O02_PATIENT message)
        {
            object[] result = message.GetRecords("ORDERRepetitionsUsed", "GetORDER");

            if ((result != null) && (result.Count() > 0))
            {
                for (int i = 0; i < result.Count(); i++)
                {
                    yield return(result[i]);
                }
            }
        }
 /// <summary>
 /// Add a new ORR_O02_PATIENT to ORDER
 /// </summary>
 public static ORR_O02_ORDER AddORDER(this ORR_O02_PATIENT message)
 {
     return(message.GetORDER(message.ORDERRepetitionsUsed));
 }
 /// <summary>
 /// Get all ORDER Records from ORR_O02_PATIENT
 /// </summary>
 public static List <ORR_O02_ORDER> GetAllORDERRecords(this ORR_O02_PATIENT message)
 {
     return(message.GetAllRecords <ORR_O02_ORDER>("ORDERRepetitionsUsed", "GetORDER"));
 }
 /// <summary>
 /// Add a new ORR_O02_PATIENT to NTE
 /// </summary>
 public static NTE AddNTE(this ORR_O02_PATIENT message)
 {
     return(message.GetNTE(message.NTERepetitionsUsed));
 }
 /// <summary>
 /// Get all NTE Records from ORR_O02_PATIENT
 /// </summary>
 public static List <NTE> GetAllNTERecords(this ORR_O02_PATIENT message)
 {
     return(message.GetAllRecords <NTE>("NTERepetitionsUsed", "GetNTE"));
 }