示例#1
0
文件: PD1.cs 项目: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of Living Dependency (PD1-1).
   ///</summary>
  public IS[] GetLivingDependency() {
     IS[] ret = null;
    try {
        IType[] t = this.GetField(1);  
        ret = new IS[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (IS)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;
}
示例#2
0
        /// <summary>   Creates a FC. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public FC(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 64, "Financial Class");
            data[1] = new TS(message, "Effective Date");
        }
示例#3
0
        /// <summary>   Creates a RI. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public RI(IMessage message, string description) : base(message, description)
        {
            data    = new IType[2];
            data[0] = new IS(message, 0, "Repeat pattern");
            data[1] = new ST(message, "Explicit time interval");
        }
示例#4
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");
        }
示例#5
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");
 }
示例#6
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, 0, "Discharge location");
     data[1] = new TS(message, "Effective date");
 }
示例#7
0
 ///<summary>
 /// Creates a SCV.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public SCV(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 0, "Parameter class");
     data[1] = new IS(message, 0, "Parameter value");
 }
示例#8
0
 ///<summary>
 /// Creates a JCC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public JCC(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 327, "Job code");
     data[1] = new IS(message, 328, "Job class");
 }
示例#9
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");
        }