Ejemplo n.º 1
0
 ///<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");
 }
Ejemplo n.º 2
0
Archivo: XPN.cs Proyecto: 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");
 }
Ejemplo n.º 3
0
 ///<summary>
 /// Creates a XAD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XAD(Message message, string description) : base(message, description)
 {
     data     = new Type[12];
     data[0]  = new SAD(message, "Street address (SAD)");
     data[1]  = new ST(message, "Other designation");
     data[2]  = new ST(message, "City");
     data[3]  = new ST(message, "State or province");
     data[4]  = new ST(message, "Zip or postal code");
     data[5]  = new ID(message, 0, "Country");
     data[6]  = new ID(message, 0, "Address type");
     data[7]  = new ST(message, "Other geographic designation");
     data[8]  = new IS(message, 0, "County/parish code");
     data[9]  = new IS(message, 0, "Census tract");
     data[10] = new ID(message, 0, "Address representation code");
     data[11] = new DR(message, "Address validity range");
 }
Ejemplo n.º 4
0
Archivo: XAD.cs Proyecto: snosrap/nhapi
 ///<summary>
 /// Creates a XAD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XAD(Message message, string description)
     : base(message, description)
 {
     data = new Type[12];
     data[0] = new SAD(message,"Street address (SAD)");
     data[1] = new ST(message,"Other designation");
     data[2] = new ST(message,"City");
     data[3] = new ST(message,"State or province");
     data[4] = new ST(message,"Zip or postal code");
     data[5] = new ID(message, 0,"Country");
     data[6] = new ID(message, 0,"Address type");
     data[7] = new ST(message,"Other geographic designation");
     data[8] = new IS(message, 0,"County/parish code");
     data[9] = new IS(message, 0,"Census tract");
     data[10] = new ID(message, 0,"Address representation code");
     data[11] = new DR(message,"Address validity range");
 }
Ejemplo n.º 5
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");
 }
Ejemplo n.º 6
0
Archivo: XCN.cs Proyecto: 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");
 }
Ejemplo n.º 7
0
Archivo: AFF.cs Proyecto: snosrap/nhapi
 /**
    * Returns all repetitions of Professional Organization Affiliation Date Range (AFF-4).
    */
 public DR[] getProfessionalOrganizationAffiliationDateRange()
 {
     DR[] ret = null;
     try {
     Type[] t = this.getField(4);
     ret = new DR[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (DR)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;
 }