Code Search for Developers
 
 
  

SubWorkFlow_Add_Adverse_Reaction.xml from HL7v3 Test Harness at Krugle


Show SubWorkFlow_Add_Adverse_Reaction.xml syntax highlighted

<?xml version="1.0" encoding="UTF-8"?>
<!--  
    Copyright © 1996-2006 by DeltaWare Systems Inc. 

    The GNU General Public License (GPL)
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the 
    Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->


<workflows testDataFile="TestData.xml">
    <workflow id="w_AddAdverseReaction" description="Workflow (Add Adverse Reaction)">
        <message description="Pharmacist Adds Adverse Reaction" root-element-name ="REPC_IN000004CA">
            <request description="Add Adverse Reaction Request">
                <Simulator RemoteServerAddr="http://DIS_Server/">
                    <construction>
                        <rule type="transform" description="Add Adverse Reaction Request message" filename="..\WorkFlow_Lib\Reaction/ReactionAddRequest.xsl">
                            <paramList name="ProfileData">
                                <param name="profile-description" value="CP-UC4-SS4(Correct Clinical Data)"/>
                                <param name="profile-sequence" value="v1"/>
                                <param name="patient-description"/>
                                <param name="msg-effective-time"/>
                                <param name="reaction-description" value="Reaction 1 - Nausea"/>
                            </paramList>
                        </rule>
                    </construction>
                </Simulator>
                <messageProxy>
                    <validation description="Schema Validate">
                        <rule type="schema" description="Schema Message Validation" filename="..\WorkFlow_Lib\schemas\REPC_IN000004CA.xsd" expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                    </validation>
                    <validation description="Format Validate">
                        <rule type="transform" description="Transmission wrapper format Validation" filename="..\WorkFlow_Lib\Common\Validation\CeRx_transmission_wrapper.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                        <rule type="transform" description="ControlAct wrapper format Validation" filename="..\WorkFlow_Lib\Common\Validation\CeRx_controlAct_wrapper.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                        <rule type="transform" description="Payload Validation" filename="..\WorkFlow_Lib\Common\Validation\Reaction_Payload_validation.xsl" expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                        <rule type="transform" description="Common Element Validation" filename="..\WorkFlow_Lib\Common\Validation\CeRx_Common_Element_validation.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                    </validation>
                    <construction>
                        <rule type="testDataLoad" description="update test data with new data" filename="..\WorkFlow_Lib\Common\Construction\TestDataLoader.xsl">
                            <paramList name="ProfileData">
                                <param name="profile-description" value="CP-UC4-SS4(Correct Clinical Data)"/>
                            </paramList>
                            <paramList>
                                <param name="messageType" value="client"/>
                                <param name="profile-sequence" value="(Generated)"/>
                            </paramList>
                        </rule>

                        <rule type="transform" description="Generic Response Transform Message" filename="..\WorkFlow_Lib\Common\Construction\MessageProxy.xsl">
                            <paramList name="ProfileData">
                                <param name="profile-description" value="CP-UC4-SS4(Correct Clinical Data)"/>
                            </paramList>
                            <paramList>
                                <param name="profile-sequence" value="(Generated)"/>
                            </paramList>
                        </rule>
                        <!-- Control Act ID for undos (We need the request ControlAct extension for undos).-->
                        <rule type="setVariable" description="Last Request Control Act ID extension" name="LastRequestContorlActID" xpath="descendant-or-self::ns:controlActEvent/ns:id/@extension" ns="urn:hl7-org:v3"/>

                    </construction>
                </messageProxy>
            </request>
            <response description="Add Adverse Reaction Response">
                <Simulator RemoteServerAddr="">
                    <construction>
                        <rule type="transform" description="Add Adverse Reaction Response Message" filename="..\WorkFlow_Lib\Reaction/ReactionAddAcceptedResponse.xsl">
                            <paramList name="ProfileData">
                                <param name="profile-description" value="CP-UC4-SS4(Correct Clinical Data)"/>
                            </paramList>
                            <paramList>
                                <param name="profile-sequence" value="(Generated)"/>
                            </paramList>
                        </rule>
                    </construction>
                </Simulator>
                <messageProxy>
                    <validation description="Schema Validate"                     root-element-name ="REPC_IN000005CA">
                        <rule type="schema" description="Accepted Response - Schema Validation" filename="..\WorkFlow_Lib\schemas\REPC_IN000005CA.xsd" expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                    </validation>
                    <validation description="Schema Validate"                     root-element-name ="REPC_IN000006CA">
                        <rule type="schema" description="Rejected Response - Schema Validation" filename="..\WorkFlow_Lib\schemas\REPC_IN000006CA.xsd" expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                    </validation>
                    <validation description="System Error Response Check" root-element-name ="MCCI_IN000002UV01">
                        <rule type="transform" description="Issue Content Validation" filename="..\WorkFlow_Lib\Common\validation\SystemError_Text.xsl" expectedfile="..\WorkFlow_Lib\Common\validation\expectedResults\EmptyOutputExpected.txt">
                            <paramList name="ProfileData">
                                <param name="SystemErrorsExpected"/>
                                <param name="SystemErrorText"/>
                            </paramList>
                        </rule>
                    </validation>
                    <validation description="Validate Format">
                        <rule type="transform" description="CR transmission wrapper format Validation" filename="..\WorkFlow_Lib\Common\validation\CeRx_transmission_wrapper.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\validation\expectedResults\EmptyOutputExpected.txt"/>
                        <rule type="transform" description="CeRx control wrapper format Validation" filename="..\WorkFlow_Lib\Common\validation\CeRx_controlAct_wrapper.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\validation\expectedResults\EmptyOutputExpected.txt"/>
                        <rule type="transform" description="Common Element Validation" filename="..\WorkFlow_Lib\Common\Validation\CeRx_Common_Element_validation.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt"/>
                        <rule type="transform" description="Response Payload Validation" filename="..\WorkFlow_Lib\Common\Validation\AddOrUpdate_Response_AcceptOrReject_validation.xsl"
                            expectedfile="..\WorkFlow_Lib\Common\Validation\expectedResults\EmptyOutputExpected.txt">
                            <paramList name="ProfileData">
                                <param name="ResponseType"/>
                            </paramList>
                        </rule>
                    </validation>
                    <validation description="Issue Validation">
                        <rule type="transform" description="Issue Content Validation" filename="..\WorkFlow_Lib\Common\validation\Issue_Text_validation.xsl" expectedfile="..\WorkFlow_Lib\Common\validation\expectedResults\EmptyOutputExpected.txt">
                            <paramList name="ProfileData">
                                                                <param name="maxIssueCount"/>                                 <param name="minIssueCount"/>                                 <param name="IssueText"/> 
                                <param name="IssueCode"/>
                                <param name="IssuePriority"/>
                                <param name="IssueSeverity"/>                                 <param name="StrickIssueValidation"/>
                            </paramList>
                        </rule>
                    </validation>
                    <construction>
                        <rule type="testDataLoad" description="update test data with new data (ex ID's)" filename="..\WorkFlow_Lib\Common\Construction\TestDataIDLoader.xsl">
                            <paramList name="ProfileData">
                                <!-- <param name="recordName" value=""/> -->
                                <param name="profile-description" value="CP-UC4-SS4(Correct Clinical Data)"/>
                            </paramList>
                            <paramList>
                                <param name="profile-sequence" value="(Generated)"/>
                            </paramList>
                        </rule>
                        <rule type="transform" description="Generic Response Transform Message" filename="..\WorkFlow_Lib\Common\Construction\MessageProxy.xsl">
                            <paramList name="ProfileData">
                                <param name="profile-description" value="CP-UC4-SS4(Correct Clinical Data)"/>
                            </paramList>
                            <paramList>
                                <param name="profile-sequence" value="(Generated)"/>
                            </paramList>
                        </rule>
                        <rule type="setVariable" description="Client Reaction ID" name="ClientReactionID" xpath="descendant-or-self::ns:controlActEvent/ns:subject/ns:actEvent/ns:id[1]/@extension" ns="urn:hl7-org:v3"/>
                        <!-- Last Record ID's are used by client simulator messages "Add reord Note" to referance the last message sent-->
                        <rule type="setVariable" description="Last Record ID" name="LastRecordID" xpath="descendant-or-self::ns:controlActEvent/ns:subject/ns:actEvent/ns:id[1]/@extension" ns="urn:hl7-org:v3"/>
                        <rule type="setVariable" description="Last Record ID Root" name="LastRecordRoot" xpath="descendant-or-self::ns:controlActEvent/ns:subject/ns:actEvent/ns:id[1]/@root" ns="urn:hl7-org:v3"/>
                    </construction>
                </messageProxy>
            </response>
        </message>

    </workflow>
</workflows>




See more files for this project here

HL7v3 Test Harness

The HL7 Test Harness system is an HL7 v3 message conformance testing application that also provides the ability to simulate the message processing actions of a client and/or server system. The app provides message workflow, format and content testing.

Project homepage: http://sourceforge.net/projects/hl7-testharness
Programming language(s): C#,XML
License: gpl2

  SubWorkFlow_Abort_Dispensing.xml
  SubWorkFlow_Add_Adverse_Reaction.xml
  SubWorkFlow_Add_Allergy.xml
  SubWorkFlow_Add_Allergy_with_LastReaction.xml
  SubWorkFlow_Add_Dispense.xml
  SubWorkFlow_Add_Dispense_Pickup.xml
  SubWorkFlow_Add_Immunization.xml
  SubWorkFlow_Add_Medical_Condition.xml
  SubWorkFlow_Add_Observation.xml
  SubWorkFlow_Add_Other_Medication.xml
  SubWorkFlow_Add_Patient_Note.xml
  SubWorkFlow_Add_Prescription.xml
  SubWorkFlow_Add_Professional_Service.xml
  SubWorkFlow_Add_Record_Note.xml
  SubWorkFlow_Convert_CPHA.xml
  SubWorkFlow_Drug_ContrainDications(Client Sim Only).xml
  SubWorkFlow_Drug_Details(Client Sim Only).xml
  SubWorkFlow_Drug_Document(Client Sim Only).xml
  SubWorkFlow_Drug_Search(Client Sim Only).xml
  SubWorkFlow_Find_Candidate.xml
  SubWorkFlow_Find_Candidate_Simple.xml
  SubWorkFlow_Generic_Undo.xml
  SubWorkFlow_Generic_Undo_Rejection.xml
  SubWorkFlow_Get_Demographics.xml
  SubWorkFlow_Hold_Prescription.xml
  SubWorkFlow_Manage_Last_Issue.xml
  SubWorkFlow_Patient_Drug_ContrainDications(Client Sim Only).xml
  SubWorkFlow_Patient_Drug_ContrainDications(ClientOnly).xml
  SubWorkFlow_Patient_Profile(Adverse Reactions).xml
  SubWorkFlow_Patient_Profile(Allergies w History).xml
  SubWorkFlow_Patient_Profile(Allergies).xml
  SubWorkFlow_Patient_Profile(Dispense Detail).xml
  SubWorkFlow_Patient_Profile(Dispense Summary).xml
  SubWorkFlow_Patient_Profile(Immunizations).xml
  SubWorkFlow_Patient_Profile(Keyword check).xml
  SubWorkFlow_Patient_Profile(Medical Conditions w History).xml
  SubWorkFlow_Patient_Profile(Medical Conditions).xml
  SubWorkFlow_Patient_Profile(Medical Profile Summary).xml
  SubWorkFlow_Patient_Profile(Medical Profile).xml
  SubWorkFlow_Patient_Profile(Observations).xml
  SubWorkFlow_Patient_Profile(Other Medication Detail).xml
  SubWorkFlow_Patient_Profile(Patient Notes).xml
  SubWorkFlow_Patient_Profile(Prescription Detail).xml
  SubWorkFlow_Patient_Profile(Prescription Fills).xml
  SubWorkFlow_Patient_Profile(Prescription Summary).xml
  SubWorkFlow_Patient_Profile(Prescription w History).xml
  SubWorkFlow_Patient_Profile(Professional Services).xml
  SubWorkFlow_Patient_Profile(Unfilled Prescriptions by Provider).xml
  SubWorkFlow_Patient_Profile(Unfilled Prescriptions).xml
  SubWorkFlow_Patient_Profile.xml
  SubWorkFlow_Patient_Profile_Optional.xml
  SubWorkFlow_PreDetermin_Prescription.xml
  SubWorkFlow_RefusalToFill_Prescription.xml
  SubWorkFlow_Release_Prescription.xml
  SubWorkFlow_Remove_Patient_Note.xml
  SubWorkFlow_Request_Payment.xml
  SubWorkFlow_Reverse_Dispense.xml
  SubWorkFlow_Reverse_Payment.xml
  SubWorkFlow_Stop_Prescription.xml
  SubWorkFlow_Transfer_Prescription.xml
  SubWorkFlow_Update_Adverse_Reaction.xml
  SubWorkFlow_Update_Allergy.xml
  SubWorkFlow_Update_Immunization.xml
  SubWorkFlow_Update_Medical_Condition.xml
  SubWorkFlow_Update_Other_Medication.xml