Exemple #1
0
	///<summary>
	/// Creates a XPN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XPN(IMessage message, string description) : base(message, description){
		data = new IType[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");
	}
Exemple #2
0
        /// <summary>   Creates a XPN. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public XPN(IMessage message, string description) : base(message, description)
        {
            data     = new IType[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");
        }
Exemple #3
0
	///<summary>
	/// Creates a XAD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XAD(IMessage message, string description) : base(message, description){
		data = new IType[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");
	}
Exemple #4
0
        /// <summary>   Creates a XAD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public XAD(IMessage message, string description) : base(message, description)
        {
            data     = new IType[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");
        }
Exemple #5
0
	///<summary>
	/// Creates a XCN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XCN(IMessage message, string description) : base(message, description){
		data = new IType[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");
	}
Exemple #6
0
 ///<summary>
 /// Creates a XCN.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public XCN(IMessage message, string description) : base(message, description)
 {
     data     = new IType[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");
 }
Exemple #7
0
  ///<summary>
  /// Returns all repetitions of Requested Start Date/Time Range (ARQ-11).
   ///</summary>
  public DR[] GetRequestedStartDateTimeRange() {
     DR[] ret = null;
    try {
        IType[] t = this.GetField(11);  
        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;
}