コード例 #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
ファイル: TS.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a TS.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public TS(Message message)
     : base(message)
 {
     data = new Type[2];
     data[0] = new TSComponentOne(message);
     data[1] = new ST(message);
 }
コード例 #3
0
ファイル: CN.cs プロジェクト: snosrap/nhapi
 /// <summary> Creates a CN.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public CN(Message message)
     : base(message)
 {
     data = new Type[5];
     data[0] = new ST(message);
     data[1] = new ST(message);
     data[2] = new ST(message);
     data[3] = new ST(message);
     data[4] = new ST(message);
 }
コード例 #4
0
ファイル: CE.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a CE.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CE(Message message, string description)
     : base(message, description)
 {
     data = new Type[6];
     data[0] = new ID(message, 0,"Identifier");
     data[1] = new ST(message,"Text");
     data[2] = new ST(message,"Name of coding system");
     data[3] = new ST(message,"Alternate identifier");
     data[4] = new ST(message,"Alternate text");
     data[5] = new ST(message,"Name of alternate coding system");
 }
コード例 #5
0
ファイル: AD.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a AD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public AD(Message message)
     : base(message)
 {
     data = new Type[8];
     data[0] = new ST(message);
     data[1] = new ST(message);
     data[2] = new ST(message);
     data[3] = new ST(message);
     data[4] = new ST(message);
     data[5] = new ID(message, 0);
     data[6] = new ID(message, 0);
     data[7] = new ST(message);
 }
コード例 #6
0
ファイル: QRD.cs プロジェクト: snosrap/nhapi
 /**
    * Returns all repetitions of WHO SUBJECT FILTER (QRD-8).
    */
 public ST[] getWHOSUBJECTFILTER()
 {
     ST[] ret = null;
     try {
     Type[] t = this.getField(8);
     ret = new ST[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (ST)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;
 }
コード例 #7
0
 ///<summary>
 /// Creates a TS.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public TS(Message message) : base(message)
 {
     data    = new Type[2];
     data[0] = new TSComponentOne(message);
     data[1] = new ST(message);
 }