示例#1
0
文件: CCD.cs 项目: snosrap/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, 100,"Invocation Event");
     data[1] = new TS(message,"Date/time");
 }
示例#2
0
文件: DIN.cs 项目: snosrap/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");
 }
示例#3
0
文件: DLD.cs 项目: snosrap/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 IS(message, 113,"Discharge Location");
     data[1] = new TS(message,"Effective Date");
 }
示例#4
0
文件: XCN.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a XCN.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public XCN(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[23];
     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 ID(message, 465,"Name Representation Code");
     data[15] = new CE(message,"Name Context");
     data[16] = new DR(message,"Name Validity Range");
     data[17] = new ID(message, 444,"Name Assembly Order");
     data[18] = new TS(message,"Effective Date");
     data[19] = new TS(message,"Expiration Date");
     data[20] = new ST(message,"Professional Suffix");
     data[21] = new CWE(message,"Assigning Jurisdiction");
     data[22] = new CWE(message,"Assigning Agency or Department");
 }
示例#5
0
文件: FC.cs 项目: snosrap/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 Code");
     data[1] = new TS(message,"Effective Date");
 }
示例#6
0
文件: DR.cs 项目: snosrap/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");
 }
示例#7
0
文件: ICD.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a ICD.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public ICD(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[3];
     data[0] = new IS(message, 150,"Certification Patient Type");
     data[1] = new ID(message, 136,"Certification Required");
     data[2] = new TS(message,"Date/Time Certification Required");
 }
示例#8
0
文件: NDL.cs 项目: snosrap/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, 302,"Point of Care");
     data[4] = new IS(message, 303,"Room");
     data[5] = new IS(message, 304,"Bed");
     data[6] = new HD(message,"Facility");
     data[7] = new IS(message, 306,"Location Status");
     data[8] = new IS(message, 305,"Patient Location Type");
     data[9] = new IS(message, 307,"Building");
     data[10] = new IS(message, 308,"Floor");
 }
示例#9
0
文件: TQ.cs 项目: snosrap/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");
 }
示例#10
0
文件: XAD.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a XAD.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public XAD(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[14];
     data[0] = new SAD(message,"Street Address");
     data[1] = new ST(message,"Other Designation");
     data[2] = new ST(message,"City");
     data[3] = new ST(message,"State or Province");
     data[4] = new ST(message,"Zip or Postal Code");
     data[5] = new ID(message, 399,"Country");
     data[6] = new ID(message, 190,"Address Type");
     data[7] = new ST(message,"Other Geographic Designation");
     data[8] = new IS(message, 289,"County/Parish Code");
     data[9] = new IS(message, 288,"Census Tract");
     data[10] = new ID(message, 465,"Address Representation Code");
     data[11] = new DR(message,"Address Validity Range");
     data[12] = new TS(message,"Effective Date");
     data[13] = new TS(message,"Expiration Date");
 }
示例#11
0
文件: XPN.cs 项目: snosrap/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");
 }
示例#12
0
文件: RXG.cs 项目: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Substance Expiration Date (RXG-20).
 ///</summary>
 public TS[] GetSubstanceExpirationDate()
 {
     TS[] ret = null;
     try {
     IType[] t = this.GetField(20);
     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;
 }
示例#13
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");
 }
示例#14
0
 ///<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");
 }
示例#15
0
 ///<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, 100, "Invocation Event");
     data[1] = new TS(message, "Date/time");
 }
示例#16
0
 ///<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 IS(message, 113, "Discharge Location");
     data[1] = new TS(message, "Effective Date");
 }