示例#1
0
文件: CF.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a CF.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public CF(Message message, string description)
     : base(message, description)
 {
     data = new Type[6];
     data[0] = new ST(message,"Identifier");
     data[1] = new FT(message,"Formatted text");
     data[2] = new ST(message,"Name of coding system");
     data[3] = new ST(message,"Alternate identifier");
     data[4] = new FT(message,"Alternate formatted text");
     data[5] = new ST(message,"Name of alternate coding system");
 }
示例#2
0
文件: PES.cs 项目: snosrap/nhapi
 /**
    * Returns all repetitions of Sender Event Description (PES-7).
    */
 public FT[] getSenderEventDescription()
 {
     FT[] ret = null;
     try {
     Type[] t = this.getField(7);
     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;
 }