Exemple #1
0
	///<summary>
	/// Creates a CM_ELD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_ELD(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new ST(message,"Segment-ID");
		data[1] = new NM(message,"Sequence");
		data[2] = new NM(message,"Field-Position");
		data[3] = new CE(message,"Code Identifying Error");
	}
Exemple #2
0
	///<summary>
	/// Creates a CM_PIP.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_PIP(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new CE(message,"Privilege");
		data[1] = new CE(message,"Privilege class");
		data[2] = new DT(message,"Expiration date");
		data[3] = new DT(message,"Activation date");
	}
Exemple #3
0
	///<summary>
	/// Creates a CM_SPS.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_SPS(IMessage message, string description) : base(message, description){
		data = new IType[5];
		data[0] = new CE(message,"Specimen source name or code");
		data[1] = new TX(message,"Additives");
		data[2] = new TX(message,"Freetext");
		data[3] = new CE(message,"Body site");
		data[4] = new CE(message,"Site modifier");
	}
Exemple #4
0
	///<summary>
	/// Creates a CM_DIN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_DIN(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new TS(message,"Date");
		data[1] = new CE(message,"Institution name");
	}
Exemple #5
0
  ///<summary>
  /// Returns all repetitions of Service Period (ODT-2).
   ///</summary>
  public CE[] GetServicePeriod() {
     CE[] ret = null;
    try {
        IType[] t = this.GetField(2);  
        ret = new CE[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (CE)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;
}
Exemple #6
0
	///<summary>
	/// Creates a CM_RANGE.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_RANGE(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new CE(message,"Low Value");
		data[1] = new CE(message,"High Value");
	}
Exemple #7
0
        /// <summary>   Creates a CM_DIN. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_DIN(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new TS(message, "Date");
            data[1] = new CE(message, "Institution name");
        }
Exemple #8
0
        /// <summary>   Creates a CM_RANGE. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_RANGE(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new CE(message, "Low Value");
            data[1] = new CE(message, "High Value");
        }
Exemple #9
0
	///<summary>
	/// Creates a CM_PARENT_RESULT.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_PARENT_RESULT(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new CE(message,"Observation identifier (OBX-3) of parent result");
		data[1] = new ST(message,"Sub-ID (OBX-4) of parent result");
		data[2] = new CE(message,"Result (OBX-5) from parent");
	}