Esempio n. 1
0
	///<summary>
	/// Creates a ED.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public ED(IMessage message, string description) : base(message, description){
		data = new IType[5];
		data[0] = new HD(message,"Source Application");
		data[1] = new ID(message, 191,"Type of Data");
		data[2] = new ID(message, 291,"Data Subtype");
		data[3] = new ID(message, 299,"Encoding");
		data[4] = new TX(message,"Data");
	}
Esempio n. 2
0
	///<summary>
	/// Creates a SPS.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public SPS(IMessage message, string description) : base(message, description){
		data = new IType[7];
		data[0] = new CWE(message,"Specimen Source Name or Code");
		data[1] = new CWE(message,"Additives");
		data[2] = new TX(message,"Specimen Collection Method");
		data[3] = new CWE(message,"Body Site");
		data[4] = new CWE(message,"Site Modifier");
		data[5] = new CWE(message,"Collection Method Modifier Code");
		data[6] = new CWE(message,"Specimen Role");
	}
Esempio n. 3
0
	///<summary>
	/// Creates a RFR.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public RFR(IMessage message, string description) : base(message, description){
		data = new IType[7];
		data[0] = new NR(message,"Numeric Range");
		data[1] = new IS(message, 1,"Administrative Sex");
		data[2] = new NR(message,"Age Range");
		data[3] = new NR(message,"Gestational Age Range");
		data[4] = new ST(message,"Species");
		data[5] = new ST(message,"Race/subspecies");
		data[6] = new TX(message,"Conditions");
	}
Esempio n. 4
0
File: TQ.cs Progetto: liddictm/nHapi
	///<summary>
	/// Creates a TQ.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public TQ(IMessage message, string description) : base(message, description){
		data = new IType[12];
		data[0] = new CQ(message,"Quantity");
		data[1] = new RI(message,"Interval");
		data[2] = new ST(message,"Duration");
		data[3] = new TS(message,"Start Date/Time");
		data[4] = new TS(message,"End Date/Time");
		data[5] = new ST(message,"Priority");
		data[6] = new ST(message,"Condition");
		data[7] = new TX(message,"Text");
		data[8] = new ID(message, 472,"Conjunction");
		data[9] = new OSD(message,"Order Sequencing");
		data[10] = new CE(message,"Occurrence Duration");
		data[11] = new NM(message,"Total Occurrences");
	}
Esempio n. 5
0
  ///<summary>
  /// Returns all repetitions of Command Response Parameters (ECR-3).
   ///</summary>
  public TX[] GetCommandResponseParameters() {
     TX[] ret = null;
    try {
        IType[] t = this.GetField(3);  
        ret = new TX[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (TX)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;
}
Esempio n. 6
0
	///<summary>
	/// Creates a JCC.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public JCC(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new IS(message, 327,"Job Code");
		data[1] = new IS(message, 328,"Job Class");
		data[2] = new TX(message,"Job Description Text");
	}
Esempio n. 7
0
	///<summary>
	/// Creates a PRL.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public PRL(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new CE(message,"Parent Observation Identifier");
		data[1] = new ST(message,"Parent Observation Sub-identifier");
		data[2] = new TX(message,"Parent Observation Value Descriptor");
	}