Пример #1
0
  ///<summary>
  /// Returns all repetitions of Second Opinion Documentation Received (IN3-24).
   ///</summary>
  public IS[] GetSecondOpinionDocumentationReceived() {
     IS[] ret = null;
    try {
        IType[] t = this.GetField(24);  
        ret = new IS[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (IS)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;
}
Пример #2
0
 ///<summary>
 /// Creates a DTN.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public DTN(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 149, "Day Type");
     data[1] = new NM(message, "Number of Days");
 }
Пример #3
0
 ///<summary>
 /// Creates a RI.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public RI(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 335, "Repeat Pattern");
     data[1] = new ST(message, "Explicit Time Interval");
 }
Пример #4
0
 ///<summary>
 /// Creates a FC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public FC(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 64, "Financial Class Code");
     data[1] = new TS(message, "Effective Date");
 }
Пример #5
0
 ///<summary>
 /// Creates a DLD.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public DLD(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 113, "Discharge Location");
     data[1] = new TS(message, "Effective Date");
 }