示例#1
0
文件: DLT.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a DLT.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public DLT(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new NR(message,"Range");
		data[1] = new NM(message,"Numeric threshold");
		data[2] = new ST(message,"Change computation");
		data[3] = new NM(message,"Length of time-days");
	}
示例#2
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");
	}
示例#3
0
文件: CK.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a CK.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CK(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new NM(message,"ID number (NM)");
		data[1] = new NM(message,"Check digit");
		data[2] = new ID(message, 0,"Code identifying the check digit scheme employed");
		data[3] = new HD(message,"Assigning authority");
	}
示例#4
0
文件: NA.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a NA.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public NA(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new NM(message,"Value1");
		data[1] = new NM(message,"Value2");
		data[2] = new NM(message,"Value3");
		data[3] = new NM(message,"Value4");
	}
示例#5
0
文件: SN.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a SN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public SN(IMessage message, string description) : base(message, description){
		data = new IType[4];
		data[0] = new ST(message,"Comparator");
		data[1] = new NM(message,"Num1");
		data[2] = new ST(message,"Separator or suffix");
		data[3] = new NM(message,"Num2");
	}
示例#6
0
文件: CD.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a CD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CD(IMessage message, string description) : base(message, description){
		data = new IType[6];
		data[0] = new WVI(message,"Channel identifier");
		data[1] = new WVS(message,"Electrode names");
		data[2] = new CSU(message,"Channel sensitivity/units");
		data[3] = new CCP(message,"Calibration parameters");
		data[4] = new NM(message,"Sampling frequency");
		data[5] = new NR(message,"Minimum/maximum data values");
	}
示例#7
0
文件: CX.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a CX.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CX(IMessage message, string description) : base(message, description){
		data = new IType[6];
		data[0] = new ST(message,"ID");
		data[1] = new NM(message,"Check digit");
		data[2] = new ID(message, 0,"Code identifying the check digit scheme employed");
		data[3] = new HD(message,"Assigning authority");
		data[4] = new IS(message, 203,"Identifier type code");
		data[5] = new HD(message,"Assigning facility");
	}
示例#8
0
文件: MA.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a MA.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public MA(IMessage message, string description) : base(message, description){
		data = new IType[6];
		data[0] = new NM(message,"Sample 1 from channel 1");
		data[1] = new NM(message,"Sample 1 from channel 2");
		data[2] = new NM(message,"Sample 1 from channel 3");
		data[3] = new NM(message,"Sample 2 from channel 1");
		data[4] = new NM(message,"Sample 2 from channel 2");
		data[5] = new NM(message,"Sample 2 from channel 3");
	}
示例#9
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");
	}
示例#10
0
文件: CSU.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a CSU.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CSU(IMessage message, string description) : base(message, description){
		data = new IType[7];
		data[0] = new NM(message,"Channel sensitivity");
		data[1] = new ST(message,"Unit of measure identifier");
		data[2] = new ST(message,"Unit of measure description");
		data[3] = new IS(message, 0,"Unit of measure coding system");
		data[4] = new ST(message,"Alternate unit of measure identifier");
		data[5] = new ST(message,"Alternate unit of measure description");
		data[6] = new IS(message, 0,"Alternate unit of measure coding system");
	}
示例#11
0
文件: XTN.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a XTN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XTN(IMessage message, string description) : base(message, description){
		data = new IType[9];
		data[0] = new TN(message,"[(999)] 999-9999 [X99999][C any text]");
		data[1] = new ID(message, 0,"Telecommunication use code");
		data[2] = new ID(message, 0,"Telecommunication equipment type (ID)");
		data[3] = new ST(message,"Email address");
		data[4] = new NM(message,"Country Code");
		data[5] = new NM(message,"Area/city code");
		data[6] = new NM(message,"Phone number");
		data[7] = new NM(message,"Extension");
		data[8] = new ST(message,"Any text");
	}
示例#12
0
文件: XON.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a XON.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XON(IMessage message, string description) : base(message, description){
		data = new IType[9];
		data[0] = new ST(message,"Organization name");
		data[1] = new IS(message, 0,"Organization name type code");
		data[2] = new NM(message,"ID number (NM)");
		data[3] = new NM(message,"Check digit");
		data[4] = new ID(message, 0,"Code identifying the check digit scheme employed");
		data[5] = new HD(message,"Assigning authority");
		data[6] = new IS(message, 0,"Identifier type code");
		data[7] = new HD(message,"Assigning facility ID");
		data[8] = new ID(message, 0,"Name Representation code");
	}
示例#13
0
文件: OSD.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a OSD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public OSD(IMessage message, string description) : base(message, description){
		data = new IType[11];
		data[0] = new ID(message, 0,"Sequence/results flag");
		data[1] = new ST(message,"Placer order number: entity identifier");
		data[2] = new IS(message, 0,"Placer order number: namespace ID");
		data[3] = new ST(message,"Filler order number: entity identifier");
		data[4] = new IS(message, 0,"Filler order number: namespace ID");
		data[5] = new ST(message,"Sequence condition value");
		data[6] = new NM(message,"Maximum number of repeats");
		data[7] = new ST(message,"Placer order number: universal ID");
		data[8] = new ID(message, 0,"Placer order number; universal ID type");
		data[9] = new ST(message,"Filler order number: universal ID");
		data[10] = new ID(message, 0,"Filler order number: universal ID type");
	}
示例#14
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");
	}
示例#15
0
        /// <summary>   Creates a MOP. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public MOP(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 0, "Money or percentage indicator");
            data[1] = new NM(message, "Money or percentage quantity");
        }
示例#16
0
文件: UVC.cs 项目: nHapiNET/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 IS(message, 0, "Value code");
     data[1] = new NM(message, "Value amount");
 }
示例#17
0
文件: CCP.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a CCP.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CCP(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new NM(message,"Channel calibration sensitivity correction factor");
		data[1] = new NM(message,"Channel calibration baseline");
		data[2] = new NM(message,"Channel calibration time skew");
	}
示例#18
0
文件: DDI.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a DDI.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public DDI(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new NM(message,"Delay days");
		data[1] = new NM(message,"Amount");
		data[2] = new NM(message,"Number of days");
	}
示例#19
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");
	}
示例#20
0
文件: WVI.cs 项目: nHapiNET/nHapi
 ///<summary>
 /// Creates a WVI.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public WVI(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new NM(message, "Channel Number");
     data[1] = new ST(message, "Channel Name");
 }
示例#21
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");
        }
示例#22
0
文件: DTN.cs 项目: erdemsarigh/nhapi
        /// <summary>   Creates a DTN. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public DTN(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 0, "Day type");
            data[1] = new NM(message, "Number of days");
        }
示例#23
0
文件: PTA.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a PTA.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public PTA(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new IS(message, 0,"Policy type");
		data[1] = new IS(message, 0,"Amount class");
		data[2] = new NM(message,"Amount");
	}
示例#24
0
 ///<summary>
 /// Creates a NR.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public NR(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new NM(message, "Low Value");
     data[1] = new NM(message, "High Value");
 }
示例#25
0
文件: DTN.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a DTN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public DTN(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new IS(message, 0,"Day type");
		data[1] = new NM(message,"Number of days");
	}
示例#26
0
文件: RCD.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a RCD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public RCD(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new ST(message,"Segment field name");
		data[1] = new ST(message,"HL7 date type");
		data[2] = new NM(message,"Maximum column width");
	}
示例#27
0
文件: MOP.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a MOP.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public MOP(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new IS(message, 0,"Money or percentage indicator");
		data[1] = new NM(message,"Money or percentage quantity");
	}
示例#28
0
文件: UVC.cs 项目: liddictm/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 IS(message, 0,"Value code");
		data[1] = new NM(message,"Value amount");
	}
示例#29
0
文件: NR.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a NR.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public NR(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new NM(message,"Low Value");
		data[1] = new NM(message,"High Value");
	}
示例#30
0
文件: RMC.cs 项目: liddictm/nHapi
	///<summary>
	/// Creates a RMC.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public RMC(IMessage message, string description) : base(message, description){
		data = new IType[3];
		data[0] = new IS(message, 0,"Room type");
		data[1] = new IS(message, 0,"Amount type");
		data[2] = new NM(message,"Coverage amount");
	}
示例#31
0
文件: WVI.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a WVI.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public WVI(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new NM(message,"Channel Number");
		data[1] = new ST(message,"Channel Name");
	}
示例#32
0
文件: PV1.cs 项目: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of Contract Period (PV1-27).
   ///</summary>
  public NM[] GetContractPeriod() {
     NM[] ret = null;
    try {
        IType[] t = this.GetField(27);  
        ret = new NM[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (NM)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;
}
示例#33
0
文件: MO.cs 项目: RickIsWright/nHapi
	///<summary>
	/// Creates a MO.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public MO(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new NM(message,"Quantity");
		data[1] = new ID(message, 0,"Denomination");
	}