Exemplo n.º 1
0
Arquivo: CF.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a CF.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CF(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[6];
     data[0] = new ID(message, 0,"Identifier");
     data[1] = new FT(message,"Formatted text");
     data[2] = new ST(message,"Name of coding system");
     data[3] = new ID(message, 0,"Alternate identifier");
     data[4] = new FT(message,"Alternate formatted text");
     data[5] = new ST(message,"Name of alternate coding system");
 }
Exemplo n.º 2
0
Arquivo: NTE.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Comment (NTE-3).
 ///</summary>
 public FT[] GetComment()
 {
     FT[] ret = null;
     try {
     IType[] t = this.GetField(3);
     ret = new FT[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (FT)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;
 }