Beispiel #1
0
        ///<summary>
        /// Returns a single repetition of FSC Reporting Category(ZEG-6).
        /// throws HL7Exception if the repetition number is invalid.
        /// <param name="rep">The repetition number (this is a repeating field)</param>
        ///</summary>
        public CM_FSC GetFSCReportingCategory(int rep)
        {
            CM_FSC ret = null;

            try
            {
                IType t = this.GetField(6, rep);
                ret = (CM_FSC)t;
            } catch (System.Exception ex) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", ex);
                throw new System.Exception("An unexpected error ocurred", ex);
            }
            return(ret);
        }
Beispiel #2
0
 ///<summary>
 /// Returns all repetitions of FSC Reporting Category (ZEG-6).
 ///</summary>
 public CM_FSC[] GetFSCReportingCategory()
 {
     CM_FSC[] ret = null;
     try {
         IType[] t = this.GetField(6);
         ret = new CM_FSC[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_FSC)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);
 }