예제 #1
0
        /**
         * Returns a single repetition of Occurrence Span Code/Dates (36)(UB2-8).
         * @param rep the repetition number (this is a repeating field)
         * @throws HL7Exception if the repetition number is invalid.
         */
        public CM_OSP getOccurrenceSpanCodeDates(int rep)
        {
            CM_OSP ret = null;

            try
            {
                Type t = this.getField(8, rep);
                ret = (CM_OSP)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);
        }
예제 #2
0
파일: UB2.cs 프로젝트: carlhuth/GenXSource
        /// <summary> Returns a single repetition of Occurrence span code / dates (36) (UB2-8).</summary>
        /// <param name="rep">the repetition number (this is a repeating field)
        /// </param>
        /// <throws>  HL7Exception if the repetition number is invalid. </throws>
        public virtual CM_OSP getOccurrenceSpanCodeDates(int rep)
        {
            CM_OSP ret = null;

            try
            {
                Type t = this.getField(8, rep);
                ret = (CM_OSP)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
예제 #3
0
 /**
  * Returns all repetitions of Occurrence Span Code/Dates (36) (UB2-8).
  */
 public CM_OSP[] getOccurrenceSpanCodeDates()
 {
     CM_OSP[] ret = null;
     try {
         Type[] t = this.getField(8);
         ret = new CM_OSP[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_OSP)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);
 }
예제 #4
0
파일: UB2.cs 프로젝트: carlhuth/GenXSource
 /// <summary> Returns all repetitions of Occurrence span code / dates (36) (UB2-8).</summary>
 public virtual CM_OSP[] getOccurrenceSpanCodeDates()
 {
     CM_OSP[] ret = null;
     try
     {
         Type[] t = this.getField(8);
         ret = new CM_OSP[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_OSP)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }