source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/NhincProxyBPEL/src/NhinProxySubjectDiscovery.bpel@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 87.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<process
3 name="NhinProxySubjectDiscovery"
4 targetNamespace="urn:gov:hhs:fha:nhinc:gateway:nhincproxybpel:nhinproxysubjectdiscovery"
5 xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
6 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7 xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
8 xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
9 xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
10 xmlns:tns="urn:gov:hhs:fha:nhinc:gateway:nhincproxybpel:nhinproxysubjectdiscovery"
11 xmlns:hl7="urn:hl7-org:v3"
12 xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
13 xmlns:conninfo="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo"
14 xmlns:nccommon="urn:gov:hhs:fha:nhinc:common:nhinccommon"
15 xmlns:soapaddr04="http://schemas.xmlsoap.org/ws/2004/08/addressing"
16 xmlns:pixv3="urn:ihe:iti:pixv3:2007" xmlns:audit="urn:gov:hhs:fha:nhinc:common:auditlog">
17 <import namespace="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" location="Interfaces/wsdl/NhincProxySubjectDiscovery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
18 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" location="Interfaces/wsdl/NhincComponentSubDiscTransforms.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
19 <import namespace="http://enterprise.netbeans.org/bpel/NhinSubjectDiscoveryWrapper" location="NhinSubjectDiscoveryWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
20 <import namespace="urn:ihe:iti:pixv3:2007" location="Interfaces/wsdl/NhinSubjectDiscovery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
21 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" location="Interfaces/wsdl/NhincComponentConnectionManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
22 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
23 <partnerLinks>
24 <partnerLink name="SubDiscDataTransformsPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" partnerLinkType="tns:NhincComponentSubDiscTransforms" partnerRole="NhincComponentSubDiscTransformsPortTypeRole"/>
25 <partnerLink name="ConnectionMgrPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" partnerLinkType="tns:NhincComponentConnectionManager" partnerRole="NhincComponentConnectionManagerPortTypeRole"/>
26 <partnerLink name="NhinSubjectDiscoveryPL" xmlns:tns="http://enterprise.netbeans.org/bpel/NhinSubjectDiscoveryWrapper" partnerLinkType="tns:PIXConsumer_LinkType" partnerRole="PIXConsumer_Role"/>
27 <partnerLink name="AuditRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
28 <partnerLink name="NhincProxySubjectDiscoveryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" partnerLinkType="tns:NhincProxySubjectDiscovery" myRole="NhincProxySubjectDiscoveryPortTypeRole"/>
29 </partnerLinks>
30 <variables>
31 <variable name="PIX201309In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201309UVProxyRequestMessage"/>
32 <variable name="PIX201304In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201304UVProxyRequestMessage"/>
33 <variable name="PIX201303In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201303UVProxyRequestMessage"/>
34 <variable name="PIX201302In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201302UVProxyRequestMessage"/>
35 <variable name="PIX201301In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201301UVProxyRequestMessage"/>
36 </variables>
37 <sequence>
38 <pick name="HandleSubDiscoveryMessageSeq" createInstance="yes">
39 <onMessage partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201301In">
40 <scope name="Handle201301Scope">
41 <variables>
42 <variable name="GetConnectionInfoEndpontFromNhinTargetIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
43 <variable name="LogNhinSubjectDiscoveryAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
44 <variable name="LogNhinSubjectDiscoveryAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinSubjectDiscoveryAckRequestMessage"/>
45 <variable name="LogSubjectAddedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
46 <variable name="LogSubjectAddedIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectAddedRequestMessage"/>
47 <variable name="PIX201301OutgoingOut" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:MCCI_IN000002UV01_Message"/>
48 <variable name="PIX201301OutgoingIn" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:PRPA_IN201301UV_Message"/>
49 <variable name="GetConnectionInfoEndpointOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
50 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
51 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
52 <variable name="PIX201301Out" messageType="tns:PIXConsumer_PRPA_IN201301UVProxyResponseMessage"/>
53 </variables>
54 <faultHandlers>
55 <catch faultName="sxeh:systemFault" faultVariable="systemFault201301Var" faultMessageType="sxeh:faultMessage">
56 <sequence name="SystemFault201301Seq">
57 <assign name="AssignFaultAckDte">
58 <sxt:trace>
59 <sxt:log level="info" location="onStart">
60 <bpel:from>'NhinProxySubjectDiscovery.bpel - A system fault was encounterd processing a 201301 message. Fault detials follow...'</bpel:from>
61 </sxt:log>
62 <sxt:log level="warning" location="onStart">
63 <bpel:from variable="systemFault201301Var"/>
64 </sxt:log>
65 </sxt:trace>
66 <copy>
67 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV/hl7:id</from>
68 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
69 </copy>
70 <copy>
71 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV/hl7:sender/hl7:device/hl7:id/@root)</from>
72 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
73 </copy>
74 <copy>
75 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV/hl7:sender/hl7:device/hl7:id/@root)</from>
76 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
77 </copy>
78 <copy>
79 <from>'Error - Internal Gateway Error: Message Not Sent'</from>
80 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
81 </copy>
82 </assign>
83 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
84 <assign name="Assign201301FaultInfo">
85 <copy>
86 <from variable="CreateAckOut" part="CreateAckResponse"/>
87 <to variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVProxyResponse"/>
88 </copy>
89 </assign>
90 <reply name="ReplyNhinSubDisc201301Fault" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201301Out"/>
91 <exit name="ExitAfter201301FaultReturn"/>
92 </sequence>
93 </catch>
94 </faultHandlers>
95 <sequence name="Send201301Seq">
96 <assign name="AssignAudit201301">
97 <copy>
98 <from>'Outbound'</from>
99 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:direction</to>
100 </copy>
101 <copy>
102 <from>'Nhin'</from>
103 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:interface</to>
104 </copy>
105 <copy>
106 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV</from>
107 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:message/hl7:PRPA_IN201301UV</to>
108 </copy>
109 <copy>
110 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion</from>
111 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:message/hl7:assertion</to>
112 </copy>
113 </assign>
114 <invoke name="InvokeAudit201301" partnerLink="AuditRepositoryPL" operation="LogSubjectAdded" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectAddedIn" outputVariable="LogSubjectAddedOut"/>
115 <assign name="AssignGetNhinConnectionInfo">
116 <copy>
117 <from>'subjectdiscovery'</from>
118 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
119 </copy>
120 <copy>
121 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:nhinTargetSystem</from>
122 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
123 </copy>
124 </assign>
125 <invoke name="InvokeGetNhinConnectionInfo" partnerLink="ConnectionMgrPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoEndpontFromNhinTargetIn" outputVariable="GetConnectionInfoEndpointOut"/>
126 <assign name="AssignAssertion">
127 <copy>
128 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:claimFormRef</from>
129 <to variable="PIX201301OutgoingIn" property="pixv3:contentReference"/>
130 </copy>
131 <copy>
132 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:expirationDate</from>
133 <to variable="PIX201301OutgoingIn" property="pixv3:expirationDate"/>
134 </copy>
135 <copy>
136 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
137 <to variable="PIX201301OutgoingIn" property="pixv3:purposeForUseCodeSystem"/>
138 </copy>
139 <copy>
140 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
141 <to variable="PIX201301OutgoingIn" property="pixv3:purposeForUseCodeSystemName"/>
142 </copy>
143 <copy>
144 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
145 <to variable="PIX201301OutgoingIn" property="pixv3:purposeForUseDisplayName"/>
146 </copy>
147 <copy>
148 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
149 <to variable="PIX201301OutgoingIn" property="pixv3:purposeForUseRoleCode"/>
150 </copy>
151 <copy>
152 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:dateOfSignature</from>
153 <to variable="PIX201301OutgoingIn" property="pixv3:signDate"/>
154 </copy>
155 <copy>
156 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
157 <to variable="PIX201301OutgoingIn" property="pixv3:userFirstName"/>
158 </copy>
159 <copy>
160 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
161 <to variable="PIX201301OutgoingIn" property="pixv3:userLastName"/>
162 </copy>
163 <copy>
164 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
165 <to variable="PIX201301OutgoingIn" property="pixv3:userMiddleName"/>
166 </copy>
167 <copy>
168 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:userName</from>
169 <to variable="PIX201301OutgoingIn" property="pixv3:userName"/>
170 </copy>
171 <copy>
172 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
173 <to variable="PIX201301OutgoingIn" property="pixv3:userOrganization"/>
174 </copy>
175 <copy>
176 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
177 <to variable="PIX201301OutgoingIn" property="pixv3:userRoleCode"/>
178 </copy>
179 <copy>
180 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
181 <to variable="PIX201301OutgoingIn" property="pixv3:userRoleCodeDisplayName"/>
182 </copy>
183 <copy>
184 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
185 <to variable="PIX201301OutgoingIn" property="pixv3:userRoleCodeSystem"/>
186 </copy>
187 <copy>
188 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
189 <to variable="PIX201301OutgoingIn" property="pixv3:userRoleCodeSystemName"/>
190 </copy>
191 <copy>
192 <from>'subjectDiscovery'</from>
193 <to variable="PIX201301OutgoingIn" property="pixv3:action"/>
194 </copy>
195 <copy>
196 <from>string($GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/soapaddr04:Address)</from>
197 <to variable="PIX201301OutgoingIn" property="pixv3:resource"/>
198 </copy>
199 <copy>
200 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion/nccommon:claimFormRaw</from>
201 <to variable="PIX201301OutgoingIn" property="pixv3:content"/>
202 </copy>
203 </assign>
204 <assign name="AssignSendToGateway">
205 <copy>
206 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV</from>
207 <to variable="PIX201301OutgoingIn" part="Body"/>
208 </copy>
209 <copy>
210 <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
211 <to partnerLink="NhinSubjectDiscoveryPL"/>
212 </copy>
213 </assign>
214 <invoke name="InvokeSendToGateway" partnerLink="NhinSubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" xmlns:tns="urn:ihe:iti:pixv3:2007" portType="tns:PIXConsumer_PortType" inputVariable="PIX201301OutgoingIn" outputVariable="PIX201301OutgoingOut"/>
215 <assign name="Assign201301Resp">
216 <copy>
217 <from variable="PIX201301OutgoingOut" part="Body"/>
218 <to variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVProxyResponse"/>
219 </copy>
220 </assign>
221 <assign name="AssignAudit201301Ack">
222 <copy>
223 <from variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVProxyResponse"/>
224 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:MCCI_IN000002UV01</to>
225 </copy>
226 <copy>
227 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion</from>
228 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion</to>
229 </copy>
230 <copy>
231 <from>'Inbound'</from>
232 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:direction</to>
233 </copy>
234 <copy>
235 <from>'Nhin'</from>
236 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:interface</to>
237 </copy>
238 <copy>
239 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension</from>
240 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion/nccommon:uniquePatientId</to>
241 </copy>
242 </assign>
243 <invoke name="InvokeAudit201301Ack" partnerLink="AuditRepositoryPL" operation="LogNhinSubjectDiscoveryAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinSubjectDiscoveryAckIn" outputVariable="LogNhinSubjectDiscoveryAckOut"/>
244 <reply name="Reply201301" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201301Out"/>
245 </sequence>
246 </scope>
247 </onMessage>
248 <onMessage partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201302In">
249 <scope name="Handle201302Scope">
250 <variables>
251 <variable name="GetConnectionInfoEndpontFromNhinTargetIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
252 <variable name="LogNhinSubjectDiscoveryAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
253 <variable name="LogNhinSubjectDiscoveryAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinSubjectDiscoveryAckRequestMessage"/>
254 <variable name="LogSubjectRevisedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
255 <variable name="LogSubjectRevisedIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectRevisedRequestMessage"/>
256 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
257 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
258 <variable name="PIX201302OutgoingOut" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:MCCI_IN000002UV01_Message"/>
259 <variable name="PIX201302OutgoingIn" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:PRPA_IN201302UV_Message"/>
260 <variable name="GetConnectionInfoEndpointOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
261 <variable name="PIX201302Out" messageType="tns:PIXConsumer_PRPA_IN201302UVProxyResponseMessage"/>
262 </variables>
263 <faultHandlers>
264 <catch faultName="sxeh:systemFault" faultVariable="systemFault201302Var" faultMessageType="sxeh:faultMessage">
265 <sequence name="SystemFault201302Seq">
266 <assign name="AssignFaultAckDte">
267 <sxt:trace>
268 <sxt:log level="info" location="onStart">
269 <bpel:from>'NhinProxySubjectDiscovery.bpel - A system fault was encounterd processing a 201302 message. Fault detials follow...'</bpel:from>
270 </sxt:log>
271 <sxt:log level="warning" location="onStart">
272 <bpel:from variable="systemFault201302Var"/>
273 </sxt:log>
274 </sxt:trace>
275 <copy>
276 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:PRPA_IN201302UV/hl7:id</from>
277 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
278 </copy>
279 <copy>
280 <from>string($PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:PRPA_IN201302UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
281 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
282 </copy>
283 <copy>
284 <from>string($PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:PRPA_IN201302UV/hl7:sender/hl7:device/hl7:id/@root)</from>
285 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
286 </copy>
287 <copy>
288 <from>'Error - Internal Gateway Error: Message Not Sent'</from>
289 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
290 </copy>
291 </assign>
292 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
293 <assign name="Assign201302FaultInfo">
294 <copy>
295 <from variable="CreateAckOut" part="CreateAckResponse"/>
296 <to variable="PIX201302Out" part="PIXConsumer_PRPA_IN201302UVProxyResponse"/>
297 </copy>
298 </assign>
299 <reply name="ReplyNhinSubDisc201302Fault" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201302Out"/>
300 <exit name="ExitAfter201302FaultReturn"/>
301 </sequence>
302 </catch>
303 </faultHandlers>
304 <sequence name="Send201302Seq">
305 <assign name="AssignAudit201302">
306 <copy>
307 <from>'Outbound'</from>
308 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:direction</to>
309 </copy>
310 <copy>
311 <from>'Nhin'</from>
312 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:interface</to>
313 </copy>
314 <copy>
315 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:PRPA_IN201302UV</from>
316 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:message/hl7:PRPA_IN201302UV</to>
317 </copy>
318 <copy>
319 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion</from>
320 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:message/hl7:assertion</to>
321 </copy>
322 </assign>
323 <invoke name="InvokeAudit201302" partnerLink="AuditRepositoryPL" operation="LogSubjectRevised" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectRevisedIn" outputVariable="LogSubjectRevisedOut"/>
324 <assign name="AssignGetNhinConnectionInfo">
325 <copy>
326 <from>'subjectdiscovery'</from>
327 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
328 </copy>
329 <copy>
330 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:nhinTargetSystem</from>
331 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
332 </copy>
333 </assign>
334 <invoke name="InvokeGetNhinConnectionInfo" partnerLink="ConnectionMgrPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoEndpontFromNhinTargetIn" outputVariable="GetConnectionInfoEndpointOut"/>
335 <assign name="AssignAssertion">
336 <copy>
337 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:claimFormRaw</from>
338 <to variable="PIX201302OutgoingIn" property="pixv3:content"/>
339 </copy>
340 <copy>
341 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:claimFormRef</from>
342 <to variable="PIX201302OutgoingIn" property="pixv3:contentReference"/>
343 </copy>
344 <copy>
345 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:expirationDate</from>
346 <to variable="PIX201302OutgoingIn" property="pixv3:expirationDate"/>
347 </copy>
348 <copy>
349 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
350 <to variable="PIX201302OutgoingIn" property="pixv3:purposeForUseCodeSystem"/>
351 </copy>
352 <copy>
353 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
354 <to variable="PIX201302OutgoingIn" property="pixv3:purposeForUseCodeSystemName"/>
355 </copy>
356 <copy>
357 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
358 <to variable="PIX201302OutgoingIn" property="pixv3:purposeForUseDisplayName"/>
359 </copy>
360 <copy>
361 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
362 <to variable="PIX201302OutgoingIn" property="pixv3:purposeForUseRoleCode"/>
363 </copy>
364 <copy>
365 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:dateOfSignature</from>
366 <to variable="PIX201302OutgoingIn" property="pixv3:signDate"/>
367 </copy>
368 <copy>
369 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
370 <to variable="PIX201302OutgoingIn" property="pixv3:userFirstName"/>
371 </copy>
372 <copy>
373 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
374 <to variable="PIX201302OutgoingIn" property="pixv3:userLastName"/>
375 </copy>
376 <copy>
377 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
378 <to variable="PIX201302OutgoingIn" property="pixv3:userMiddleName"/>
379 </copy>
380 <copy>
381 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:userName</from>
382 <to variable="PIX201302OutgoingIn" property="pixv3:userName"/>
383 </copy>
384 <copy>
385 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
386 <to variable="PIX201302OutgoingIn" property="pixv3:userOrganization"/>
387 </copy>
388 <copy>
389 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
390 <to variable="PIX201302OutgoingIn" property="pixv3:userRoleCode"/>
391 </copy>
392 <copy>
393 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
394 <to variable="PIX201302OutgoingIn" property="pixv3:userRoleCodeDisplayName"/>
395 </copy>
396 <copy>
397 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
398 <to variable="PIX201302OutgoingIn" property="pixv3:userRoleCodeSystem"/>
399 </copy>
400 <copy>
401 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
402 <to variable="PIX201302OutgoingIn" property="pixv3:userRoleCodeSystemName"/>
403 </copy>
404 <copy>
405 <from>'subjectDiscovery'</from>
406 <to variable="PIX201302OutgoingIn" property="pixv3:action"/>
407 </copy>
408 <copy>
409 <from>string($GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/soapaddr04:Address)</from>
410 <to variable="PIX201302OutgoingIn" property="pixv3:resource"/>
411 </copy>
412 </assign>
413 <assign name="AssignSendToGateway">
414 <copy>
415 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:PRPA_IN201302UV</from>
416 <to variable="PIX201302OutgoingIn" part="Body"/>
417 </copy>
418 <copy>
419 <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
420 <to partnerLink="NhinSubjectDiscoveryPL"/>
421 </copy>
422 </assign>
423 <invoke name="InvokeSendToGateway" partnerLink="NhinSubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" xmlns:tns="urn:ihe:iti:pixv3:2007" portType="tns:PIXConsumer_PortType" inputVariable="PIX201302OutgoingIn" outputVariable="PIX201302OutgoingOut"/>
424 <assign name="Assign201302Resp">
425 <copy>
426 <from variable="PIX201302OutgoingOut" part="Body"/>
427 <to variable="PIX201302Out" part="PIXConsumer_PRPA_IN201302UVProxyResponse"/>
428 </copy>
429 </assign>
430 <assign name="AssignAudit201302Ack">
431 <copy>
432 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:assertion</from>
433 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion</to>
434 </copy>
435 <copy>
436 <from variable="PIX201302Out" part="PIXConsumer_PRPA_IN201302UVProxyResponse"/>
437 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:MCCI_IN000002UV01</to>
438 </copy>
439 <copy>
440 <from>'Inbound'</from>
441 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:direction</to>
442 </copy>
443 <copy>
444 <from>'Nhin'</from>
445 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:interface</to>
446 </copy>
447 <copy>
448 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVProxyRequest/hl7:PRPA_IN201302UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension</from>
449 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion/nccommon:uniquePatientId</to>
450 </copy>
451 </assign>
452 <invoke name="InvokeAudit201302Ack" partnerLink="AuditRepositoryPL" operation="LogNhinSubjectDiscoveryAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinSubjectDiscoveryAckIn" outputVariable="LogNhinSubjectDiscoveryAckOut"/>
453 <reply name="Reply201302" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201302Out"/>
454 </sequence>
455 </scope>
456 </onMessage>
457 <onMessage partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201303In">
458 <scope name="Handle201303Scope">
459 <variables>
460 <variable name="GetConnectionInfoEndpontFromNhinTargetIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
461 <variable name="LogNhinSubjectDiscoveryAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
462 <variable name="LogNhinSubjectDiscoveryAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinSubjectDiscoveryAckRequestMessage"/>
463 <variable name="LogSubjectRevokedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
464 <variable name="LogSubjectRevokedIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectRevokedRequestMessage"/>
465 <variable name="PIX201303OutgoingOut" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:MCCI_IN000002UV01_Message"/>
466 <variable name="PIX201303OutgoingIn" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:PRPA_IN201303UV_Message"/>
467 <variable name="GetConnectionInfoEndpointOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
468 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
469 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
470 <variable name="PIX201303Out" messageType="tns:PIXConsumer_PRPA_IN201303UVProxyResponseMessage"/>
471 </variables>
472 <faultHandlers>
473 <catch faultName="sxeh:systemFault" faultVariable="systemFault201303Var" faultMessageType="sxeh:faultMessage">
474 <sequence name="SystemFault201303Seq">
475 <assign name="AssignFaultAckDte">
476 <sxt:trace>
477 <sxt:log level="info" location="onStart">
478 <bpel:from>'NhinProxySubjectDiscovery.bpel - A system fault was encounterd processing a 201303 message. Fault detials follow...'</bpel:from>
479 </sxt:log>
480 <sxt:log level="warning" location="onStart">
481 <bpel:from variable="systemFault201303Var"/>
482 </sxt:log>
483 </sxt:trace>
484 <copy>
485 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV/hl7:id</from>
486 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
487 </copy>
488 <copy>
489 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV/hl7:sender/hl7:device/hl7:id/@root)</from>
490 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
491 </copy>
492 <copy>
493 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV/hl7:sender/hl7:device/hl7:id/@root)</from>
494 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
495 </copy>
496 <copy>
497 <from>'Error - Internal Gateway Error: Message Not Sent'</from>
498 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
499 </copy>
500 </assign>
501 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
502 <assign name="Assign201303FaultInfo">
503 <copy>
504 <from variable="CreateAckOut" part="CreateAckResponse"/>
505 <to variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVProxyResponse"/>
506 </copy>
507 </assign>
508 <reply name="ReplyNhinSubDisc201303Fault" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201303Out"/>
509 <exit name="ExitAfter201303FaultReturn"/>
510 </sequence>
511 </catch>
512 </faultHandlers>
513 <sequence name="Send201303Seq">
514 <assign name="AssignAudit201303">
515 <copy>
516 <from>'Outbound'</from>
517 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:direction</to>
518 </copy>
519 <copy>
520 <from>'Nhin'</from>
521 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:interface</to>
522 </copy>
523 <copy>
524 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV</from>
525 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:message/hl7:PRPA_IN201303UV</to>
526 </copy>
527 <copy>
528 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion</from>
529 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:message/hl7:assertion</to>
530 </copy>
531 </assign>
532 <invoke name="InvokeAudit201303" partnerLink="AuditRepositoryPL" operation="LogSubjectRevoked" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectRevokedIn" outputVariable="LogSubjectRevokedOut"/>
533 <assign name="AssignGetNhinConnectionInfo">
534 <copy>
535 <from>'subjectdiscovery'</from>
536 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
537 </copy>
538 <copy>
539 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:nhinTargetSystem</from>
540 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
541 </copy>
542 </assign>
543 <invoke name="InvokeGetNhinConnectionInfo" partnerLink="ConnectionMgrPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoEndpontFromNhinTargetIn" outputVariable="GetConnectionInfoEndpointOut"/>
544 <assign name="AssignAssertion">
545 <copy>
546 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:claimFormRaw</from>
547 <to variable="PIX201303OutgoingIn" property="pixv3:content"/>
548 </copy>
549 <copy>
550 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:claimFormRef</from>
551 <to variable="PIX201303OutgoingIn" property="pixv3:contentReference"/>
552 </copy>
553 <copy>
554 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:expirationDate</from>
555 <to variable="PIX201303OutgoingIn" property="pixv3:expirationDate"/>
556 </copy>
557 <copy>
558 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
559 <to variable="PIX201303OutgoingIn" property="pixv3:purposeForUseCodeSystem"/>
560 </copy>
561 <copy>
562 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
563 <to variable="PIX201303OutgoingIn" property="pixv3:purposeForUseCodeSystemName"/>
564 </copy>
565 <copy>
566 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
567 <to variable="PIX201303OutgoingIn" property="pixv3:purposeForUseDisplayName"/>
568 </copy>
569 <copy>
570 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
571 <to variable="PIX201303OutgoingIn" property="pixv3:purposeForUseRoleCode"/>
572 </copy>
573 <copy>
574 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:dateOfSignature</from>
575 <to variable="PIX201303OutgoingIn" property="pixv3:signDate"/>
576 </copy>
577 <copy>
578 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
579 <to variable="PIX201303OutgoingIn" property="pixv3:userFirstName"/>
580 </copy>
581 <copy>
582 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
583 <to variable="PIX201303OutgoingIn" property="pixv3:userLastName"/>
584 </copy>
585 <copy>
586 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
587 <to variable="PIX201303OutgoingIn" property="pixv3:userMiddleName"/>
588 </copy>
589 <copy>
590 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:userName</from>
591 <to variable="PIX201303OutgoingIn" property="pixv3:userName"/>
592 </copy>
593 <copy>
594 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
595 <to variable="PIX201303OutgoingIn" property="pixv3:userOrganization"/>
596 </copy>
597 <copy>
598 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
599 <to variable="PIX201303OutgoingIn" property="pixv3:userRoleCode"/>
600 </copy>
601 <copy>
602 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
603 <to variable="PIX201303OutgoingIn" property="pixv3:userRoleCodeDisplayName"/>
604 </copy>
605 <copy>
606 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
607 <to variable="PIX201303OutgoingIn" property="pixv3:userRoleCodeSystem"/>
608 </copy>
609 <copy>
610 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
611 <to variable="PIX201303OutgoingIn" property="pixv3:userRoleCodeSystemName"/>
612 </copy>
613 <copy>
614 <from>'subjectDiscovery'</from>
615 <to variable="PIX201303OutgoingIn" property="pixv3:action"/>
616 </copy>
617 <copy>
618 <from>string($GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/soapaddr04:Address)</from>
619 <to variable="PIX201303OutgoingIn" property="pixv3:resource"/>
620 </copy>
621 </assign>
622 <assign name="AssignSendToGateway">
623 <copy>
624 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV</from>
625 <to variable="PIX201303OutgoingIn" part="Body"/>
626 </copy>
627 <copy>
628 <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
629 <to partnerLink="NhinSubjectDiscoveryPL"/>
630 </copy>
631 </assign>
632 <invoke name="InvokeSendToGateway" partnerLink="NhinSubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" xmlns:tns="urn:ihe:iti:pixv3:2007" portType="tns:PIXConsumer_PortType" inputVariable="PIX201303OutgoingIn" outputVariable="PIX201303OutgoingOut"/>
633 <assign name="Assign201303Resp">
634 <copy>
635 <from variable="PIX201303OutgoingOut" part="Body"/>
636 <to variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVProxyResponse"/>
637 </copy>
638 </assign>
639 <assign name="AssignAudit201303Ack">
640 <copy>
641 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion</from>
642 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion</to>
643 </copy>
644 <copy>
645 <from variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVProxyResponse"/>
646 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:MCCI_IN000002UV01</to>
647 </copy>
648 <copy>
649 <from>'Inbound'</from>
650 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:direction</to>
651 </copy>
652 <copy>
653 <from>'Nhin'</from>
654 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:interface</to>
655 </copy>
656 <copy>
657 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension</from>
658 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion/nccommon:uniquePatientId</to>
659 </copy>
660 </assign>
661 <invoke name="InvokeAudit201303Ack" partnerLink="AuditRepositoryPL" operation="LogNhinSubjectDiscoveryAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinSubjectDiscoveryAckIn" outputVariable="LogNhinSubjectDiscoveryAckOut"/>
662 <reply name="Reply201303" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201303Out"/>
663 </sequence>
664 </scope>
665 </onMessage>
666 <onMessage partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201304In">
667 <scope name="Handle201304Scope">
668 <variables>
669 <variable name="GetConnectionInfoEndpontFromNhinTargetIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
670 <variable name="PIX201304OutgoingOut" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:MCCI_IN000002UV01_Message"/>
671 <variable name="PIX201304OutgoingIn" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:PRPA_IN201304UV_Message"/>
672 <variable name="GetConnectionInfoEndpointOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
673 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
674 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
675 <variable name="PIX201304Out" messageType="tns:PIXConsumer_PRPA_IN201304UVProxyResponseMessage"/>
676 </variables>
677 <faultHandlers>
678 <catch faultName="sxeh:systemFault" faultVariable="systemFault201304Var" faultMessageType="sxeh:faultMessage">
679 <sequence name="SystemFault201304Seq">
680 <assign name="AssignFaultAckDte">
681 <sxt:trace>
682 <sxt:log level="info" location="onStart">
683 <bpel:from>'NhinProxySubjectDiscovery.bpel - A system fault was encounterd processing a 201304 message. Fault detials follow...'</bpel:from>
684 </sxt:log>
685 <sxt:log level="warning" location="onStart">
686 <bpel:from variable="systemFault201304Var"/>
687 </sxt:log>
688 </sxt:trace>
689 <copy>
690 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:PRPA_IN201304UV/hl7:id</from>
691 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
692 </copy>
693 <copy>
694 <from>string($PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:PRPA_IN201304UV/hl7:sender/hl7:device/hl7:id/@root)</from>
695 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
696 </copy>
697 <copy>
698 <from>string($PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:PRPA_IN201304UV/hl7:sender/hl7:device/hl7:id/@root)</from>
699 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
700 </copy>
701 <copy>
702 <from>'Error - Internal Gateway Error: Message Not Sent'</from>
703 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
704 </copy>
705 </assign>
706 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
707 <assign name="Assign201304FaultInfo">
708 <copy>
709 <from variable="CreateAckOut" part="CreateAckResponse"/>
710 <to variable="PIX201304Out" part="PIXConsumer_PRPA_IN201304UVProxyResponse"/>
711 </copy>
712 </assign>
713 <reply name="ReplyNhinSubDisc201304Fault" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201304Out"/>
714 <exit name="ExitAfter201304FaultReturn"/>
715 </sequence>
716 </catch>
717 </faultHandlers>
718 <sequence name="Send201304Seq">
719 <assign name="AssignGetNhinConnectionInfo">
720 <copy>
721 <from>'subjectdiscovery'</from>
722 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
723 </copy>
724 <copy>
725 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:nhinTargetSystem</from>
726 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
727 </copy>
728 </assign>
729 <invoke name="InvokeGetNhinConnectionInfo" partnerLink="ConnectionMgrPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoEndpontFromNhinTargetIn" outputVariable="GetConnectionInfoEndpointOut"/>
730 <assign name="AssignAssertion">
731 <copy>
732 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:claimFormRaw</from>
733 <to variable="PIX201304OutgoingIn" property="pixv3:content"/>
734 </copy>
735 <copy>
736 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:claimFormRef</from>
737 <to variable="PIX201304OutgoingIn" property="pixv3:contentReference"/>
738 </copy>
739 <copy>
740 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:expirationDate</from>
741 <to variable="PIX201304OutgoingIn" property="pixv3:expirationDate"/>
742 </copy>
743 <copy>
744 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
745 <to variable="PIX201304OutgoingIn" property="pixv3:purposeForUseCodeSystem"/>
746 </copy>
747 <copy>
748 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
749 <to variable="PIX201304OutgoingIn" property="pixv3:purposeForUseCodeSystemName"/>
750 </copy>
751 <copy>
752 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
753 <to variable="PIX201304OutgoingIn" property="pixv3:purposeForUseDisplayName"/>
754 </copy>
755 <copy>
756 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
757 <to variable="PIX201304OutgoingIn" property="pixv3:purposeForUseRoleCode"/>
758 </copy>
759 <copy>
760 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:dateOfSignature</from>
761 <to variable="PIX201304OutgoingIn" property="pixv3:signDate"/>
762 </copy>
763 <copy>
764 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
765 <to variable="PIX201304OutgoingIn" property="pixv3:userFirstName"/>
766 </copy>
767 <copy>
768 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
769 <to variable="PIX201304OutgoingIn" property="pixv3:userLastName"/>
770 </copy>
771 <copy>
772 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
773 <to variable="PIX201304OutgoingIn" property="pixv3:userMiddleName"/>
774 </copy>
775 <copy>
776 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:userName</from>
777 <to variable="PIX201304OutgoingIn" property="pixv3:userName"/>
778 </copy>
779 <copy>
780 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
781 <to variable="PIX201304OutgoingIn" property="pixv3:userOrganization"/>
782 </copy>
783 <copy>
784 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
785 <to variable="PIX201304OutgoingIn" property="pixv3:userRoleCode"/>
786 </copy>
787 <copy>
788 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
789 <to variable="PIX201304OutgoingIn" property="pixv3:userRoleCodeDisplayName"/>
790 </copy>
791 <copy>
792 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
793 <to variable="PIX201304OutgoingIn" property="pixv3:userRoleCodeSystem"/>
794 </copy>
795 <copy>
796 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
797 <to variable="PIX201304OutgoingIn" property="pixv3:userRoleCodeSystemName"/>
798 </copy>
799 <copy>
800 <from>'subjectDiscovery'</from>
801 <to variable="PIX201304OutgoingIn" property="pixv3:action"/>
802 </copy>
803 <copy>
804 <from>string($GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/soapaddr04:Address)</from>
805 <to variable="PIX201304OutgoingIn" property="pixv3:resource"/>
806 </copy>
807 </assign>
808 <assign name="AssignSendToGateway">
809 <copy>
810 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVProxyRequest/hl7:PRPA_IN201304UV</from>
811 <to variable="PIX201304OutgoingIn" part="Body"/>
812 </copy>
813 <copy>
814 <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
815 <to partnerLink="NhinSubjectDiscoveryPL"/>
816 </copy>
817 </assign>
818 <invoke name="InvokeSendToGateway" partnerLink="NhinSubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" xmlns:tns="urn:ihe:iti:pixv3:2007" portType="tns:PIXConsumer_PortType" inputVariable="PIX201304OutgoingIn" outputVariable="PIX201304OutgoingOut"/>
819 <assign name="Assign201304Resp">
820 <copy>
821 <from variable="PIX201304OutgoingOut" part="Body"/>
822 <to variable="PIX201304Out" part="PIXConsumer_PRPA_IN201304UVProxyResponse"/>
823 </copy>
824 </assign>
825 <reply name="Reply201304" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201304Out"/>
826 </sequence>
827 </scope>
828 </onMessage>
829 <onMessage partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201309In">
830 <scope name="Handle201309Scope">
831 <variables>
832 <variable name="CreateFault201310Out" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateFault201310ResponseMessage"/>
833 <variable name="CreateFault201310In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateFault201310RequestMessage"/>
834 <variable name="GetConnectionInfoEndpontFromNhinTargetIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
835 <variable name="LogSubjectReidentOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
836 <variable name="LogSubjectReidentIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectReidentRequestMessage"/>
837 <variable name="PIX201309OutgoingOut" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:PRPA_IN201310UV_Message"/>
838 <variable name="PIX201309OutgoingIn" xmlns:tns="urn:ihe:iti:pixv3:2007" messageType="tns:PRPA_IN201309UV_Message"/>
839 <variable name="GetConnectionInfoEndpointOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
840 <variable name="PIX201309Out" messageType="tns:PIXConsumer_PRPA_IN201309UVProxyResponseMessage"/>
841 </variables>
842 <faultHandlers>
843 <catchAll>
844 <sequence name="SD201309FaultSeq">
845 <assign name="Assign201309FaultInfo">
846 <copy>
847 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:PRPA_IN201309UV/hl7:receiver/hl7:device/hl7:id</from>
848 <to>$CreateFault201310In.CreateFault201310Request/hl7:senderOID</to>
849 </copy>
850 <copy>
851 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:PRPA_IN201309UV/hl7:sender/hl7:device/hl7:id</from>
852 <to>$CreateFault201310In.CreateFault201310Request/hl7:receiverOID</to>
853 </copy>
854 </assign>
855 <invoke name="InvokeCreateFault201310" partnerLink="SubDiscDataTransformsPL" operation="CreateFault201310" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateFault201310In" outputVariable="CreateFault201310Out"/>
856 <assign name="Assign1">
857 <copy>
858 <from variable="CreateFault201310Out" part="CreateFault201310Response"/>
859 <to variable="PIX201309Out" part="PIXConsumer_PRPA_IN201309UVProxyResponse"/>
860 </copy>
861 </assign>
862 <reply name="ReplyNhinSubDisc201309Fault" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201309Out"/>
863 <exit name="ExitAfter201309FaultReturn"/>
864 </sequence>
865 </catchAll>
866 </faultHandlers>
867 <sequence name="Send201309Seq">
868 <!-- TODO: Add AuditLog when DTE is implemented -->
869 <assign name="AssignGetNhinConnectionInfo">
870 <copy>
871 <from>'subjectdiscovery'</from>
872 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
873 </copy>
874 <copy>
875 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:nhinTargetSystem</from>
876 <to>$GetConnectionInfoEndpontFromNhinTargetIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
877 </copy>
878 </assign>
879 <invoke name="InvokeGetNhinConnectionInfo" partnerLink="ConnectionMgrPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoEndpontFromNhinTargetIn" outputVariable="GetConnectionInfoEndpointOut"/>
880 <assign name="AssignAssertion">
881 <copy>
882 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:claimFormRaw</from>
883 <to variable="PIX201309OutgoingIn" property="pixv3:content"/>
884 </copy>
885 <copy>
886 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:claimFormRef</from>
887 <to variable="PIX201309OutgoingIn" property="pixv3:contentReference"/>
888 </copy>
889 <copy>
890 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:expirationDate</from>
891 <to variable="PIX201309OutgoingIn" property="pixv3:expirationDate"/>
892 </copy>
893 <copy>
894 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
895 <to variable="PIX201309OutgoingIn" property="pixv3:purposeForUseCodeSystem"/>
896 </copy>
897 <copy>
898 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
899 <to variable="PIX201309OutgoingIn" property="pixv3:purposeForUseCodeSystemName"/>
900 </copy>
901 <copy>
902 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
903 <to variable="PIX201309OutgoingIn" property="pixv3:purposeForUseDisplayName"/>
904 </copy>
905 <copy>
906 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
907 <to variable="PIX201309OutgoingIn" property="pixv3:purposeForUseRoleCode"/>
908 </copy>
909 <copy>
910 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:dateOfSignature</from>
911 <to variable="PIX201309OutgoingIn" property="pixv3:signDate"/>
912 </copy>
913 <copy>
914 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
915 <to variable="PIX201309OutgoingIn" property="pixv3:userFirstName"/>
916 </copy>
917 <copy>
918 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
919 <to variable="PIX201309OutgoingIn" property="pixv3:userLastName"/>
920 </copy>
921 <copy>
922 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
923 <to variable="PIX201309OutgoingIn" property="pixv3:userMiddleName"/>
924 </copy>
925 <copy>
926 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:userName</from>
927 <to variable="PIX201309OutgoingIn" property="pixv3:userName"/>
928 </copy>
929 <copy>
930 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
931 <to variable="PIX201309OutgoingIn" property="pixv3:userOrganization"/>
932 </copy>
933 <copy>
934 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
935 <to variable="PIX201309OutgoingIn" property="pixv3:userRoleCode"/>
936 </copy>
937 <copy>
938 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
939 <to variable="PIX201309OutgoingIn" property="pixv3:userRoleCodeDisplayName"/>
940 </copy>
941 <copy>
942 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
943 <to variable="PIX201309OutgoingIn" property="pixv3:userRoleCodeSystem"/>
944 </copy>
945 <copy>
946 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
947 <to variable="PIX201309OutgoingIn" property="pixv3:userRoleCodeSystemName"/>
948 </copy>
949 <copy>
950 <from>'subjectDiscovery'</from>
951 <to variable="PIX201309OutgoingIn" property="pixv3:action"/>
952 </copy>
953 <copy>
954 <from>string($GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/soapaddr04:Address)</from>
955 <to variable="PIX201309OutgoingIn" property="pixv3:resource"/>
956 </copy>
957 </assign>
958 <assign name="AssignLog201309">
959 <copy>
960 <from>'Outbound'</from>
961 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:direction</to>
962 </copy>
963 <copy>
964 <from>'Nhin'</from>
965 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:interface</to>
966 </copy>
967 <copy>
968 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:PRPA_IN201309UV</from>
969 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:message/hl7:PRPA_IN201309UV</to>
970 </copy>
971 <copy>
972 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion</from>
973 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:message/hl7:assertion</to>
974 </copy>
975 </assign>
976 <invoke name="InvokeLog201309Send" partnerLink="AuditRepositoryPL" operation="LogSubjectReident" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectReidentIn" outputVariable="LogSubjectReidentOut"/>
977 <assign name="AssignSendToGateway">
978 <copy>
979 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:PRPA_IN201309UV</from>
980 <to variable="PIX201309OutgoingIn" part="Body"/>
981 </copy>
982 <copy>
983 <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoEndpointOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
984 <to partnerLink="NhinSubjectDiscoveryPL"/>
985 </copy>
986 </assign>
987 <invoke name="InvokeSendToGateway" partnerLink="NhinSubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" xmlns:tns="urn:ihe:iti:pixv3:2007" portType="tns:PIXConsumer_PortType" inputVariable="PIX201309OutgoingIn" outputVariable="PIX201309OutgoingOut"/>
988 <assign name="Assign201309Resp">
989 <copy>
990 <from variable="PIX201309OutgoingOut" part="Body"/>
991 <to variable="PIX201309Out" part="PIXConsumer_PRPA_IN201309UVProxyResponse"/>
992 </copy>
993 </assign>
994 <reply name="Reply201309" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" portType="tns:NhincProxySubjectDiscoveryPortType" variable="PIX201309Out"/>
995 </sequence>
996 </scope>
997 </onMessage>
998 </pick>
999 </sequence>
1000</process>
Note: See TracBrowser for help on using the repository browser.