示例#1
0
文件: EIP.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a EIP.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public EIP(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[2];
     data[0] = new EI(message,"Placer Assigned Identifier");
     data[1] = new EI(message,"Filler Assigned Identifier");
 }
示例#2
0
 ///<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");
 }
示例#3
0
文件: PIP.cs 项目: snosrap/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
文件: PL.cs 项目: hongweichang/nHapi
 ///<summary>
 /// Creates a PL.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public PL(IMessage message, string description) : base(message, description)
 {
     data     = new IType[11];
     data[0]  = new IS(message, 302, "Point of Care");
     data[1]  = new IS(message, 303, "Room");
     data[2]  = new IS(message, 304, "Bed");
     data[3]  = new HD(message, "Facility");
     data[4]  = new IS(message, 306, "Location Status");
     data[5]  = new IS(message, 305, "Person Location Type");
     data[6]  = new IS(message, 307, "Building");
     data[7]  = new IS(message, 308, "Floor");
     data[8]  = new ST(message, "Location Description");
     data[9]  = new EI(message, "Comprehensive Location Identifier");
     data[10] = new HD(message, "Assigning Authority for Location");
 }
示例#5
0
文件: PL.cs 项目: snosrap/nhapi
 ///<summary>
 /// Creates a PL.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public PL(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[11];
     data[0] = new IS(message, 302,"Point of Care");
     data[1] = new IS(message, 303,"Room");
     data[2] = new IS(message, 304,"Bed");
     data[3] = new HD(message,"Facility");
     data[4] = new IS(message, 306,"Location Status");
     data[5] = new IS(message, 305,"Person Location Type");
     data[6] = new IS(message, 307,"Building");
     data[7] = new IS(message, 308,"Floor");
     data[8] = new ST(message,"Location Description");
     data[9] = new EI(message,"Comprehensive Location Identifier");
     data[10] = new HD(message,"Assigning Authority for Location");
 }
示例#6
0
文件: OBX.cs 项目: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Equipment Instance Identifier (OBX-18).
 ///</summary>
 public EI[] GetEquipmentInstanceIdentifier()
 {
     EI[] ret = null;
     try {
     IType[] t = this.GetField(18);
     ret = new EI[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (EI)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
文件: EIP.cs 项目: hongweichang/nHapi
 ///<summary>
 /// Creates a EIP.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public EIP(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new EI(message, "Placer Assigned Identifier");
     data[1] = new EI(message, "Filler Assigned Identifier");
 }