Example #1
0
        /// <summary>   Creates a PT. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public PT(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new ID(message, 103, "Processing ID");
            data[1] = new ID(message, 207, "Processing Mode");
        }
Example #2
0
  ///<summary>
  /// Returns all repetitions of Character Set (MSH-18).
   ///</summary>
  public ID[] GetCharacterSet() {
     ID[] ret = null;
    try {
        IType[] t = this.GetField(18);  
        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;
}
Example #3
0
 ///<summary>
 /// Creates a SRT.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public SRT(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new ST(message, "Sort-by Field");
     data[1] = new ID(message, 397, "Sequencing");
 }