예제 #1
0
 ///<summary>
 /// Creates a OSP.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public OSP(IMessage message, string description) : base(message, description)
 {
     data    = new IType[3];
     data[0] = new CNE(message, "Occurrence Span Code");
     data[1] = new DT(message, "Occurrence Span Start Date");
     data[2] = new DT(message, "Occurrence Span Stop Date");
 }
예제 #2
0
파일: UVC.cs 프로젝트: RickIsWright/nHapi
	///<summary>
	/// Creates a UVC.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public UVC(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new CNE(message,"Value Code");
		data[1] = new MO(message,"Value Amount");
	}
예제 #3
0
파일: OSP.cs 프로젝트: RickIsWright/nHapi
	///<summary>
	/// Creates a OSP.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public OSP(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new CNE(message,"Occurrence Span Code");
		data[1] = new DT(message,"Occurrence Span Start Date");
		data[2] = new DT(message,"Occurrence Span Stop Date");
	}
예제 #4
0
        /// <summary>   Creates a OCD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public OCD(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new CNE(message, "Occurrence Code");
            data[1] = new DT(message, "Occurrence Date");
        }
예제 #5
0
파일: OCD.cs 프로젝트: liddictm/nHapi
	///<summary>
	/// Creates a OCD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public OCD(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new CNE(message,"Occurrence Code");
		data[1] = new DT(message,"Occurrence Date");
	}
예제 #6
0
파일: BPX.cs 프로젝트: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of BC Special Testing (BPX-12).
   ///</summary>
  public CNE[] GetBCSpecialTesting() {
     CNE[] ret = null;
    try {
        IType[] t = this.GetField(12);  
        ret = new CNE[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (CNE)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;
}
예제 #7
0
 ///<summary>
 /// Creates a UVC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public UVC(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new CNE(message, "Value Code");
     data[1] = new MO(message, "Value Amount");
 }