/** * Returns a single repetition of Override Reason Code(ERR-11). * @param rep the repetition number (this is a repeating field) * @throws HL7Exception if the repetition number is invalid. */ public CWE getOverrideReasonCode(int rep) { CWE ret = null; try { Type t = this.getField(11, rep); ret = (CWE)t; } catch (System.Exception ex) { HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex); throw new System.Exception("An unexpected error ocurred", ex); } return(ret); }
///<summary> /// Returns all repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21). ///</summary> public CWE[] GetPharmacyTreatmentSupplierSSpecialDispensingInstructions() { CWE[] ret = null; try { IType[] t = this.GetField(21); ret = new CWE[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (CWE)t[i]; } } catch (HL7Exception he) { HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value. This is a bug.", he); throw new System.Exception("An unexpected error ocurred", he); } catch (System.Exception cce) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value. This is a bug.", cce); throw new System.Exception("An unexpected error ocurred", cce); } return ret; }