Example #1
0
        ///<summary>
        /// Returns  first repetition of VXU_V04_ORDER (a Group object) - creates it if necessary
        ///</summary>
        public VXU_V04_ORDER GetORDER()
        {
            VXU_V04_ORDER ret = null;

            try {
                ret = (VXU_V04_ORDER)this.GetStructure("ORDER");
            } catch (HL7Exception e) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
                throw new System.Exception("An unexpected error ocurred", e);
            }
            return(ret);
        }
Example #2
0
        /// <summary> Returns  first repetition of VXU_V04_ORDER (a Group object) - creates it if necessary</summary>
        public virtual VXU_V04_ORDER getORDER()
        {
            VXU_V04_ORDER ret = null;

            try
            {
                ret = (VXU_V04_ORDER)this.get_Renamed("ORDER");
            }
            catch (NuGenHL7Exception)
            {
                throw new Exception();
            }
            return(ret);
        }
Example #3
0
        public void BuildHl7ImmunizationMessage_GivenActivity_Succeeds()
        {
            var keyValues = new Dictionary <string, long>
            {
                { HttpHandlerQueryStrings.ActivityKey, AlbertSmithPatientClinicalCaseOneVisitFourImmunizationTwo.Key },
            };

            var    hl7ImmunizationFactory = new Hl7ImmunizationFactory(SessionProvider);
            string message       = hl7ImmunizationFactory.GetHl7Message(keyValues);
            var    messageObject = new PipeParser().Parse(message);
            var    vxuV04        = ( VXU_V04 )messageObject;

            VXU_V04_ORDER order = vxuV04.GetORDER();

            Assert.IsNotNull(order);
        }
Example #4
0
 ///<summary>
 ///Removes the given VXU_V04_ORDER
 ///</summary>
 public void RemoveORDER(VXU_V04_ORDER toRemove)
 {
     this.RemoveStructure("ORDER", toRemove);
 }