Ejemplo n.º 1
0
	///<summary>
	/// Creates a CN_PHYSICIAN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CN_PHYSICIAN(IMessage message, string description) : base(message, description){
		data = new IType[13];
		data[0] = new ID(message, 0,"Physician ID");
		data[1] = new ST(message,"Family name");
		data[2] = new ST(message,"Given name");
		data[3] = new ST(message,"Middle initial or name");
		data[4] = new ST(message,"Suffix (e.g. JR or III)");
		data[5] = new ST(message,"Prefix (e.g. DR)");
		data[6] = new ST(message,"Degree (e.g. MD)");
		data[7] = new ID(message, 0,"Source table id");
		data[8] = new AD(message,"Adresse");
		data[9] = new TN(message,"Telefon");
		data[10] = new TN(message,"Faxnummer");
		data[11] = new TN(message,"Online-Nummer");
		data[12] = new ST(message,"E-Mail");
	}
Ejemplo n.º 2
0
 ///<summary>
 /// Creates a CN_PHYSICIAN.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CN_PHYSICIAN(IMessage message, string description) : base(message, description)
 {
     data     = new IType[13];
     data[0]  = new ID(message, 0, "Physician ID");
     data[1]  = new ST(message, "Family name");
     data[2]  = new ST(message, "Given name");
     data[3]  = new ST(message, "Middle initial or name");
     data[4]  = new ST(message, "Suffix (e.g. JR or III)");
     data[5]  = new ST(message, "Prefix (e.g. DR)");
     data[6]  = new ST(message, "Degree (e.g. MD)");
     data[7]  = new ID(message, 0, "Source table id");
     data[8]  = new AD(message, "Adresse");
     data[9]  = new TN(message, "Telefon");
     data[10] = new TN(message, "Faxnummer");
     data[11] = new TN(message, "Online-Nummer");
     data[12] = new ST(message, "E-Mail");
 }
Ejemplo n.º 3
0
        /// <summary>   Creates a CM_LA1. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_LA1(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new CM_INTERNAL_LOCATION(message, "Dispense / Deliver to Location");
            data[1] = new AD(message, "Location");
        }
Ejemplo n.º 4
0
  ///<summary>
  /// Returns all repetitions of Patient Address (PID-11).
   ///</summary>
  public AD[] GetPatientAddress() {
     AD[] ret = null;
    try {
        IType[] t = this.GetField(11);  
        ret = new AD[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (AD)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;
}
Ejemplo n.º 5
0
	///<summary>
	/// Creates a CM_LA1.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_LA1(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new CM_INTERNAL_LOCATION(message,"Dispense / Deliver to Location");
		data[1] = new AD(message,"Location");
	}