Exemplo n.º 1
0
 ///<summary>
 /// Creates a XTN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XTN(Message message, string description) : base(message, description)
 {
     data    = new Type[9];
     data[0] = new TN(message, "[(999)] 999-9999 [X99999][C any text]");
     data[1] = new ID(message, 0, "Telecommunication use code");
     data[2] = new ID(message, 0, "Telecommunication equipment type (ID)");
     data[3] = new ST(message, "Email address");
     data[4] = new NM(message, "Country Code");
     data[5] = new NM(message, "Area/city code");
     data[6] = new NM(message, "Phone number");
     data[7] = new NM(message, "Extension");
     data[8] = new ST(message, "Any text");
 }
Exemplo n.º 2
0
Arquivo: XTN.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a XTN.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public XTN(Message message, string description)
     : base(message, description)
 {
     data = new Type[9];
     data[0] = new TN(message,"[(999)] 999-9999 [X99999][C any text]");
     data[1] = new ID(message, 0,"Telecommunication use code");
     data[2] = new ID(message, 0,"Telecommunication equipment type (ID)");
     data[3] = new ST(message,"Email address");
     data[4] = new NM(message,"Country Code");
     data[5] = new NM(message,"Area/city code");
     data[6] = new NM(message,"Phone number");
     data[7] = new NM(message,"Extension");
     data[8] = new ST(message,"Any text");
 }
Exemplo n.º 3
0
Arquivo: PID.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of Phone Number - Home (PID-13).
    */
 public TN[] getPhoneNumberHome()
 {
     TN[] ret = null;
     try {
     Type[] t = this.getField(13);
     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;
 }