Exemplo n.º 1
0
Arquivo: DIN.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a DIN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 2
0
Arquivo: MOC.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a MOC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 3
0
Arquivo: CQ.cs Projeto: 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");
 }
Exemplo n.º 4
0
Arquivo: VID.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a VID.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public VID(Message message, string description)
     : base(message, description)
 {
     data = new Type[3];
     data[0] = new ID(message, 0,"Version ID");
     data[1] = new CE(message,"Internationalization code");
     data[2] = new CE(message,"International version ID");
 }
Exemplo n.º 5
0
Arquivo: PRL.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a PRL.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 6
0
Arquivo: OSP.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a OSP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 7
0
Arquivo: ELD.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a ELD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 8
0
Arquivo: PIP.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a PIP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public PIP(Message message, string description)
     : base(message, description)
 {
     data = new Type[5];
     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");
     data[4] = new EI(message,"Facility (EI)");
 }
Exemplo n.º 9
0
Arquivo: CP.cs Projeto: 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, 205,"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, 298,"Range type");
 }
Exemplo n.º 10
0
Arquivo: SPS.cs Projeto: 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 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");
     data[6] = new CE(message,"Specimen role");
 }
Exemplo n.º 11
0
Arquivo: XPN.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a XPN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XPN(Message message, string description)
     : base(message, description)
 {
     data = new Type[11];
     data[0] = new FN(message,"Family name");
     data[1] = new ST(message,"Given name");
     data[2] = new ST(message,"Second and further given names or initials thereof");
     data[3] = new ST(message,"Suffix (e.g., JR or III)");
     data[4] = new ST(message,"Prefix (e.g., DR)");
     data[5] = new IS(message, 0,"Degree (e.g., MD)");
     data[6] = new ID(message, 0,"Name type code");
     data[7] = new ID(message, 0,"Name Representation code");
     data[8] = new CE(message,"Name context");
     data[9] = new DR(message,"Name validity range");
     data[10] = new ID(message, 0,"Name assembly order");
 }
Exemplo n.º 12
0
Arquivo: TQ.cs Projeto: 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 (TX)");
     data[8] = new ID(message, 0,"Conjunction component");
     data[9] = new OSD(message,"Order sequencing");
     data[10] = new CE(message,"Occurrence duration");
     data[11] = new NM(message,"Total occurences");
 }
Exemplo n.º 13
0
 ///<summary>
 /// Creates a XCN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XCN(Message message, string description) : base(message, description)
 {
     data     = new Type[18];
     data[0]  = new ST(message, "ID number (ST)");
     data[1]  = new FN(message, "Family name");
     data[2]  = new ST(message, "Given name");
     data[3]  = new ST(message, "Second and further given names or initials thereof");
     data[4]  = new ST(message, "Suffix (e.g., JR or III)");
     data[5]  = new ST(message, "Prefix (e.g., DR)");
     data[6]  = new IS(message, 0, "Degree (e.g., MD)");
     data[7]  = new IS(message, 0, "Source table");
     data[8]  = new HD(message, "Assigning authority");
     data[9]  = new ID(message, 0, "Name type code");
     data[10] = new ST(message, "Identifier check digit");
     data[11] = new ID(message, 0, "Code identifying the check digit scheme employed");
     data[12] = new IS(message, 0, "Identifier type code (IS)");
     data[13] = new HD(message, "Assigning facility");
     data[14] = new ID(message, 0, "Name Representation code");
     data[15] = new CE(message, "Name context");
     data[16] = new DR(message, "Name validity range");
     data[17] = new ID(message, 0, "Name assembly order");
 }
Exemplo n.º 14
0
Arquivo: XCN.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a XCN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XCN(Message message, string description)
     : base(message, description)
 {
     data = new Type[18];
     data[0] = new ST(message,"ID number (ST)");
     data[1] = new FN(message,"Family name");
     data[2] = new ST(message,"Given name");
     data[3] = new ST(message,"Second and further given names or initials thereof");
     data[4] = new ST(message,"Suffix (e.g., JR or III)");
     data[5] = new ST(message,"Prefix (e.g., DR)");
     data[6] = new IS(message, 0,"Degree (e.g., MD)");
     data[7] = new IS(message, 0,"Source table");
     data[8] = new HD(message,"Assigning authority");
     data[9] = new ID(message, 0,"Name type code");
     data[10] = new ST(message,"Identifier check digit");
     data[11] = new ID(message, 0,"Code identifying the check digit scheme employed");
     data[12] = new IS(message, 0,"Identifier type code (IS)");
     data[13] = new HD(message,"Assigning facility");
     data[14] = new ID(message, 0,"Name Representation code");
     data[15] = new CE(message,"Name context");
     data[16] = new DR(message,"Name validity range");
     data[17] = new ID(message, 0,"Name assembly order");
 }
Exemplo n.º 15
0
 ///<summary>
 /// Creates a MOC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 16
0
Arquivo: CSR.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Stratum for Study Randomization (CSR-13).
    */
 public CE[] getStratumForStudyRandomization()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(13);
     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;
 }
Exemplo n.º 17
0
Arquivo: OM3.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Normal Text/Codes for Categorical Observations (OM3-4).
    */
 public CE[] getNormalTextCodesForCategoricalObservations()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(4);
     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;
 }
Exemplo n.º 18
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");
 }
Exemplo n.º 19
0
Arquivo: OM5.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Test/Observations Included within an Ordered Test Battery (OM5-2).
    */
 public CE[] getTestObservationsIncludedWithinAnOrderedTestBattery()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(2);
     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;
 }
Exemplo n.º 20
0
 ///<summary>
 /// Creates a DIN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public 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");
 }
Exemplo n.º 21
0
Arquivo: OM1.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Outside Site(s) Where Observation may be Performed (OM1-27).
    */
 public CE[] getOutsideSiteSWhereObservationMayBePerformed()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(27);
     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;
 }
Exemplo n.º 22
0
Arquivo: PRA.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Government Reimbursement Billing Eligibility (PRA-11).
    */
 public CE[] getGovernmentReimbursementBillingEligibility()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(11);
     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;
 }
Exemplo n.º 23
0
Arquivo: RXO.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Provider's Pharmacy/Treatment Instructions (RXO-6).
    */
 public CE[] getProviderSPharmacyTreatmentInstructions()
 {
     CE[] ret = null;
     try {
     Type[] t = this.getField(6);
     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;
 }