Example #1
0
        /// <summary>
        /// HL7 Message Generation. Generate some HL7 Messages using the given xmlProfile, xmlContext and
        /// xmlFixedData.
        /// </summary>
        /// <param name="xmlProfile">HL7 Conformance Profile - encoded as XML.</param>
        /// <param name="xmlContext">Generation Context - encoded as XML.</param>
        /// <param name="xmlFixedData">Fixed Data - encoded as XML.</param>
        /// <returns>ER7 encoded String based HL7 Messages.</returns>
        public System.String[] Generate(System.String xmlProfile, System.String xmlContext, System.String xmlFixedData)
        {
            System.String[] messages = null;

            Dvtk.IheActors.Hl7.WebService.Generation.setProfile         profile         = new Dvtk.IheActors.Hl7.WebService.Generation.setProfile();
            Dvtk.IheActors.Hl7.WebService.Generation.setProfileResponse profileResponse = new Dvtk.IheActors.Hl7.WebService.Generation.setProfileResponse();
            profile.param0  = xmlProfile;
            profileResponse = _hl7MessageGeneration.setProfile(profile);
            if (profileResponse.@return != true)
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.setProfile(profile)");
            }

            Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContext         context         = new Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContext();
            Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContextResponse contextResponse = new Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContextResponse();
            context.param0  = xmlContext;
            contextResponse = _hl7MessageGeneration.setGenerationContext(context);
            if (contextResponse.@return != true)
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.setGenerationContext(context)");
            }

            Dvtk.IheActors.Hl7.WebService.Generation.setFixedData         fixedData         = new Dvtk.IheActors.Hl7.WebService.Generation.setFixedData();
            Dvtk.IheActors.Hl7.WebService.Generation.setFixedDataResponse fixedDataResponse = new Dvtk.IheActors.Hl7.WebService.Generation.setFixedDataResponse();
            fixedData.param0  = xmlFixedData;
            fixedDataResponse = _hl7MessageGeneration.setFixedData(fixedData);
            if (fixedDataResponse.@return != true)
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.setFixedData(fixedData)");
            }

            Dvtk.IheActors.Hl7.WebService.Generation.generate         generate         = new Dvtk.IheActors.Hl7.WebService.Generation.generate();
            Dvtk.IheActors.Hl7.WebService.Generation.generateResponse generateResponse = new Dvtk.IheActors.Hl7.WebService.Generation.generateResponse();
            generateResponse = _hl7MessageGeneration.generate(generate);
            if (generateResponse.@return == true)
            {
                Dvtk.IheActors.Hl7.WebService.Generation.getMessages msgs = new Dvtk.IheActors.Hl7.WebService.Generation.getMessages();
                messages = _hl7MessageGeneration.getMessages(msgs);
            }
            else
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.generate(generate)");
            }

            return(messages);
        }
Example #2
0
        /// <summary>
        /// HL7 Message Generation. Generate some HL7 Messages using the given xmlProfile, xmlContext and
        /// xmlFixedData.
        /// </summary>
        /// <param name="xmlProfile">HL7 Conformance Profile - encoded as XML.</param>
        /// <param name="xmlContext">Generation Context - encoded as XML.</param>
        /// <param name="xmlFixedData">Fixed Data - encoded as XML.</param>
        /// <returns>ER7 encoded String based HL7 Messages.</returns>
        public System.String[] Generate(System.String xmlProfile, System.String xmlContext, System.String xmlFixedData)
        {
            System.String[] messages = null;

            Dvtk.IheActors.Hl7.WebService.Generation.setProfile profile = new Dvtk.IheActors.Hl7.WebService.Generation.setProfile();
            Dvtk.IheActors.Hl7.WebService.Generation.setProfileResponse profileResponse = new Dvtk.IheActors.Hl7.WebService.Generation.setProfileResponse();
            profile.param0 = xmlProfile;
            profileResponse = _hl7MessageGeneration.setProfile(profile);
            if (profileResponse.@return != true)
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.setProfile(profile)");
            }

            Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContext context = new Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContext();
            Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContextResponse contextResponse = new Dvtk.IheActors.Hl7.WebService.Generation.setGenerationContextResponse();
            context.param0 = xmlContext;
            contextResponse = _hl7MessageGeneration.setGenerationContext(context);
            if (contextResponse.@return != true)
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.setGenerationContext(context)");
            }

            Dvtk.IheActors.Hl7.WebService.Generation.setFixedData fixedData = new Dvtk.IheActors.Hl7.WebService.Generation.setFixedData();
            Dvtk.IheActors.Hl7.WebService.Generation.setFixedDataResponse fixedDataResponse = new Dvtk.IheActors.Hl7.WebService.Generation.setFixedDataResponse();
            fixedData.param0 = xmlFixedData;
            fixedDataResponse = _hl7MessageGeneration.setFixedData(fixedData);
            if (fixedDataResponse.@return != true)
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.setFixedData(fixedData)");
            }

            Dvtk.IheActors.Hl7.WebService.Generation.generate generate = new Dvtk.IheActors.Hl7.WebService.Generation.generate();
            Dvtk.IheActors.Hl7.WebService.Generation.generateResponse generateResponse = new Dvtk.IheActors.Hl7.WebService.Generation.generateResponse();
            generateResponse = _hl7MessageGeneration.generate(generate);
            if (generateResponse.@return == true)
            {
                Dvtk.IheActors.Hl7.WebService.Generation.getMessages msgs = new Dvtk.IheActors.Hl7.WebService.Generation.getMessages();
                messages = _hl7MessageGeneration.getMessages(msgs);
            }
            else
            {
                DisplayErrorDescriptionGeneration("_hl7MessageGeneration.generate(generate)");
            }

            return messages;
        }