Example #1
0
File: CF.cs Project: 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 ST(message,"Identifier");
     data[1] = new FT(message,"Formatted Text");
     data[2] = new ID(message, 396,"Name of Coding System");
     data[3] = new ST(message,"Alternate Identifier");
     data[4] = new FT(message,"Alternate Formatted Text");
     data[5] = new ID(message, 396,"Name of Alternate Coding System");
 }
Example #2
0
File: PEO.cs Project: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Event From Original Reporter (PEO-14).
 ///</summary>
 public FT[] GetEventFromOriginalReporter()
 {
     FT[] ret = null;
     try {
     IType[] t = this.GetField(14);
     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;
 }