source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/EntityBPEL/src/EntitySubjectDiscovery.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: 82.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<process
3 name="EntitySubjectDiscovery"
4 targetNamespace="urn:gov:hhs:fha:nhinc:gateway:entitybpel:entitysubjectdiscovery"
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:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
10 xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
11 xmlns:hl7="urn:hl7-org:v3"
12 xmlns:tns="urn:gov:hhs:fha:nhinc:gateway:entitybpel:entitysubjectdiscovery"
13 xmlns:conninfo="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo"
14 xmlns:ncpc="urn:gov:hhs:fha:nhinc:common:patientcorrelationfacade"
15 xmlns:nccommon="urn:gov:hhs:fha:nhinc:common:nhinccommon"
16 xmlns:propacc="urn:gov:hhs:fha:nhinc:common:propertyaccess"
17 xmlns:audit="urn:gov:hhs:fha:nhinc:common:auditlog"
18 xmlns:ncadapt="urn:gov:hhs:fha:nhinc:common:nhinccommonadapter"
19 xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:os"
20 xmlns:ncomevent="urn:gov:hhs:fha:nhinc:common:eventcommon"
21 xmlns:npolicydte="urn:gov:hhs:fha:nhinc:common:policyenginedte">
22 <import namespace="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" location="Interfaces/wsdl/EntitySubjectDiscovery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
23 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" location="Interfaces/wsdl/NhincComponentSubDiscTransforms.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
24 <import namespace="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" location="Interfaces/wsdl/NhincProxySubjectDiscovery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
25 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" location="Interfaces/wsdl/NhincComponentConnectionManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
26 <import namespace="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" location="Interfaces/wsdl/NhincComponentPatientCorrelationFacade.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
27 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" location="Interfaces/wsdl/NhincComponentPropAccessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
28 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
29 <import namespace="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" location="Interfaces/wsdl/NhincComponentInternalPolicyEngineFacade.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
30 <partnerLinks>
31 <partnerLink name="SubDiscDataTransformsPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" partnerLinkType="tns:NhincComponentSubDiscTransforms" partnerRole="NhincComponentSubDiscTransformsPortTypeRole"/>
32 <partnerLink name="PropAccessorPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" partnerLinkType="tns:NhincComponentPropAccessor" partnerRole="NhincComponentPropAccessorPortTypeRole"/>
33 <partnerLink name="ConnectionMgrPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" partnerLinkType="tns:NhincComponentConnectionManager" partnerRole="NhincComponentConnectionManagerPortTypeRole"/>
34 <partnerLink name="PatientCorrelationPL" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" partnerLinkType="tns:PatientCorrelationFacadePartnerLinkType" partnerRole="PatientCorrelationPortTypeRole"/>
35 <partnerLink name="NhincProxySubjectDiscoveryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" partnerLinkType="tns:NhincProxySubjectDiscovery" partnerRole="NhincProxySubjectDiscoveryPortTypeRole"/>
36 <partnerLink name="AuditRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
37 <partnerLink name="NhincInternalPolicyEnginePL" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" partnerLinkType="tns:NhincComponentInternalPolicyEngineFacade" partnerRole="NhincComponentInternalPolicyEngineFacadePortTypeRole"/>
38 <partnerLink name="EntitySubjectDiscoveryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" partnerLinkType="tns:EntitySubjectDiscovery" myRole="EntitySubjectDiscoveryPortTypeRole"/>
39 </partnerLinks>
40 <variables>
41 <variable name="PIX201309In" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201309UVRequestMessage"/>
42 <variable name="PIX201304In" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201304UVRequestMessage"/>
43 <variable name="PIX201303In" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201303UVRequestMessage"/>
44 <variable name="PIX201302In" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201302UVRequestMessage"/>
45 <variable name="PIX201301In" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201301UVRequestMessage"/>
46 </variables>
47 <sequence>
48 <pick name="ReceiveEnitySubDiscovery" createInstance="yes">
49 <onMessage partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201301In">
50 <scope name="Handle201301Scope">
51 <variables>
52 <variable name="LogNhinSubjectDiscoveryAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
53 <variable name="LogNhinSubjectDiscoveryAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinSubjectDiscoveryAckRequestMessage"/>
54 <variable name="LogSubjectAddedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
55 <variable name="LogSubjectAddedIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectAddedRequestMessage"/>
56 <variable name="GetLocalHCIDOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" messageType="tns:GetPropertyResponseMessage"/>
57 <variable name="GetLocalHCIDIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" messageType="tns:GetPropertyRequestMessage"/>
58 <variable name="RetrievePatientCorrelationsOut" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" messageType="tns:RetrievePatientCorrelationsResponseMessage"/>
59 <variable name="RetrievePatientCorrelationsIn" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" messageType="tns:RetrievePatientCorrelationsRequestMessage"/>
60 <variable name="GetAllCommunitiesOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetAllCommunitiesResponseMessage"/>
61 <variable name="GetAllCommunitiesIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetAllCommunitiesRequestMessage"/>
62 <variable name="ProxyPIX201301Out" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201301UVProxyResponseMessage"/>
63 <variable name="ProxyPIX201301In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201301UVProxyRequestMessage"/>
64 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
65 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
66 <variable name="PIX201301Out" messageType="tns:PIXConsumer_PRPA_IN201301UVResponseMessage"/>
67 </variables>
68 <faultHandlers>
69 <catch faultName="sxeh:systemFault" faultVariable="systemFault201301Var" faultMessageType="sxeh:faultMessage">
70 <sequence name="SystemFault201301Seq">
71 <assign name="AssignFaultAckDte">
72 <sxt:trace>
73 <sxt:log level="info" location="onStart">
74 <from>'EntitySubjectDiscovery.bpel - A system fault was encounterd processing a 201301 message. Fault detials follow...'</from>
75 </sxt:log>
76 <sxt:log level="warning" location="onStart">
77 <from variable="systemFault201301Var"/>
78 </sxt:log>
79 </sxt:trace>
80 <copy>
81 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:id</from>
82 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
83 </copy>
84 <copy>
85 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
86 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
87 </copy>
88 <copy>
89 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:sender/hl7:device/hl7:id/@root)</from>
90 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
91 </copy>
92 <copy>
93 <from>'Error - Internal Gateway Error'</from>
94 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
95 </copy>
96 </assign>
97 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
98 <assign name="Assign201301FaultInfo">
99 <copy>
100 <from variable="CreateAckOut" part="CreateAckResponse"/>
101 <to variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVResponse"/>
102 </copy>
103 </assign>
104 <reply name="ReplyNhinSubDisc201301Fault" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201301Out"/>
105 <exit name="ExitAfter201301FaultReturn"/>
106 </sequence>
107 </catch>
108 </faultHandlers>
109 <sequence name="Process201301Seq">
110 <sequence name="Log201301ReqSeq">
111 <assign name="AssigAudit201301Req">
112 <copy>
113 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV</from>
114 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:message/hl7:PRPA_IN201301UV</to>
115 </copy>
116 <copy>
117 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:assertion</from>
118 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:message/hl7:assertion</to>
119 </copy>
120 <copy>
121 <from>'Inbound'</from>
122 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:direction</to>
123 </copy>
124 <copy>
125 <from>'Entity'</from>
126 <to>$LogSubjectAddedIn.LogSubjectAddedRequest/audit:interface</to>
127 </copy>
128 </assign>
129 <invoke name="InvokeAuditLog201301" partnerLink="AuditRepositoryPL" operation="LogSubjectAdded" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectAddedIn" outputVariable="LogSubjectAddedOut">
130 <sxt:trace>
131 <sxt:log level="info" location="onComplete">
132 <from>'Supposed to have called log201301.'</from>
133 </sxt:log>
134 </sxt:trace>
135 </invoke>
136 </sequence>
137 <assign name="AssignCreateInitialAck">
138 <copy>
139 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
140 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
141 </copy>
142 <copy>
143 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:sender/hl7:device/hl7:id/@root)</from>
144 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
145 </copy>
146 <copy>
147 <from>'Success'</from>
148 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
149 </copy>
150 <copy>
151 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:id</from>
152 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
153 </copy>
154 </assign>
155 <invoke name="InvokeCreateInitialAck" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
156 <assign name="AssignInitResp">
157 <copy>
158 <from variable="CreateAckOut" part="CreateAckResponse"/>
159 <to variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVResponse"/>
160 </copy>
161 </assign>
162 <assign name="AssignGetLocalHomeCommunity">
163 <copy>
164 <from>'gateway'</from>
165 <to>$GetLocalHCIDIn.GetPropertyRequest/propacc:propertyFile</to>
166 </copy>
167 <copy>
168 <from>'localHomeCommunityId'</from>
169 <to>$GetLocalHCIDIn.GetPropertyRequest/propacc:propertyName</to>
170 </copy>
171 </assign>
172 <invoke name="InvokeGetLocalHomeCommunity" partnerLink="PropAccessorPL" operation="GetProperty" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" portType="tns:NhincComponentPropAccessorPortType" inputVariable="GetLocalHCIDIn" outputVariable="GetLocalHCIDOut"/>
173 <if name="IfTargeted">
174 <condition>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:NhinTargetCommunities</condition>
175 <sequence name="TargetedSEq">
176 <empty name="Empty1">
177 <sxt:trace>
178 <sxt:log level="info" location="onStart">
179 <from>'Attempting Targeted Subject Discovery'</from>
180 </sxt:log>
181 </sxt:trace>
182 </empty>
183 <forEach name="ForEachTarget" parallel="no" counterName="TargetCtr">
184 <startCounterValue>1</startCounterValue>
185 <finalCounterValue>count($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:NhinTargetCommunities/nccommon:nhinTargetCommunity)</finalCounterValue>
186 <scope name="CopyTargets">
187 <assign name="AssignCopyTargets">
188 <copy>
189 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:NhinTargetCommunities/nccommon:nhinTargetCommunity[$TargetCtr]/nccommon:homeCommunity</from>
190 <to>$GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity[$TargetCtr]</to>
191 </copy>
192 </assign>
193 </scope>
194 </forEach>
195 </sequence>
196 <else>
197 <sequence name="BroadcastSeq">
198 <assign name="AssignGetAllCommunities">
199 <copy>
200 <from>'empty'</from>
201 <to>$GetAllCommunitiesIn.GetAllCommunitiesRequest/conninfo:emptyParam</to>
202 </copy>
203 </assign>
204 <invoke name="InvokeGetAllCommunities" partnerLink="ConnectionMgrPL" operation="GetAllCommunities" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetAllCommunitiesIn" outputVariable="GetAllCommunitiesOut"/>
205 </sequence>
206 </else>
207 </if>
208 <forEach name="ForEachCommunity" parallel="no" counterName="CommunityCtr">
209 <startCounterValue>1</startCounterValue>
210 <finalCounterValue>count($GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity)</finalCounterValue>
211 <scope name="EachCommunityScope">
212 <variables>
213 <variable name="GetAAByHCIDOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetAssigningAuthoritiesByHomeCommunityResponseMessage"/>
214 <variable name="GetAAByHCIDIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetAssigningAuthoritiesByHomeCommunityRequestMessage"/>
215 <variable name="patientHasCorrelationsForRemoteCommunity" type="xsd:boolean"/>
216 </variables>
217 <sequence name="EachCommunitySeq">
218 <if name="IfNotLocalHcid">
219 <condition>$GetLocalHCIDOut.GetPropertyResponse/propacc:propertyValue != $GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity[$CommunityCtr]/nccommon:homeCommunityId</condition>
220 <sequence name="NotLocalHcidSeq">
221 <assign name="resetHasMappingsFlag">
222 <copy>
223 <from>false()</from>
224 <to variable="patientHasCorrelationsForRemoteCommunity"/>
225 </copy>
226 </assign>
227 <assign name="AssignRetreiveAAs">
228 <copy>
229 <from>$GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity[$CommunityCtr]/nccommon:homeCommunityId</from>
230 <to>$GetAAByHCIDIn.GetAssigningAuthoritiesByHomeCommunityRequest/conninfo:HomeCommunity/nccommon:homeCommunityId</to>
231 </copy>
232 </assign>
233 <invoke name="InvokeRetreiveAAs" partnerLink="ConnectionMgrPL" operation="GetAssigningAuthoritiesByHomeCommunity" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetAAByHCIDIn" outputVariable="GetAAByHCIDOut"/>
234 <forEach name="ForEachAA" parallel="no" counterName="AACtr">
235 <startCounterValue>1</startCounterValue>
236 <finalCounterValue>count($GetAAByHCIDOut.GetAssigningAuthoritiesByHomeCommunityResponse/conninfo:assigningAuthoritiesId/nccommon:assigningAuthority)</finalCounterValue>
237 <scope name="EachAAScope">
238 <sequence name="EachAASeq">
239 <assign name="AssignRetrieveCorrelations">
240 <copy>
241 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension)</from>
242 <to>$RetrievePatientCorrelationsIn.RetrievePatientCorrelationsRequest/ncpc:QualifiedPatientIdentifier/nccommon:SubjectIdentifier</to>
243 </copy>
244 <copy>
245 <from>string($PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@root)</from>
246 <to>$RetrievePatientCorrelationsIn.RetrievePatientCorrelationsRequest/ncpc:QualifiedPatientIdentifier/nccommon:AssigningAuthorityIdentifier</to>
247 </copy>
248 <copy>
249 <from>$GetAAByHCIDOut.GetAssigningAuthoritiesByHomeCommunityResponse/conninfo:assigningAuthoritiesId/nccommon:assigningAuthority[$AACtr]/nccommon:assigningAuthorityId</from>
250 <to>$RetrievePatientCorrelationsIn.RetrievePatientCorrelationsRequest/ncpc:TargetAssigningAuthority</to>
251 </copy>
252 </assign>
253 <invoke name="InvokeRetrieveCorrelations" partnerLink="PatientCorrelationPL" operation="RetrievePatientCorrelations" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" portType="tns:PatientCorrelationFacadePortType" inputVariable="RetrievePatientCorrelationsIn" outputVariable="RetrievePatientCorrelationsOut"/>
254 <assign name="AssignPatientHasCorrelations">
255 <copy>
256 <from>(count($RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier)>0) or $patientHasCorrelationsForRemoteCommunity</from>
257 <to variable="patientHasCorrelationsForRemoteCommunity"/>
258 </copy>
259 </assign>
260 </sequence>
261 </scope>
262 </forEach>
263 <if name="IfCorrelationDoesNotExist">
264 <condition>not($patientHasCorrelationsForRemoteCommunity)</condition>
265 <sequence name="Send201301Seq">
266 <assign name="AssignSendToProxy">
267 <sxt:trace>
268 <sxt:log level="info" location="onComplete">
269 <from>concat('Sending 201301 to Community: ', $GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity[$CommunityCtr]/nccommon:homeCommunityId)</from>
270 </sxt:log>
271 </sxt:trace>
272 <copy>
273 <from>$GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity[$CommunityCtr]/nccommon:homeCommunityId</from>
274 <to>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:receiver/hl7:device/hl7:id/@root</to>
275 </copy>
276 <copy>
277 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV</from>
278 <to>$ProxyPIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:PRPA_IN201301UV</to>
279 </copy>
280 <copy>
281 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:assertion</from>
282 <to>$ProxyPIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:assertion</to>
283 </copy>
284 <copy>
285 <from>$GetAllCommunitiesOut.HomeCommunities/nccommon:homeCommunity[$CommunityCtr]/nccommon:homeCommunityId</from>
286 <to>$ProxyPIX201301In.PIXConsumer_PRPA_IN201301UVProxyRequest/hl7:nhinTargetSystem/nccommon:homeCommunity/nccommon:homeCommunityId</to>
287 </copy>
288 </assign>
289 <invoke name="InvokeSendToProxy" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" inputVariable="ProxyPIX201301In" outputVariable="ProxyPIX201301Out">
290 <sxt:trace>
291 <sxt:log level="info" location="onStart">
292 <from variable="ProxyPIX201301In" part="PIXConsumer_PRPA_IN201301UVProxyRequest"/>
293 </sxt:log>
294 </sxt:trace>
295 </invoke>
296 <assign name="Assign201301Resp">
297 <copy>
298 <from variable="ProxyPIX201301Out" part="PIXConsumer_PRPA_IN201301UVProxyResponse"/>
299 <to variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVResponse"/>
300 </copy>
301 </assign>
302 </sequence>
303 </if>
304 </sequence>
305 </if>
306 </sequence>
307 </scope>
308 </forEach>
309 <sequence name="Log201301Resp">
310 <assign name="AssignLog201301Resp">
311 <copy>
312 <from variable="PIX201301Out" part="PIXConsumer_PRPA_IN201301UVResponse"/>
313 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:MCCI_IN000002UV01</to>
314 </copy>
315 <copy>
316 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:assertion</from>
317 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion</to>
318 </copy>
319 <copy>
320 <from>'Outbound'</from>
321 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:direction</to>
322 </copy>
323 <copy>
324 <from>'Entity'</from>
325 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:interface</to>
326 </copy>
327 <copy>
328 <from>$PIX201301In.PIXConsumer_PRPA_IN201301UVRequest/hl7:PRPA_IN201301UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension</from>
329 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion/nccommon:uniquePatientId</to>
330 </copy>
331 </assign>
332 <invoke name="InvokeAudit201301Resp" partnerLink="AuditRepositoryPL" operation="LogNhinSubjectDiscoveryAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinSubjectDiscoveryAckIn" outputVariable="LogNhinSubjectDiscoveryAckOut"/>
333 </sequence>
334 <reply name="Reply201301" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201301UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201301Out"/>
335 </sequence>
336 </scope>
337 </onMessage>
338 <onMessage partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201302In">
339 <scope name="Handle201302Scope">
340 <variables>
341 <variable name="LogNhinSubjectDiscoveryAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
342 <variable name="LogNhinSubjectDiscoveryAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinSubjectDiscoveryAckRequestMessage"/>
343 <variable name="LogSubjectRevisedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
344 <variable name="LogSubjectRevisedIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectRevisedRequestMessage"/>
345 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
346 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
347 <variable name="PIX201302Out" messageType="tns:PIXConsumer_PRPA_IN201302UVResponseMessage"/>
348 </variables>
349 <faultHandlers>
350 <catch faultName="sxeh:systemFault" faultVariable="systemFault201302Var" faultMessageType="sxeh:faultMessage">
351 <sequence name="SystemFault201302Seq">
352 <assign name="AssignFaultAckDte">
353 <sxt:trace>
354 <sxt:log level="info" location="onStart">
355 <from>'EntitySubjectDiscovery.bpel - A system fault was encounterd processing a 201302 message. Fault detials follow...'</from>
356 </sxt:log>
357 <sxt:log level="warning" location="onStart">
358 <from variable="systemFault201302Var"/>
359 </sxt:log>
360 </sxt:trace>
361 <copy>
362 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:id</from>
363 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
364 </copy>
365 <copy>
366 <from>string($PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
367 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
368 </copy>
369 <copy>
370 <from>string($PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:sender/hl7:device/hl7:id/@root)</from>
371 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
372 </copy>
373 <copy>
374 <from>'Error - Internal Gateway Error'</from>
375 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
376 </copy>
377 </assign>
378 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
379 <assign name="Assign201302FaultInfo">
380 <copy>
381 <from variable="CreateAckOut" part="CreateAckResponse"/>
382 <to variable="PIX201302Out" part="PIXConsumer_PRPA_IN201302UVResponse"/>
383 </copy>
384 </assign>
385 <reply name="ReplyNhinSubDisc201302Fault" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201302Out"/>
386 <exit name="ExitAfter201302FaultReturn"/>
387 </sequence>
388 </catch>
389 </faultHandlers>
390 <sequence name="Process201302Seq">
391 <sequence name="Log201302ReqSeq">
392 <assign name="AssignAudit201302Req">
393 <copy>
394 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV</from>
395 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:message/hl7:PRPA_IN201302UV</to>
396 </copy>
397 <copy>
398 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:assertion</from>
399 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:message/hl7:assertion</to>
400 </copy>
401 <copy>
402 <from>'Inbound'</from>
403 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:direction</to>
404 </copy>
405 <copy>
406 <from>'Entity'</from>
407 <to>$LogSubjectRevisedIn.LogSubjectRevisedRequest/audit:interface</to>
408 </copy>
409 </assign>
410 <invoke name="InvokeAudit201302Req" partnerLink="AuditRepositoryPL" operation="LogSubjectRevised" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectRevisedIn" outputVariable="LogSubjectRevisedOut"/>
411 </sequence>
412 <assign name="AssignCreateNotSupportedAck">
413 <copy>
414 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:id</from>
415 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
416 </copy>
417 <copy>
418 <from>'Receiving a 201302 from an Agency is not currently supported'</from>
419 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
420 </copy>
421 <copy>
422 <from>string($PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
423 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
424 </copy>
425 <copy>
426 <from>string($PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:sender/hl7:device/hl7:id/@root)</from>
427 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
428 </copy>
429 </assign>
430 <invoke name="InvokeCreateNotSupportedAck" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
431 <assign name="Assign201302Resp">
432 <copy>
433 <from variable="CreateAckOut" part="CreateAckResponse"/>
434 <to variable="PIX201302Out" part="PIXConsumer_PRPA_IN201302UVResponse"/>
435 </copy>
436 </assign>
437 <sequence name="Log201302RespSeq">
438 <assign name="Assign201302AuditResp">
439 <copy>
440 <from variable="PIX201302Out" part="PIXConsumer_PRPA_IN201302UVResponse"/>
441 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:MCCI_IN000002UV01</to>
442 </copy>
443 <copy>
444 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:assertion</from>
445 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion</to>
446 </copy>
447 <copy>
448 <from>'Outbound'</from>
449 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:direction</to>
450 </copy>
451 <copy>
452 <from>'Entity'</from>
453 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:interface</to>
454 </copy>
455 <copy>
456 <from>$PIX201302In.PIXConsumer_PRPA_IN201302UVRequest/hl7:PRPA_IN201302UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension</from>
457 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion/nccommon:uniquePatientId</to>
458 </copy>
459 </assign>
460 <invoke name="InvokeLog201302Resp" partnerLink="AuditRepositoryPL" operation="LogNhinSubjectDiscoveryAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinSubjectDiscoveryAckIn" outputVariable="LogNhinSubjectDiscoveryAckOut"/>
461 </sequence>
462 <reply name="Reply201302" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201302UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201302Out"/>
463 </sequence>
464 </scope>
465 </onMessage>
466 <onMessage partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201303In">
467 <scope name="Handle201303Scope">
468 <variables>
469 <variable name="sendRevoke" type="xsd:boolean"/>
470 <variable name="GetHcidByAAOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetHomeCommunityByAssigningAuthorityResponseMessage"/>
471 <variable name="GetHcidByAAIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetHomeCommunityByAssigningAuthorityRequestMessage"/>
472 <variable name="Proxy201303UVOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201303UVProxyResponseMessage"/>
473 <variable name="Proxy201303UVIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201303UVProxyRequestMessage"/>
474 <variable name="RetrievePatientCorrelationsOut" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" messageType="tns:RetrievePatientCorrelationsResponseMessage"/>
475 <variable name="RetrievePatientCorrelationsIn" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" messageType="tns:RetrievePatientCorrelationsRequestMessage"/>
476 <variable name="LogNhinSubjectDiscoveryAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
477 <variable name="LogNhinSubjectDiscoveryAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinSubjectDiscoveryAckRequestMessage"/>
478 <variable name="LogSubjectRevokedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
479 <variable name="LogSubjectRevokedIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectRevokedRequestMessage"/>
480 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
481 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
482 <variable name="PIX201303Out" messageType="tns:PIXConsumer_PRPA_IN201303UVResponseMessage"/>
483 </variables>
484 <faultHandlers>
485 <catch faultName="sxeh:systemFault" faultVariable="systemFault201303Var" faultMessageType="sxeh:faultMessage">
486 <sequence name="SystemFault201303Seq">
487 <assign name="AssignFaultAckDte">
488 <sxt:trace>
489 <sxt:log level="info" location="onStart">
490 <from>'EntitySubjectDiscovery.bpel - A system fault was encounterd processing a 201303 message. Fault detials follow...'</from>
491 </sxt:log>
492 <sxt:log level="warning" location="onStart">
493 <from variable="systemFault201303Var"/>
494 </sxt:log>
495 </sxt:trace>
496 <copy>
497 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:id</from>
498 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
499 </copy>
500 <copy>
501 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
502 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
503 </copy>
504 <copy>
505 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:sender/hl7:device/hl7:id/@root)</from>
506 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
507 </copy>
508 <copy>
509 <from>'Error - Internal Gateway Error'</from>
510 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
511 </copy>
512 </assign>
513 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
514 <assign name="Assign201303FaultInfo">
515 <copy>
516 <from variable="CreateAckOut" part="CreateAckResponse"/>
517 <to variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVResponse"/>
518 </copy>
519 </assign>
520 <reply name="ReplyNhinSubDisc201303Fault" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201303Out"/>
521 <exit name="ExitAfter201303FaultReturn"/>
522 </sequence>
523 </catch>
524 </faultHandlers>
525 <sequence name="Process201303Seq">
526 <assign name="AssignLog201303Req">
527 <copy>
528 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV</from>
529 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:message/hl7:PRPA_IN201303UV</to>
530 </copy>
531 <copy>
532 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:assertion</from>
533 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:message/hl7:assertion</to>
534 </copy>
535 <copy>
536 <from>'Inbound'</from>
537 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:direction</to>
538 </copy>
539 <copy>
540 <from>'Entity'</from>
541 <to>$LogSubjectRevokedIn.LogSubjectRevokedRequest/audit:interface</to>
542 </copy>
543 </assign>
544 <invoke name="InvokeLog201303Req" partnerLink="AuditRepositoryPL" operation="LogSubjectRevoked" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectRevokedIn" outputVariable="LogSubjectRevokedOut"/>
545 <assign name="AssignCreateInitAck">
546 <copy>
547 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:id</from>
548 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
549 </copy>
550 <copy>
551 <from>'Success'</from>
552 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
553 </copy>
554 <copy>
555 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:sender/hl7:device/hl7:id/@root)</from>
556 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
557 </copy>
558 <copy>
559 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
560 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
561 </copy>
562 </assign>
563 <invoke name="InvokeCreateInitAck" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
564 <assign name="AssignInit">
565 <copy>
566 <from variable="CreateAckOut" part="CreateAckResponse"/>
567 <to variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVResponse"/>
568 </copy>
569 </assign>
570 <assign name="AssignRetreiveCorrelations">
571 <copy>
572 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension)</from>
573 <to>$RetrievePatientCorrelationsIn.RetrievePatientCorrelationsRequest/ncpc:QualifiedPatientIdentifier/nccommon:SubjectIdentifier</to>
574 </copy>
575 <copy>
576 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@root)</from>
577 <to>$RetrievePatientCorrelationsIn.RetrievePatientCorrelationsRequest/ncpc:QualifiedPatientIdentifier/nccommon:AssigningAuthorityIdentifier</to>
578 </copy>
579 </assign>
580 <invoke name="InvokeRetreiveCorrelations" partnerLink="PatientCorrelationPL" operation="RetrievePatientCorrelations" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" portType="tns:PatientCorrelationFacadePortType" inputVariable="RetrievePatientCorrelationsIn" outputVariable="RetrievePatientCorrelationsOut"/>
581 <forEach name="ForEachCorrelation" parallel="no" counterName="PatCorrCtr">
582 <startCounterValue>1</startCounterValue>
583 <finalCounterValue>count($RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier)</finalCounterValue>
584 <scope name="RevokePatientScope">
585 <variables>
586 <variable name="RemovePatientCorrelationOut" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" messageType="tns:RemovePatientCorrelationResponseMessage"/>
587 <variable name="RemovePatientCorrelationIn" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" messageType="tns:RemovePatientCorrelationRequestMessage"/>
588 </variables>
589 <sequence name="RevokePatientSeq">
590 <assign name="AssignGetHCIDFromAA">
591 <copy>
592 <from>false()</from>
593 <to variable="sendRevoke"/>
594 </copy>
595 <copy>
596 <from>$RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier[$PatCorrCtr]/nccommon:AssigningAuthorityIdentifier</from>
597 <to>$GetHcidByAAIn.GetHomeCommunityByAssigningAuthorityRequest/conninfo:AssigningAuthorities/nccommon:assigningAuthorityId</to>
598 </copy>
599 </assign>
600 <invoke name="InvokeGetHCIDFromAA" partnerLink="ConnectionMgrPL" operation="GetHomeCommunityByAssigningAuthority" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetHcidByAAIn" outputVariable="GetHcidByAAOut"/>
601 <if name="IfTargeted">
602 <condition>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:NhinTargetCommunities</condition>
603 <forEach name="ForEachTarget" parallel="no" counterName="TargetCtr">
604 <startCounterValue>1</startCounterValue>
605 <finalCounterValue>count($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:NhinTargetCommunities)</finalCounterValue>
606 <scope name="CheckTargetsScope">
607 <if name="IfMatch">
608 <condition>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:NhinTargetCommunities/nccommon:nhinTargetCommunity[$TargetCtr]/nccommon:homeCommunity/nccommon:homeCommunityId = $GetHcidByAAOut.GetHomeCommunityByAssigningAuthorityResponse/conninfo:HomeCommunity/nccommon:homeCommunityId</condition>
609 <assign name="AssignSendFlag">
610 <copy>
611 <from>true()</from>
612 <to variable="sendRevoke"/>
613 </copy>
614 </assign>
615 </if>
616 </scope>
617 </forEach>
618 <else>
619 <assign name="AssignFlagTrue">
620 <copy>
621 <from>true()</from>
622 <to variable="sendRevoke"/>
623 </copy>
624 </assign>
625 </else>
626 </if>
627 <if name="IfSendToProxy">
628 <condition>$sendRevoke = true()</condition>
629 <sequence name="SendToProxySeq">
630 <assign name="AssignNhinc201303Proxy">
631 <copy>
632 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV</from>
633 <to>$Proxy201303UVIn.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV</to>
634 </copy>
635 <copy>
636 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:assertion</from>
637 <to>$Proxy201303UVIn.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:assertion</to>
638 </copy>
639 <copy>
640 <from>$GetHcidByAAOut.GetHomeCommunityByAssigningAuthorityResponse/conninfo:HomeCommunity/nccommon:homeCommunityId</from>
641 <to>$Proxy201303UVIn.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:nhinTargetSystem/nccommon:homeCommunity/nccommon:homeCommunityId</to>
642 </copy>
643 <copy>
644 <from>$RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier[$PatCorrCtr]/nccommon:SubjectIdentifier</from>
645 <to>$Proxy201303UVIn.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension</to>
646 </copy>
647 <copy>
648 <from>$RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier[$PatCorrCtr]/nccommon:AssigningAuthorityIdentifier</from>
649 <to>$Proxy201303UVIn.PIXConsumer_PRPA_IN201303UVProxyRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@root</to>
650 </copy>
651 </assign>
652 <invoke name="InvokeNhinc201303Proxy" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" inputVariable="Proxy201303UVIn" outputVariable="Proxy201303UVOut"/>
653 <assign name="AssignRemoveCorrelation">
654 <copy>
655 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@root)</from>
656 <to>$RemovePatientCorrelationIn.RemovePatientCorrelationRequest/ncpc:QualifiedPatientIdentifier[1]/nccommon:AssigningAuthorityIdentifier</to>
657 </copy>
658 <copy>
659 <from>string($PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:PRPA_IN201303UV/hl7:controlActProcess/hl7:subject/hl7:registrationEvent/hl7:subject1/hl7:patient/hl7:id/@extension)</from>
660 <to>$RemovePatientCorrelationIn.RemovePatientCorrelationRequest/ncpc:QualifiedPatientIdentifier[1]/nccommon:SubjectIdentifier</to>
661 </copy>
662 <copy>
663 <from>$RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier[$PatCorrCtr]/nccommon:SubjectIdentifier</from>
664 <to>$RemovePatientCorrelationIn.RemovePatientCorrelationRequest/ncpc:QualifiedPatientIdentifier[2]/nccommon:SubjectIdentifier</to>
665 </copy>
666 <copy>
667 <from>$RetrievePatientCorrelationsOut.RetrievePatientCorrelationsResponse/ncpc:QualifiedPatientIdentifier[$PatCorrCtr]/nccommon:AssigningAuthorityIdentifier</from>
668 <to>$RemovePatientCorrelationIn.RemovePatientCorrelationRequest/ncpc:QualifiedPatientIdentifier[2]/nccommon:AssigningAuthorityIdentifier</to>
669 </copy>
670 </assign>
671 <invoke name="InvokeRemoveCorrelation" partnerLink="PatientCorrelationPL" operation="RemovePatientCorrelation" xmlns:tns="urn:gov:hhs:fha:nhinc:componentpatientcorrelationfacade" portType="tns:PatientCorrelationFacadePortType" inputVariable="RemovePatientCorrelationIn" outputVariable="RemovePatientCorrelationOut"/>
672 <assign name="Assign201303Resp">
673 <copy>
674 <from variable="Proxy201303UVOut" part="PIXConsumer_PRPA_IN201303UVProxyResponse"/>
675 <to variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVResponse"/>
676 </copy>
677 </assign>
678 </sequence>
679 </if>
680 </sequence>
681 </scope>
682 </forEach>
683 <assign name="Assign201303AuditResp">
684 <copy>
685 <from>$PIX201303In.PIXConsumer_PRPA_IN201303UVRequest/hl7:assertion</from>
686 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:assertion</to>
687 </copy>
688 <copy>
689 <from variable="PIX201303Out" part="PIXConsumer_PRPA_IN201303UVResponse"/>
690 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:message/hl7:PIXConsumer_MCCI_IN000002UV01Request/hl7:MCCI_IN000002UV01</to>
691 </copy>
692 <copy>
693 <from>'Outbound'</from>
694 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:direction</to>
695 </copy>
696 <copy>
697 <from>'Entity'</from>
698 <to>$LogNhinSubjectDiscoveryAckIn.LogNhinSubjectDiscoveryAckRequest/audit:interface</to>
699 </copy>
700 </assign>
701 <invoke name="InvokeLog201303Resp" partnerLink="AuditRepositoryPL" operation="LogNhinSubjectDiscoveryAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinSubjectDiscoveryAckIn" outputVariable="LogNhinSubjectDiscoveryAckOut"/>
702 <reply name="Reply201303" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201303UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201303Out"/>
703 </sequence>
704 </scope>
705 </onMessage>
706 <onMessage partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201304In">
707 <scope name="Handle201304Scope">
708 <variables>
709 <variable name="CreateAckOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckResponseMessage"/>
710 <variable name="CreateAckIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" messageType="tns:CreateAckRequestMessage"/>
711 <variable name="PIX201304Out" messageType="tns:PIXConsumer_PRPA_IN201304UVResponseMessage"/>
712 </variables>
713 <faultHandlers>
714 <catch faultName="sxeh:systemFault" faultVariable="systemFault201304Var" faultMessageType="sxeh:faultMessage">
715 <sequence name="SystemFault201304Seq">
716 <assign name="AssignFaultAckDte">
717 <sxt:trace>
718 <sxt:log level="info" location="onStart">
719 <from>'EntitySubjectDiscovery.bpel - A system fault was encounterd processing a 201304 message. Fault detials follow...'</from>
720 </sxt:log>
721 <sxt:log level="warning" location="onStart">
722 <from variable="systemFault201304Var"/>
723 </sxt:log>
724 </sxt:trace>
725 <copy>
726 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVRequest/hl7:PRPA_IN201304UV/hl7:id</from>
727 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
728 </copy>
729 <copy>
730 <from>string($PIX201304In.PIXConsumer_PRPA_IN201304UVRequest/hl7:PRPA_IN201304UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
731 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
732 </copy>
733 <copy>
734 <from>string($PIX201304In.PIXConsumer_PRPA_IN201304UVRequest/hl7:PRPA_IN201304UV/hl7:sender/hl7:device/hl7:id/@root)</from>
735 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
736 </copy>
737 <copy>
738 <from>'Error - Internal Gateway Error'</from>
739 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
740 </copy>
741 </assign>
742 <invoke name="InvokeFaultAckDte" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
743 <assign name="Assign201304FaultInfo">
744 <copy>
745 <from variable="CreateAckOut" part="CreateAckResponse"/>
746 <to variable="PIX201304Out" part="PIXConsumer_PRPA_IN201304UVResponse"/>
747 </copy>
748 </assign>
749 <reply name="ReplyNhinSubDisc201304Fault" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201304Out"/>
750 <exit name="ExitAfter201304FaultReturn"/>
751 </sequence>
752 </catch>
753 </faultHandlers>
754 <sequence name="Process201304Seq">
755 <assign name="AssignCreateNotSupportedAck">
756 <copy>
757 <from>$PIX201304In.PIXConsumer_PRPA_IN201304UVRequest/hl7:PRPA_IN201304UV/hl7:id</from>
758 <to>$CreateAckIn.CreateAckRequest/hl7:origMsgId</to>
759 </copy>
760 <copy>
761 <from>'Receiving a 201304 from an Agency is not currently supported'</from>
762 <to>$CreateAckIn.CreateAckRequest/hl7:msgText</to>
763 </copy>
764 <copy>
765 <from>string($PIX201304In.PIXConsumer_PRPA_IN201304UVRequest/hl7:PRPA_IN201304UV/hl7:receiver/hl7:device/hl7:id/@root)</from>
766 <to>$CreateAckIn.CreateAckRequest/hl7:senderOID</to>
767 </copy>
768 <copy>
769 <from>string($PIX201304In.PIXConsumer_PRPA_IN201304UVRequest/hl7:PRPA_IN201304UV/hl7:sender/hl7:device/hl7:id/@root)</from>
770 <to>$CreateAckIn.CreateAckRequest/hl7:receiverOID</to>
771 </copy>
772 </assign>
773 <invoke name="InvokeCreateNotSupportedAck" partnerLink="SubDiscDataTransformsPL" operation="CreateAck" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentsubdisctransforms" portType="tns:NhincComponentSubDiscTransformsPortType" inputVariable="CreateAckIn" outputVariable="CreateAckOut"/>
774 <assign name="Assign201304Resp">
775 <copy>
776 <from variable="CreateAckOut" part="CreateAckResponse"/>
777 <to variable="PIX201304Out" part="PIXConsumer_PRPA_IN201304UVResponse"/>
778 </copy>
779 </assign>
780 <reply name="Reply201304" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201304UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201304Out"/>
781 </sequence>
782 </scope>
783 </onMessage>
784 <onMessage partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubjectdiscovery" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201309In">
785 <scope name="HandleScope201309">
786 <variables>
787 <variable name="CheckPolicySubjectReidentificationOut" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" messageType="tns:CheckPolicyResponseMessage"/>
788 <variable name="CheckPolicySubjectReidentificationIn" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" messageType="tns:CheckPolicySubjectReidentificationRequestMessage"/>
789 <variable name="LogSubjectReidentResultOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
790 <variable name="LogSubjectReidentResultIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectReidentResponseMessage"/>
791 <variable name="LogSubjectReidentOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
792 <variable name="LogSubjectReidentIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogSubjectReidentRequestMessage"/>
793 <variable name="PIX201309UVOut" messageType="tns:PIXConsumer_PRPA_IN201309UVResponseMessage"/>
794 <variable name="ProxyPIX201309Out" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201309UVProxyResponseMessage"/>
795 <variable name="ProxyPIX201309In" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" messageType="tns:PIXConsumer_PRPA_IN201309UVProxyRequestMessage"/>
796 </variables>
797 <sequence name="ProcessIfPermitSeq">
798 <assign name="AssignLog201309Req">
799 <sxt:trace>
800 <sxt:log level="info" location="onStart">
801 <from variable="PIX201309In" part="PIXConsumer_PRPA_IN201309UVRequest"/>
802 </sxt:log>
803 <sxt:log level="info" location="onComplete">
804 <from variable="LogSubjectReidentIn" part="LogSubjectReidentRequest"/>
805 </sxt:log>
806 </sxt:trace>
807 <copy>
808 <from>'Inbound'</from>
809 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:direction</to>
810 </copy>
811 <copy>
812 <from>'Entity'</from>
813 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:interface</to>
814 </copy>
815 <copy>
816 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVRequest/hl7:PRPA_IN201309UV</from>
817 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:message/hl7:PRPA_IN201309UV</to>
818 </copy>
819 <copy>
820 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVRequest/hl7:assertion</from>
821 <to>$LogSubjectReidentIn.LogSubjectReidentRequest/audit:message/hl7:assertion</to>
822 </copy>
823 </assign>
824 <invoke name="InvokeLog201309Req" partnerLink="AuditRepositoryPL" operation="LogSubjectReident" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectReidentIn" outputVariable="LogSubjectReidentOut"/>
825 <assign name="AssignCheckPolicy201309">
826 <copy>
827 <from variable="PIX201309In" part="PIXConsumer_PRPA_IN201309UVRequest"/>
828 <to>$CheckPolicySubjectReidentificationIn.CheckPolicySubjectReidentificationRequest/ncomevent:message</to>
829 </copy>
830 <copy>
831 <from>'Inbound'</from>
832 <to>$CheckPolicySubjectReidentificationIn.CheckPolicySubjectReidentificationRequest/ncomevent:direction</to>
833 </copy>
834 <copy>
835 <from>'Entity'</from>
836 <to>$CheckPolicySubjectReidentificationIn.CheckPolicySubjectReidentificationRequest/ncomevent:interface</to>
837 </copy>
838 </assign>
839 <invoke name="InvokeCheckPolicy201309" partnerLink="NhincInternalPolicyEnginePL" operation="CheckPolicySubjectReidentification" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" portType="tns:NhincComponentInternalPolicyEngineFacadePortType" inputVariable="CheckPolicySubjectReidentificationIn" outputVariable="CheckPolicySubjectReidentificationOut"/>
840 <if name="IfPolicyPermit">
841 <condition>'Permit' = $CheckPolicySubjectReidentificationOut.CheckPolicyResponse/ncadapt:response/xacml:Result/xacml:Decision</condition>
842 <sequence name="InvokeProxy201309Seq">
843 <assign name="AssignProxy201309">
844 <copy>
845 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVRequest/hl7:PRPA_IN201309UV</from>
846 <to>$ProxyPIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:PRPA_IN201309UV</to>
847 </copy>
848 <copy>
849 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVRequest/hl7:assertion</from>
850 <to>$ProxyPIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:assertion</to>
851 </copy>
852 <copy>
853 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVRequest/hl7:NhinTargetCommunities/nccommon:nhinTargetCommunity/nccommon:homeCommunity/nccommon:homeCommunityId</from>
854 <to>$ProxyPIX201309In.PIXConsumer_PRPA_IN201309UVProxyRequest/hl7:nhinTargetSystem/nccommon:homeCommunity/nccommon:homeCommunityId</to>
855 </copy>
856 </assign>
857 <invoke name="InvokeNhincProxy201309" partnerLink="NhincProxySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxysubjectdiscovery" portType="tns:NhincProxySubjectDiscoveryPortType" inputVariable="ProxyPIX201309In" outputVariable="ProxyPIX201309Out"/>
858 <assign name="AssignProxy201309Resp">
859 <copy>
860 <from variable="ProxyPIX201309Out" part="PIXConsumer_PRPA_IN201309UVProxyResponse"/>
861 <to>$PIX201309UVOut.PIXConsumer_PRPA_IN201309UVResponse/hl7:PRPA_IN201310UV</to>
862 </copy>
863 </assign>
864 <assign name="AssignLog201309Resp">
865 <copy>
866 <from>$PIX201309In.PIXConsumer_PRPA_IN201309UVRequest/hl7:assertion</from>
867 <to>$LogSubjectReidentResultIn.LogSubjectReidentResponse/audit:assertion</to>
868 </copy>
869 <copy>
870 <from>'Outbound'</from>
871 <to>$LogSubjectReidentResultIn.LogSubjectReidentResponse/audit:direction</to>
872 </copy>
873 <copy>
874 <from>'Entity'</from>
875 <to>$LogSubjectReidentResultIn.LogSubjectReidentResponse/audit:interface</to>
876 </copy>
877 <copy>
878 <from>$PIX201309UVOut.PIXConsumer_PRPA_IN201309UVResponse/hl7:PRPA_IN201310UV</from>
879 <to>$LogSubjectReidentResultIn.LogSubjectReidentResponse/audit:message/hl7:PRPA_IN201310UV</to>
880 </copy>
881 </assign>
882 <invoke name="InvokeLog201309Resp" partnerLink="AuditRepositoryPL" operation="LogSubjectReidentResult" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogSubjectReidentResultIn" outputVariable="LogSubjectReidentResultOut"/>
883 <reply name="Reply201309" partnerLink="EntitySubjectDiscoveryPL" operation="PIXConsumer_PRPA_IN201309UV" portType="tns:EntitySubjectDiscoveryPortType" variable="PIX201309UVOut"/>
884 </sequence>
885 </if>
886 </sequence>
887 </scope>
888 </onMessage>
889 </pick>
890 </sequence>
891</process>
Note: See TracBrowser for help on using the repository browser.