Beispiel #1
0
        /// <summary>
        /// Returns a single repetition of Room coverage type / amount(IN2-28). throws HL7Exception if
        /// the repetition number is invalid.
        /// </summary>
        ///
        /// <exception cref="Exception">    Thrown when an exception error condition occurs. </exception>
        ///
        /// <param name="rep">  The repetition number (this is a repeating field) </param>
        ///
        /// <returns>   The room coverage type amount. </returns>

        public CM_RMC GetRoomCoverageTypeAmount(int rep)
        {
            CM_RMC ret = null;

            try
            {
                IType t = this.GetField(28, rep);
                ret = (CM_RMC)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 a single repetition of Room coverage type / amount (IN2-28).</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_RMC getRoomCoverageTypeAmount(int rep)
        {
            CM_RMC ret = null;

            try
            {
                Type t = this.getField(28, rep);
                ret = (CM_RMC)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
Beispiel #3
0
        /// <summary> Returns all repetitions of Room coverage type / amount (IN2-28). </summary>
        ///
        /// <exception cref="Exception">  Thrown when an exception error condition occurs. </exception>
        ///
        /// <returns> An array of centimetres rmc. </returns>

        public CM_RMC[] GetRoomCoverageTypeAmount()
        {
            CM_RMC[] ret = null;
            try {
                IType[] t = this.GetField(28);
                ret = new CM_RMC[t.Length];
                for (int i = 0; i < ret.Length; i++)
                {
                    ret[i] = (CM_RMC)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);
        }
Beispiel #4
0
 /// <summary> Returns all repetitions of Room coverage type / amount (IN2-28).</summary>
 public virtual CM_RMC[] getRoomCoverageTypeAmount()
 {
     CM_RMC[] ret = null;
     try
     {
         Type[] t = this.getField(28);
         ret = new CM_RMC[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_RMC)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }