Пример #1
0
		///<summary>
		/// Creates a ACCIDENTDATA.
		/// <param name="message">The Message to which this Type belongs</param>
		///</summary>		
		public ACCIDENTDATA(IMessage message, string description) : base(message, description){
			data = new IType[2];
			data[0] = new ID(message, 0, "File number");
			data[1] = new ST(message, "Text");
		}
Пример #2
0
  ///<summary>
  /// Returns all repetitions of Condition code (35-39) (UB1-7).
   ///</summary>
  public ID[] GetConditionCode3539() {
     ID[] ret = null;
    try {
        IType[] t = this.GetField(7);  
        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;
}
Пример #3
0
 ///<summary>
 /// Creates a CM_UVC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_UVC(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new ID(message, 0, "Value code");
     data[1] = new NM(message, "Value amount");
 }
Пример #4
0
        /// <summary>   Creates a CM_FINANCE. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_FINANCE(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new ID(message, 0, "Financial class ID");
            data[1] = new TS(message, "Effective date");
        }
Пример #5
0
 ///<summary>
 /// Creates a CM_GROUP_ID.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_GROUP_ID(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new ID(message, 0, "Unique group id");
     data[1] = new ID(message, 0, "Placer application id");
 }
Пример #6
0
        /// <summary>   Creates a CM_DLD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_DLD(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new ID(message, 0, "Discharge location");
            data[1] = new TS(message, "Effective date");
        }
Пример #7
0
        /// <summary>   Creates a CM_OCD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_OCD(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new ID(message, 0, "Occurrence code");
            data[1] = new DT(message, "Occurrence date");
        }