Exemplo n.º 1
0
 ///<summary>
 /// Creates a VH.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public VH(IMessage message, string description) : base(message, description)
 {
     data    = new IType[4];
     data[0] = new ID(message, 267, "Start Day Range");
     data[1] = new ID(message, 267, "End Day Range");
     data[2] = new TM(message, "Start Hour Range");
     data[3] = new TM(message, "End Hour Range");
 }
Exemplo n.º 2
0
  ///<summary>
  /// Returns all repetitions of Explicit Time (TQ1-4).
   ///</summary>
  public TM[] GetExplicitTime() {
     TM[] ret = null;
    try {
        IType[] t = this.GetField(4);  
        ret = new TM[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (TM)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;
}