コード例 #1
0
ファイル: ELD.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a ELD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public 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");
	}
コード例 #2
0
ファイル: PIP.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a PIP.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public PIP(IMessage message, string description) : base(message, description){
		data = new IType[5];
		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");
		data[4] = new EI(message,"Facility (EI)");
	}
コード例 #3
0
ファイル: CP.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a CP.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CP(IMessage message, string description) : base(message, description){
		data = new IType[6];
		data[0] = new MO(message,"Price");
		data[1] = new ID(message, 205,"Price type");
		data[2] = new NM(message,"From value");
		data[3] = new NM(message,"To value");
		data[4] = new CE(message,"Range units");
		data[5] = new ID(message, 298,"Range type");
	}
コード例 #4
0
ファイル: SPS.cs プロジェクト: RickIsWright/nHapi
	///<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 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");
		data[5] = new CE(message,"Collection modifier method code");
		data[6] = new CE(message,"Specimen role");
	}
コード例 #5
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 ST(message,"Text");
		data[8] = new ST(message,"Conjunction");
		data[9] = new OSD(message,"Order sequencing");
		data[10] = new CE(message,"Occurrence duration");
		data[11] = new NM(message,"Total occurences");
	}
コード例 #6
0
ファイル: PRD.cs プロジェクト: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of Provider Role (PRD-1).
   ///</summary>
  public CE[] GetProviderRole() {
     CE[] ret = null;
    try {
        IType[] t = this.GetField(1);  
        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;
}
コード例 #7
0
ファイル: RXE.cs プロジェクト: liddictm/nHapi
  ///<summary>
  /// Returns all repetitions of Pharmacy/Treatment Supplier’s Special Dispensing Instructions (RXE-21).
   ///</summary>
  public CE[] GetPharmacyTreatmentSupplierSSpecialDispensingInstructions() {
     CE[] ret = null;
    try {
        IType[] t = this.GetField(21);  
        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;
}
コード例 #8
0
ファイル: VID.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a VID.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public VID(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new ID(message, 0,"Version ID");
		data[1] = new CE(message,"Internationalization code");
		data[2] = new CE(message,"International version ID");
	}
コード例 #9
0
        /// <summary>   Creates a MOC. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public MOC(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new MO(message, "Dollar amount");
            data[1] = new CE(message, "Charge code");
        }
コード例 #10
0
 ///<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");
 }
コード例 #11
0
ファイル: MOC.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a MOC.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public MOC(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new MO(message,"Dollar amount");
		data[1] = new CE(message,"Charge code");
	}
コード例 #12
0
ファイル: CQ.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a CQ.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CQ(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new NM(message,"Quantity");
		data[1] = new CE(message,"Units");
	}
コード例 #13
0
ファイル: CQ.cs プロジェクト: erdemsarigh/nhapi
        /// <summary>   Creates a CQ. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public CQ(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new NM(message, "Quantity");
            data[1] = new CE(message, "Units");
        }
コード例 #14
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");
	}
コード例 #15
0
ファイル: PRL.cs プロジェクト: RickIsWright/nHapi
	///<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,"OBX-3 observation identifier of parent result");
		data[1] = new ST(message,"OBX-4 sub-ID of parent result");
		data[2] = new TX(message,"Part of OBX-5 observation result from parent");
	}
コード例 #16
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 CE(message,"Occurrence span code");
		data[1] = new DT(message,"Occurrence span start date");
		data[2] = new DT(message,"Occurrence span stop date");
	}