Esempio n. 1
0
 ///<summary>
 /// Creates a CN_PHYSICIAN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CN_PHYSICIAN(Message message, string description) : base(message, description)
 {
     data     = new Type[13];
     data[0]  = new ID(message, 0, "Physician ID");
     data[1]  = new ST(message, "Familiy 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");
 }
Esempio n. 2
0
 ///<summary>
 /// Creates a CN_PHYSICIAN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CN_PHYSICIAN(Message message, string description)
     : base(message, description)
 {
     data = new Type[13];
     data[0] = new ID(message, 0,"Physician ID");
     data[1] = new ST(message,"Familiy 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");
 }
Esempio n. 3
0
File: NK1.cs Progetto: snosrap/nhapi
 /**
    * Returns all repetitions of Phone Number (NK1-5).
    */
 public TN[] getPhoneNumber()
 {
     TN[] ret = null;
     try {
     Type[] t = this.getField(5);
     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;
 }