Пример #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");
	}
Пример #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");
 }
Пример #3
0
  ///<summary>
  /// Returns all repetitions of Phone Number - Business (PID-14).
   ///</summary>
  public TN[] GetPhoneNumberBusiness() {
     TN[] ret = null;
    try {
        IType[] t = this.GetField(14);  
        ret = new TN[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (TN)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;
}