예제 #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,"Segment Sequence");
		data[2] = new NM(message,"Field Position");
		data[3] = new CE(message,"Code Identifying Error");
	}
예제 #2
0
파일: PPN.cs 프로젝트: liddictm/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[24];
		data[0] = new ST(message,"ID Number");
		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, 360,"Degree (e.g., MD)");
		data[7] = new IS(message, 297,"Source Table");
		data[8] = new HD(message,"Assigning Authority");
		data[9] = new ID(message, 200,"Name Type Code");
		data[10] = new ST(message,"Identifier Check Digit");
		data[11] = new ID(message, 61,"Check Digit Scheme");
		data[12] = new ID(message, 203,"Identifier Type Code");
		data[13] = new HD(message,"Assigning Facility");
		data[14] = new TS(message,"Date/Time Action Performed");
		data[15] = new ID(message, 465,"Name Representation Code");
		data[16] = new CE(message,"Name Context");
		data[17] = new DR(message,"Name Validity Range");
		data[18] = new ID(message, 444,"Name Assembly Order");
		data[19] = new TS(message,"Effective Date");
		data[20] = new TS(message,"Expiration Date");
		data[21] = new ST(message,"Professional Suffix");
		data[22] = new CWE(message,"Assigning Jurisdiction");
		data[23] = new CWE(message,"Assigning Agency or Department");
	}
예제 #3
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");
	}
예제 #4
0
파일: CP.cs 프로젝트: RickIsWright/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");
	}
예제 #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 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");
	}
예제 #6
0
파일: PRD.cs 프로젝트: liddictm/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
파일: XPN.cs 프로젝트: RickIsWright/nHapi
	///<summary>
	/// Creates a XPN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XPN(IMessage message, string description) : base(message, description){
		data = new IType[14];
		data[0] = new FN(message,"Family Name");
		data[1] = new ST(message,"Given Name");
		data[2] = new ST(message,"Second and Further Given Names or Initials Thereof");
		data[3] = new ST(message,"Suffix (e.g., JR or III)");
		data[4] = new ST(message,"Prefix (e.g., DR)");
		data[5] = new IS(message, 360,"Degree (e.g., MD)");
		data[6] = new ID(message, 200,"Name Type Code");
		data[7] = new ID(message, 465,"Name Representation Code");
		data[8] = new CE(message,"Name Context");
		data[9] = new DR(message,"Name Validity Range");
		data[10] = new ID(message, 444,"Name Assembly Order");
		data[11] = new TS(message,"Effective Date");
		data[12] = new TS(message,"Expiration Date");
		data[13] = new ST(message,"Professional Suffix");
	}
예제 #8
0
파일: DIN.cs 프로젝트: liddictm/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");
	}
예제 #9
0
 ///<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");
 }
예제 #10
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");
	}
예제 #11
0
파일: VID.cs 프로젝트: liddictm/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, 104,"Version ID");
		data[1] = new CE(message,"Internationalization Code");
		data[2] = new CE(message,"International Version ID");
	}
예제 #12
0
파일: RXD.cs 프로젝트: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXD-15).
   ///</summary>
  public CE[] GetPharmacyTreatmentSupplierSSpecialDispensingInstructions() {
     CE[] ret = null;
    try {
        IType[] t = this.GetField(15);  
        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;
}
예제 #13
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,"Monetary Amount");
		data[1] = new CE(message,"Charge Code");
	}
예제 #14
0
파일: MOC.cs 프로젝트: nHapiNET/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, "Monetary Amount");
     data[1] = new CE(message, "Charge Code");
 }
예제 #15
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");
 }
예제 #16
0
파일: PRL.cs 프로젝트: liddictm/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,"Parent Observation Identifier");
		data[1] = new ST(message,"Parent Observation Sub-identifier");
		data[2] = new TX(message,"Parent Observation Value Descriptor");
	}