///<summary> /// Returns a single repetition of Critical Range for Ordinal and Continuous Observations(OM2-7). /// throws HL7Exception if the repetition number is invalid. /// <param name="rep">The repetition number (this is a repeating field)</param> ///</summary> public RFR GetCriticalRangeForOrdinalAndContinuousObservations(int rep) { RFR ret = null; try { IType t = this.GetField(7, rep); ret = (RFR)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; }
/** * Returns a single repetition of Reference (Normal) Range - Ordinal and Continuous Observations(OM2-6). * @param rep the repetition number (this is a repeating field) * @throws HL7Exception if the repetition number is invalid. */ public RFR getReferenceNormalRangeOrdinalAndContinuousObservations(int rep) { RFR ret = null; try { Type t = this.getField(6, rep); ret = (RFR)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 a single repetition of Critical Range for Ordinal and Continuous Observations (OM2-7).</summary> /// <param name="rep">the repetition number (this is a repeating field) /// </param> /// <throws> HL7Exception if the repetition number is invalid. </throws> public virtual RFR getCriticalRangeForOrdinalAndContinuousObservations(int rep) { RFR ret = null; try { Type t = this.getField(7, rep); ret = (RFR)t; } catch (System.InvalidCastException) { throw new Exception(); } return(ret); }
///<summary> /// Returns all repetitions of Critical Range for Ordinal and Continuous Observations (OM2-7). ///</summary> public RFR[] GetCriticalRangeForOrdinalAndContinuousObservations() { RFR[] ret = null; try { IType[] t = this.GetField(7); ret = new RFR[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (RFR)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; }
/// <summary> Returns all repetitions of Critical Range for Ordinal and Continuous Observations (OM2-7).</summary> public virtual RFR[] getCriticalRangeForOrdinalAndContinuousObservations() { RFR[] ret = null; try { Type[] t = this.getField(7); ret = new RFR[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (RFR)t[i]; } } catch (System.InvalidCastException) { throw new Exception(); } catch (NuGenHL7Exception) { throw new Exception(); } return(ret); }