Пример #1
0
  ///<summary>
  /// Returns all repetitions of Contract Code (PV1-24).
   ///</summary>
  public ID[] GetContractCode() {
     ID[] ret = null;
    try {
        IType[] t = this.GetField(24);  
        ret = new ID[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (ID)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 CM_MSG.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_MSG(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new ID(message, 0, "Message type");
     data[1] = new ID(message, 0, "Trigger event");
 }