コード例 #1
0
ファイル: GP2.cs プロジェクト: liddictm/nHapi
  ///<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;
}
コード例 #2
0
ファイル: DLD.cs プロジェクト: erdemsarigh/nhapi
        /// <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");
        }
コード例 #3
0
ファイル: FC.cs プロジェクト: tristanwilson111/nHapi
 ///<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");
 }
コード例 #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");
        }
コード例 #5
0
ファイル: DTN.cs プロジェクト: erdemsarigh/nhapi
        /// <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");
        }