Exemplo n.º 1
0
        /**
         * Returns a single repetition of Result Copies To(OBR-28).
         * @param rep the repetition number (this is a repeating field)
         * @throws HL7Exception if the repetition number is invalid.
         */
        public CN_PERSON getResultCopiesTo(int rep)
        {
            CN_PERSON ret = null;

            try
            {
                Type t = this.getField(28, rep);
                ret = (CN_PERSON)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);
        }
Exemplo n.º 2
0
 /**
  * Returns all repetitions of Result Copies To (OBR-28).
  */
 public CN_PERSON[] getResultCopiesTo()
 {
     CN_PERSON[] ret = null;
     try {
         Type[] t = this.getField(28);
         ret = new CN_PERSON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CN_PERSON)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);
 }