Exemple #1
0
        /// <summary> Returns a single repetition of Assistant Result Interpreter + (OBR-33).</summary>
        /// <param name="rep">the repetition number (this is a repeating field)
        /// </param>
        /// <throws>  HL7Exception if the repetition number is invalid. </throws>
        public virtual NDL getAssistantResultInterpreter(int rep)
        {
            NDL ret = null;

            try
            {
                Type t = this.getField(33, rep);
                ret = (NDL)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
Exemple #2
0
        /// <summary> Returns a single repetition of Transcriptionist + (OBR-35).</summary>
        /// <param name="rep">the repetition number (this is a repeating field)
        /// </param>
        /// <throws>  HL7Exception if the repetition number is invalid. </throws>
        public virtual NDL getTranscriptionist(int rep)
        {
            NDL ret = null;

            try
            {
                Type t = this.getField(35, rep);
                ret = (NDL)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
        /// <summary>
        /// Validate the principal result interpreter.
        /// </summary>
        /// <param name="principalResultInterpreter">Principal result interpreter</param>
        /// <exception cref="MessageValidationException"/>
        internal static void ValidatePrincipalResultInterpreter(NDL principalResultInterpreter)
        {
            if (principalResultInterpreter?.name == null)
            {
                throw new MessageValidationException("Message missing PrincipalResultInterpreter");
            }

            if (string.IsNullOrWhiteSpace(principalResultInterpreter.name.familyname))
            {
                throw new MessageValidationException(ResponseStrings.HealthProviderNameNotSupplied);
            }

            if (principalResultInterpreter.name.assigningauthority?.universalID == null)
            {
                throw new MessageValidationException("Message missing PrincipalResultInterpreter universalID");
            }
        }
Exemple #4
0
 /// <summary> Returns all repetitions of Transcriptionist + (OBR-35).</summary>
 public virtual NDL[] getTranscriptionist()
 {
     NDL[] ret = null;
     try
     {
         Type[] t = this.getField(35);
         ret = new NDL[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (NDL)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }