Пример #1
0
 ///<summary>
 /// Creates a PPN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public PPN(Message message, string description)
     : base(message, description)
 {
     data = new Type[24];
     data[0] = new ST(message,"ID Number");
     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, 360,"Degree (e.g., MD)");
     data[7] = new IS(message, 297,"Source Table");
     data[8] = new HD(message,"Assigning Authority");
     data[9] = new ID(message, 200,"Name Type Code");
     data[10] = new ST(message,"Identifier Check Digit");
     data[11] = new ID(message, 61,"Check Digit Scheme");
     data[12] = new ID(message, 203,"Identifier Type Code");
     data[13] = new HD(message,"Assigning Facility");
     data[14] = new TS(message,"Date/Time Action Performed");
     data[15] = new ID(message, 465,"Name Representation Code");
     data[16] = new CE(message,"Name Context");
     data[17] = new DR(message,"Name Validity Range");
     data[18] = new ID(message, 444,"Name Assembly Order");
     data[19] = new TS(message,"Effective Date");
     data[20] = new TS(message,"Expiration Date");
     data[21] = new ST(message,"Professional Suffix");
     data[22] = new CWE(message,"Assigning Jurisdiction");
     data[23] = new CWE(message,"Assigning Agency or Department");
 }
Пример #2
0
 ///<summary>
 /// Creates a SCV.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public SCV(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new CWE(message,"Parameter Class");
     data[1] = new ST(message,"Parameter Value");
 }
Пример #3
0
 ///<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
 ///<summary>
 /// Creates a CX.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CX(Message message, string description) : base(message, description)
 {
     data    = new Type[10];
     data[0] = new ST(message, "ID Number");
     data[1] = new ST(message, "Check Digit");
     data[2] = new ID(message, 61, "Check Digit Scheme");
     data[3] = new HD(message, "Assigning Authority");
     data[4] = new ID(message, 203, "Identifier Type Code");
     data[5] = new HD(message, "Assigning Facility");
     data[6] = new DT(message, "Effective Date");
     data[7] = new DT(message, "Expiration Date");
     data[8] = new CWE(message, "Assigning Jurisdiction");
     data[9] = new CWE(message, "Assigning Agency or Department");
 }
Пример #5
0
 ///<summary>
 /// Creates a RPT.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public RPT(Message message, string description) : base(message, description)
 {
     data     = new Type[11];
     data[0]  = new CWE(message, "Repeat Pattern Code");
     data[1]  = new ID(message, 527, "Calendar Alignment");
     data[2]  = new NM(message, "Phase Range Begin Value");
     data[3]  = new NM(message, "Phase Range End Value");
     data[4]  = new NM(message, "Period Quantity");
     data[5]  = new IS(message, 0, "Period Units");
     data[6]  = new ID(message, 136, "Institution Specified Time");
     data[7]  = new ID(message, 528, "Event");
     data[8]  = new NM(message, "Event Offset Quantity");
     data[9]  = new IS(message, 0, "Event Offset Units");
     data[10] = new GTS(message, "General Timing Specification");
 }
Пример #6
0
 ///<summary>
 /// Creates a CX.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CX(Message message, string description)
     : base(message, description)
 {
     data = new Type[10];
     data[0] = new ST(message,"ID Number");
     data[1] = new ST(message,"Check Digit");
     data[2] = new ID(message, 61,"Check Digit Scheme");
     data[3] = new HD(message,"Assigning Authority");
     data[4] = new ID(message, 203,"Identifier Type Code");
     data[5] = new HD(message,"Assigning Facility");
     data[6] = new DT(message,"Effective Date");
     data[7] = new DT(message,"Expiration Date");
     data[8] = new CWE(message,"Assigning Jurisdiction");
     data[9] = new CWE(message,"Assigning Agency or Department");
 }
Пример #7
0
 ///<summary>
 /// Creates a RPT.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public RPT(Message message, string description)
     : base(message, description)
 {
     data = new Type[11];
     data[0] = new CWE(message,"Repeat Pattern Code");
     data[1] = new ID(message, 527,"Calendar Alignment");
     data[2] = new NM(message,"Phase Range Begin Value");
     data[3] = new NM(message,"Phase Range End Value");
     data[4] = new NM(message,"Period Quantity");
     data[5] = new IS(message, 0,"Period Units");
     data[6] = new ID(message, 136,"Institution Specified Time");
     data[7] = new ID(message, 528,"Event");
     data[8] = new NM(message,"Event Offset Quantity");
     data[9] = new IS(message, 0,"Event Offset Units");
     data[10] = new GTS(message,"General Timing Specification");
 }
Пример #8
0
 /**
    * Returns all repetitions of Pharmaceutical Substance Alternative (RXE-37).
    */
 public CWE[] getPharmaceuticalSubstanceAlternative()
 {
     CWE[] ret = null;
     try {
     Type[] t = this.getField(37);
     ret = new CWE[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (CWE)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;
 }
Пример #9
0
 /**
    * Returns all repetitions of Specimen Source Site Modifier (SPM-9).
    */
 public CWE[] getSpecimenSourceSiteModifier()
 {
     CWE[] ret = null;
     try {
     Type[] t = this.getField(9);
     ret = new CWE[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (CWE)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;
 }
Пример #10
0
 /**
    * Returns all repetitions of Subject Directory Attribute Extension (Health Professional Data) (CER-14).
    */
 public CWE[] getSubjectDirectoryAttributeExtensionHealthProfessionalData()
 {
     CWE[] ret = null;
     try {
     Type[] t = this.getField(14);
     ret = new CWE[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (CWE)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;
 }
Пример #11
0
 ///<summary>
 /// Creates a SCV.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public SCV(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new CWE(message, "Parameter Class");
     data[1] = new ST(message, "Parameter Value");
 }