예제 #1
0
파일: LDP.cs 프로젝트: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Location Service (LDP-3).
 ///</summary>
 public IS[] GetLocationService()
 {
     IS[] ret = null;
     try {
     IType[] t = this.GetField(3);
     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 CM_PEN.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_PEN(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new IS(message, 0, "Penalty type");
     data[1] = new NM(message, "Penalty amount");
 }
예제 #3
0
파일: CM_RI.cs 프로젝트: hongweichang/nHapi
 ///<summary>
 /// Creates a CM_RI.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_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 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, 0, "Financial Class");
     data[1] = new TS(message, "Effective Date");
 }
예제 #5
0
파일: JCC.cs 프로젝트: hongweichang/nHapi
 ///<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, 0, "Job code");
     data[1] = new IS(message, 0, "Job class");
 }
예제 #6
0
 ///<summary>
 /// Creates a CM_DTN.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_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");
 }
예제 #7
0
 ///<summary>
 /// Creates a CM_UVC.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_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");
 }
예제 #8
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 ST(message, "Parameter value");
 }