/// <summary> /// Returns first repetition of ORL_O22_GENERAL_ORDER (a Group object) - creates it if necessary. /// </summary> /// /// <exception cref="Exception"> Thrown when an exception error condition occurs. </exception> /// /// <returns> The general order. </returns> public ORL_O22_GENERAL_ORDER GetGENERAL_ORDER() { ORL_O22_GENERAL_ORDER ret = null; try { ret = (ORL_O22_GENERAL_ORDER)this.GetStructure("GENERAL_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> ///Removes the given ORL_O22_GENERAL_ORDER ///</summary> public void RemoveGENERAL_ORDER(ORL_O22_GENERAL_ORDER toRemove) { this.RemoveStructure("GENERAL_ORDER", toRemove); }