示例#1
0
文件: CM_SPS.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a CM_SPS.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_SPS(Message message, string description)
     : base(message, description)
 {
     data = new Type[5];
     data[0] = new CE(message,"Specimen source name or code");
     data[1] = new TX(message,"Additives");
     data[2] = new TX(message,"Freetext");
     data[3] = new CE(message,"Body site");
     data[4] = new CE(message,"Site modifier");
 }
示例#2
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[10];
     data[0] = new CQ_QUANTITY(message,"Quantity");
     data[1] = new CM_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 ID(message, 0,"Priority");
     data[6] = new ST(message,"Condition");
     data[7] = new TX(message,"Text (TX)");
     data[8] = new ID(message, 0,"Conjunction");
     data[9] = new ST(message,"Order sequencing");
 }
示例#3
0
文件: OM2.cs 项目: snosrap/nhapi
 /**
    * Returns all repetitions of SI Conversion Factor (OM2-6).
    */
 public TX[] getSIConversionFactor()
 {
     TX[] ret = null;
     try {
     Type[] t = this.getField(6);
     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;
 }