コード例 #1
0
ファイル: CQ.cs プロジェクト: snosrap/nhapi
 /// <summary> Creates a CQ.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public CQ(Message message)
     : base(message)
 {
     data = new Type[2];
     data[0] = new NM(message);
     data[1] = new ST(message);
 }
コード例 #2
0
ファイル: CK.cs プロジェクト: snosrap/nhapi
 /// <summary> Creates a CK.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public CK(Message message)
     : base(message)
 {
     data = new Type[3];
     data[0] = new NM(message);
     data[1] = new NM(message);
     data[2] = new ID(message, 0);
 }
コード例 #3
0
ファイル: PV1.cs プロジェクト: snosrap/nhapi
 /**
    * Returns all repetitions of CONTRACT PERIOD (PV1-27).
    */
 public NM[] getCONTRACTPERIOD()
 {
     NM[] ret = null;
     try {
     Type[] t = this.getField(27);
     ret = new NM[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (NM)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;
 }
コード例 #4
0
 /// <summary> Creates a CQ.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public CQ(Message message) : base(message)
 {
     data    = new Type[2];
     data[0] = new NM(message);
     data[1] = new ST(message);
 }