Example #1
0
  ///<summary>
  /// Returns all repetitions of Modifier Edit Code (GP2-8).
   ///</summary>
  public IS[] GetModifierEditCode() {
     IS[] ret = null;
    try {
        IType[] t = this.GetField(8);  
        ret = new IS[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (IS)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;
}
Example #2
0
        /// <summary>   Creates a DLD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public DLD(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 113, "Discharge Location");
            data[1] = new TS(message, "Effective Date");
        }
Example #3
0
 ///<summary>
 /// Creates a FC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public FC(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 64, "Financial Class Code");
     data[1] = new TS(message, "Effective Date");
 }
Example #4
0
        /// <summary>   Creates a RI. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public RI(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 335, "Repeat Pattern");
            data[1] = new ST(message, "Explicit Time Interval");
        }
Example #5
0
        /// <summary>   Creates a DTN. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public DTN(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 149, "Day Type");
            data[1] = new NM(message, "Number of Days");
        }