Ejemplo n.º 1
0
	///<summary>
	/// Creates a CM_NDL.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_NDL(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new CN_PERSON(message,"Interpreter / technician");
		data[1] = new TS(message,"Start date/time");
		data[2] = new TS(message,"End date/time");
		data[3] = new CM_INTERNAL_LOCATION(message,"Location");
	}
Ejemplo n.º 2
0
        /// <summary>   Creates a CM_NDL. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CM_NDL(IMessage message, string description) : base(message, description)
        {
            data    = new IType[4];
            data[0] = new CN_PERSON(message, "Interpreter / technician");
            data[1] = new TS(message, "Start date/time");
            data[2] = new TS(message, "End date/time");
            data[3] = new CM_INTERNAL_LOCATION(message, "Location");
        }
Ejemplo n.º 3
0
 ///<summary>
 /// Creates a CM_PRACTITIONER.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_PRACTITIONER(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new CN_PERSON(message, "Procedure Practitioner  ID");
     data[1] = new ID(message, 0, "Procedure practitioner type");
 }
Ejemplo n.º 4
0
	///<summary>
	/// Creates a CM_PRACTITIONER.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CM_PRACTITIONER(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new CN_PERSON(message,"Procedure Practitioner  ID");
		data[1] = new ID(message, 0,"Procedure practitioner type");
	}
Ejemplo n.º 5
0
  ///<summary>
  /// Returns all repetitions of Result Copies To (OBR-28).
   ///</summary>
  public CN_PERSON[] GetResultCopiesTo() {
     CN_PERSON[] ret = null;
    try {
        IType[] t = this.GetField(28);  
        ret = new CN_PERSON[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (CN_PERSON)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;
}