コード例 #1
0
ファイル: JCC.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a JCC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public JCC(Message message, string description)
     : base(message, description)
 {
     data = new Type[3];
     data[0] = new IS(message, 327,"Job Code");
     data[1] = new IS(message, 328,"Job Class");
     data[2] = new TX(message,"Job Description Text");
 }
コード例 #2
0
ファイル: ED.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a ED.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public ED(Message message, string description)
     : base(message, description)
 {
     data = new Type[5];
     data[0] = new HD(message,"Source Application");
     data[1] = new ID(message, 191,"Type of Data");
     data[2] = new ID(message, 291,"Data Subtype");
     data[3] = new ID(message, 299,"Encoding");
     data[4] = new TX(message,"Data");
 }
コード例 #3
0
ファイル: SPS.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a SPS.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public SPS(Message message, string description)
     : base(message, description)
 {
     data = new Type[7];
     data[0] = new CWE(message,"Specimen Source Name or Code");
     data[1] = new CWE(message,"Additives");
     data[2] = new TX(message,"Specimen Collection Method");
     data[3] = new CWE(message,"Body Site");
     data[4] = new CWE(message,"Site Modifier");
     data[5] = new CWE(message,"Collection Method Modifier Code");
     data[6] = new CWE(message,"Specimen Role");
 }
コード例 #4
0
ファイル: RFR.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a RFR.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public RFR(Message message, string description)
     : base(message, description)
 {
     data = new Type[7];
     data[0] = new NR(message,"Numeric Range");
     data[1] = new IS(message, 1,"Administrative Sex");
     data[2] = new NR(message,"Age Range");
     data[3] = new NR(message,"Gestational Age Range");
     data[4] = new ST(message,"Species");
     data[5] = new ST(message,"Race/subspecies");
     data[6] = new TX(message,"Conditions");
 }
コード例 #5
0
ファイル: TQ.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Creates a TQ.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public TQ(Message message, string description)
     : base(message, description)
 {
     data = new Type[12];
     data[0] = new CQ(message,"Quantity");
     data[1] = new RI(message,"Interval");
     data[2] = new ST(message,"Duration");
     data[3] = new TS(message,"Start Date/Time");
     data[4] = new TS(message,"End Date/Time");
     data[5] = new ST(message,"Priority");
     data[6] = new ST(message,"Condition");
     data[7] = new TX(message,"Text");
     data[8] = new ID(message, 472,"Conjunction");
     data[9] = new OSD(message,"Order Sequencing");
     data[10] = new CE(message,"Occurrence Duration");
     data[11] = new NM(message,"Total Occurrences");
 }
コード例 #6
0
ファイル: ECD.cs プロジェクト: snosrap/nhapi
 /**
    * Returns all repetitions of Parameters (ECD-5).
    */
 public TX[] getParameters()
 {
     TX[] ret = null;
     try {
     Type[] t = this.getField(5);
     ret = new TX[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (TX)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;
 }