/// <summary> /// Returns first repetition of SUR_P09_PRODUCT (a Group object) - creates it if necessary. /// </summary> /// /// <exception cref="Exception"> Thrown when an exception error condition occurs. </exception> /// /// <returns> The product. </returns> public SUR_P09_PRODUCT GetPRODUCT() { SUR_P09_PRODUCT ret = null; try { ret = (SUR_P09_PRODUCT)this.GetStructure("PRODUCT"); } 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 SUR_P09_PRODUCT ///</summary> public void RemovePRODUCT(SUR_P09_PRODUCT toRemove) { this.RemoveStructure("PRODUCT", toRemove); }