コード例 #1
0
ファイル: NDL.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a NDL.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public NDL(IMessage message, string description) : base(message, description){
		data = new IType[11];
		data[0] = new CNN(message,"Name");
		data[1] = new TS(message,"Start date/time");
		data[2] = new TS(message,"End date/time");
		data[3] = new IS(message, 0,"Point of care (IS)");
		data[4] = new IS(message, 0,"Room");
		data[5] = new IS(message, 0,"Bed");
		data[6] = new HD(message,"Facility (HD)");
		data[7] = new IS(message, 0,"Location status");
		data[8] = new IS(message, 0,"Person location type");
		data[9] = new IS(message, 0,"Building");
		data[10] = new IS(message, 0,"Floor");
	}
コード例 #2
0
ファイル: TQ.cs プロジェクト: 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 (TX)");
		data[8] = new ID(message, 0,"Conjunction component");
		data[9] = new OSD(message,"Order sequencing");
		data[10] = new CE(message,"Occurrence duration");
		data[11] = new NM(message,"Total occurences");
	}
コード例 #3
0
ファイル: PPN.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a PPN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public PPN(IMessage message, string description) : base(message, description){
		data = new IType[19];
		data[0] = new ST(message,"ID number (ST)");
		data[1] = new FN(message,"Family name");
		data[2] = new ST(message,"Given name");
		data[3] = new ST(message,"Second and further given names or initials thereof");
		data[4] = new ST(message,"Suffix (e.g., JR or III)");
		data[5] = new ST(message,"Prefix (e.g., DR)");
		data[6] = new IS(message, 0,"Degree (e.g., MD)");
		data[7] = new IS(message, 0,"Source table");
		data[8] = new HD(message,"Assigning authority");
		data[9] = new ID(message, 0,"Name type code");
		data[10] = new ST(message,"Identifier check digit");
		data[11] = new ID(message, 0,"Code identifying the check digit scheme employed");
		data[12] = new IS(message, 0,"Identifier type code (IS)");
		data[13] = new HD(message,"Assigning facility");
		data[14] = new TS(message,"Date/Time Action Performed");
		data[15] = new ID(message, 0,"Name Representation code");
		data[16] = new CE(message,"Name context");
		data[17] = new DR(message,"Name validity range");
		data[18] = new ID(message, 0,"Name assembly order");
	}
コード例 #4
0
ファイル: CSR.cs プロジェクト: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of Study Randomization Date/time (CSR-11).
   ///</summary>
  public TS[] GetStudyRandomizationDateTime() {
     TS[] ret = null;
    try {
        IType[] t = this.GetField(11);  
        ret = new TS[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (TS)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;
}
コード例 #5
0
ファイル: PCF.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a PCF.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public PCF(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new IS(message, 0,"Pre-certification patient type");
		data[1] = new ID(message, 0,"Pre-certification required");
		data[2] = new TS(message,"Pre-certification window");
	}
コード例 #6
0
        /// <summary>   Creates a DLD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public 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
ファイル: FC.cs プロジェクト: tristanwilson111/nHapi
 ///<summary>
 /// Creates a FC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public FC(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 64, "Financial Class");
     data[1] = new TS(message, "Effective Date (TS)");
 }
コード例 #8
0
ファイル: CCD.cs プロジェクト: erdemsarigh/nhapi
        /// <summary>   Creates a CCD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CCD(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new ID(message, 0, "When to charge code");
            data[1] = new TS(message, "Date/time");
        }
コード例 #9
0
ファイル: FC.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a FC.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public FC(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new IS(message, 64,"Financial Class");
		data[1] = new TS(message,"Effective Date (TS)");
	}
コード例 #10
0
ファイル: DR.cs プロジェクト: tristanwilson111/nHapi
 ///<summary>
 /// Creates a DR.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public DR(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new TS(message, "Range start date/time");
     data[1] = new TS(message, "Range end date/time");
 }
コード例 #11
0
ファイル: DIN.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a DIN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public 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");
	}
コード例 #12
0
ファイル: DR.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a DR.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public DR(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new TS(message,"Range start date/time");
		data[1] = new TS(message,"Range end date/time");
	}
コード例 #13
0
ファイル: DIN.cs プロジェクト: erdemsarigh/nhapi
        /// <summary>   Creates a DIN. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public 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");
        }
コード例 #14
0
ファイル: DLD.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a DLD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public 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");
	}
コード例 #15
0
ファイル: CCD.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a CCD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CCD(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new ID(message, 0,"When to charge code");
		data[1] = new TS(message,"Date/time");
	}