///<summary> /// Creates a VH. /// <param name="message">The Message to which this Type belongs</param> ///</summary> public VH(Message message, string description) : base(message, description) { data = new Type[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"); }
///<summary> /// Creates a VH. /// <param name="message">The Message to which this Type belongs</param> ///</summary> public VH(Message message, string description) : base(message, description) { data = new Type[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"); }
/** * Returns all repetitions of Explicit Time (TQ1-4). */ public TM[] getExplicitTime() { TM[] ret = null; try { Type[] 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; }