Esempio n. 1
0
 ///<summary>
 /// Creates a CM_RANGE.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_RANGE(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new CE(message,"Low Value");
     data[1] = new CE(message,"High Value");
 }
Esempio n. 2
0
 ///<summary>
 /// Creates a CM_OCD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_OCD(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new CE(message,"Occurrence code");
     data[1] = new DT(message,"Occurrence date");
 }
Esempio n. 3
0
 ///<summary>
 /// Creates a CM_MOC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_MOC(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new MO(message,"Dollar amount");
     data[1] = new CE(message,"Charge code");
 }
Esempio n. 4
0
File: CQ.cs Progetto: snosrap/nhapi
 ///<summary>
 /// Creates a CQ.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CQ(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new NM(message,"Quantity");
     data[1] = new CE(message,"Units");
 }
Esempio n. 5
0
 ///<summary>
 /// Creates a CM_DIN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_DIN(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new TS(message,"Date");
     data[1] = new CE(message,"Institution name");
 }
Esempio n. 6
0
 ///<summary>
 /// Creates a CM_OSP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_OSP(Message message, string description)
     : base(message, description)
 {
     data = new Type[3];
     data[0] = new CE(message,"Occurrence span code");
     data[1] = new DT(message,"Occurrence span start date");
     data[2] = new DT(message,"Occurrence span stop date");
 }
Esempio n. 7
0
 ///<summary>
 /// Creates a CM_PRL.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_PRL(Message message, string description)
     : base(message, description)
 {
     data = new Type[3];
     data[0] = new CE(message,"OBX-3 observation identifier of parent result");
     data[1] = new ST(message,"OBX-4 sub-ID of parent result");
     data[2] = new TX(message,"Part of OBX-5 observation result from parent");
 }
Esempio n. 8
0
 ///<summary>
 /// Creates a CM_PIP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_PIP(Message message, string description)
     : base(message, description)
 {
     data = new Type[4];
     data[0] = new CE(message,"Privilege");
     data[1] = new CE(message,"Privilege class");
     data[2] = new DT(message,"Expiration date");
     data[3] = new DT(message,"Activation date");
 }
Esempio n. 9
0
 ///<summary>
 /// Creates a CM_ELD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_ELD(Message message, string description)
     : base(message, description)
 {
     data = new Type[4];
     data[0] = new ST(message,"Segment ID");
     data[1] = new NM(message,"Sequence");
     data[2] = new NM(message,"Field position");
     data[3] = new CE(message,"Code identifying error");
 }
Esempio n. 10
0
File: CP.cs Progetto: snosrap/nhapi
 ///<summary>
 /// Creates a CP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CP(Message message, string description)
     : base(message, description)
 {
     data = new Type[6];
     data[0] = new MO(message,"Price");
     data[1] = new ID(message, 0,"Price type");
     data[2] = new NM(message,"From value");
     data[3] = new NM(message,"To value");
     data[4] = new CE(message,"Range units");
     data[5] = new ID(message, 0,"Range type");
 }
Esempio n. 11
0
 ///<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[6];
     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");
     data[5] = new CE(message,"Collection modifier method code");
 }
Esempio n. 12
0
File: OBX.cs Progetto: snosrap/nhapi
 /**
    * Returns all repetitions of Observation Method (OBX-17).
    */
 public CE[] getObservationMethod()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(17);
     ret = new CE[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (CE)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;
 }
Esempio n. 13
0
File: RXE.cs Progetto: snosrap/nhapi
 /**
    * Returns all repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
    */
 public CE[] getPharmacyTreatmentSupplierSSpecialDispensingInstructions()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(21);
     ret = new CE[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (CE)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;
 }
Esempio n. 14
0
 ///<summary>
 /// Creates a CM_MOC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_MOC(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new MO(message, "Dollar amount");
     data[1] = new CE(message, "Charge code");
 }
Esempio n. 15
0
 ///<summary>
 /// Creates a CQ.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CQ(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new NM(message, "Quantity");
     data[1] = new CE(message, "Units");
 }
Esempio n. 16
0
 ///<summary>
 /// Creates a CM_OCD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_OCD(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new CE(message, "Occurrence code");
     data[1] = new DT(message, "Occurrence date");
 }
Esempio n. 17
0
 ///<summary>
 /// Creates a CM_RANGE.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_RANGE(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new CE(message, "Low Value");
     data[1] = new CE(message, "High Value");
 }
Esempio n. 18
0
 ///<summary>
 /// Creates a CM_DIN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CM_DIN(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new TS(message, "Date");
     data[1] = new CE(message, "Institution name");
 }