Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 8ef60b7

Browse files
committed
Use Consortium + Role Constraint Access Control
1 parent 80f29c2 commit 8ef60b7

5 files changed

Lines changed: 314 additions & 10 deletions

File tree

codex-process-feasibility/src/main/resources/fhir/ActivityDefinition/executeSimpleFeasibility.xml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,44 @@
1515
</extension>
1616
<extension url="requester">
1717
<valueCoding>
18+
<extension
19+
url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization-consortium-role">
20+
<extension url="consortium">
21+
<valueIdentifier>
22+
<system value="http://highmed.org/sid/organization-identifier"/>
23+
<value value="netzwerk-universitaetsmedizin.de"/>
24+
</valueIdentifier>
25+
</extension>
26+
<extension url="role">
27+
<valueCoding>
28+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
29+
<code value="HRP"/>
30+
</valueCoding>
31+
</extension>
32+
</extension>
1833
<system value="http://highmed.org/fhir/CodeSystem/process-authorization"/>
19-
<code value="REMOTE_ALL"/>
34+
<code value="REMOTE_ROLE"/>
2035
</valueCoding>
2136
</extension>
2237
<extension url="recipient">
2338
<valueCoding>
39+
<extension
40+
url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization-consortium-role">
41+
<extension url="consortium">
42+
<valueIdentifier>
43+
<system value="http://highmed.org/sid/organization-identifier"/>
44+
<value value="netzwerk-universitaetsmedizin.de"/>
45+
</valueIdentifier>
46+
</extension>
47+
<extension url="role">
48+
<valueCoding>
49+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
50+
<code value="MeDIC"/>
51+
</valueCoding>
52+
</extension>
53+
</extension>
2454
<system value="http://highmed.org/fhir/CodeSystem/process-authorization"/>
25-
<code value="LOCAL_ALL"/>
55+
<code value="LOCAL_ROLE"/>
2656
</valueCoding>
2757
</extension>
2858
</extension>

codex-process-feasibility/src/main/resources/fhir/ActivityDefinition/requestSimpleFeasibility.xml

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,44 @@
1515
</extension>
1616
<extension url="requester">
1717
<valueCoding>
18+
<extension
19+
url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization-consortium-role">
20+
<extension url="consortium">
21+
<valueIdentifier>
22+
<system value="http://highmed.org/sid/organization-identifier"/>
23+
<value value="netzwerk-universitaetsmedizin.de"/>
24+
</valueIdentifier>
25+
</extension>
26+
<extension url="role">
27+
<valueCoding>
28+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
29+
<code value="HRP"/>
30+
</valueCoding>
31+
</extension>
32+
</extension>
1833
<system value="http://highmed.org/fhir/CodeSystem/process-authorization"/>
19-
<code value="LOCAL_ALL"/>
34+
<code value="LOCAL_ROLE"/>
2035
</valueCoding>
2136
</extension>
2237
<extension url="recipient">
2338
<valueCoding>
39+
<extension
40+
url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization-consortium-role">
41+
<extension url="consortium">
42+
<valueIdentifier>
43+
<system value="http://highmed.org/sid/organization-identifier"/>
44+
<value value="netzwerk-universitaetsmedizin.de"/>
45+
</valueIdentifier>
46+
</extension>
47+
<extension url="role">
48+
<valueCoding>
49+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
50+
<code value="HRP"/>
51+
</valueCoding>
52+
</extension>
53+
</extension>
2454
<system value="http://highmed.org/fhir/CodeSystem/process-authorization"/>
25-
<code value="LOCAL_ALL"/>
55+
<code value="LOCAL_ROLE"/>
2656
</valueCoding>
2757
</extension>
2858
</extension>
@@ -36,14 +66,44 @@
3666
</extension>
3767
<extension url="requester">
3868
<valueCoding>
69+
<extension
70+
url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization-consortium-role">
71+
<extension url="consortium">
72+
<valueIdentifier>
73+
<system value="http://highmed.org/sid/organization-identifier"/>
74+
<value value="netzwerk-universitaetsmedizin.de"/>
75+
</valueIdentifier>
76+
</extension>
77+
<extension url="role">
78+
<valueCoding>
79+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
80+
<code value="MeDIC"/>
81+
</valueCoding>
82+
</extension>
83+
</extension>
3984
<system value="http://highmed.org/fhir/CodeSystem/process-authorization"/>
40-
<code value="REMOTE_ALL"/>
85+
<code value="REMOTE_ROLE"/>
4186
</valueCoding>
4287
</extension>
4388
<extension url="recipient">
4489
<valueCoding>
90+
<extension
91+
url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization-consortium-role">
92+
<extension url="consortium">
93+
<valueIdentifier>
94+
<system value="http://highmed.org/sid/organization-identifier"/>
95+
<value value="netzwerk-universitaetsmedizin.de"/>
96+
</valueIdentifier>
97+
</extension>
98+
<extension url="role">
99+
<valueCoding>
100+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
101+
<code value="HRP"/>
102+
</valueCoding>
103+
</extension>
104+
</extension>
45105
<system value="http://highmed.org/fhir/CodeSystem/process-authorization"/>
46-
<code value="LOCAL_ALL"/>
106+
<code value="LOCAL_ROLE"/>
47107
</valueCoding>
48108
</extension>
49109
</extension>

codex-processes-ap2-tools/codex-processes-ap2-test-data-generator/src/main/resources/bundle-templates/dic-1-bundle.xml

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<type>
2323
<coding>
2424
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
25-
<code value="MeDIC"/>
25+
<code value="HRP"/>
2626
</coding>
2727
</type>
2828
<name value="Test ZARS"/>
@@ -160,4 +160,111 @@
160160
value="identifier=http://highmed.org/sid/endpoint-identifier|Test_DIC_1_Endpoint"/>
161161
</request>
162162
</entry>
163+
164+
<entry>
165+
<fullUrl value="urn:uuid:c4a7b553-01b1-4b50-bcb3-1467f5ae6791"/>
166+
<resource>
167+
<Organization xmlns="http://hl7.org/fhir">
168+
<meta>
169+
<profile value="http://highmed.org/fhir/StructureDefinition/organization-parent"/>
170+
<tag>
171+
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag"/>
172+
<code value="ALL"/>
173+
</tag>
174+
</meta>
175+
<identifier>
176+
<system value="http://highmed.org/sid/organization-identifier"/>
177+
<value value="netzwerk-universitaetsmedizin.de"/>
178+
</identifier>
179+
<active value="true"/>
180+
<name value="Netzwerk Universitätsmedizin"/>
181+
</Organization>
182+
</resource>
183+
<request>
184+
<method value="POST"/>
185+
<url value="Organization"/>
186+
<ifNoneExist
187+
value="identifier=http://highmed.org/sid/organization-identifier|netzwerk-universitaetsmedizin.de"/>
188+
</request>
189+
</entry>
190+
191+
<entry>
192+
<fullUrl value="urn:uuid:6da23450-e2e2-49e1-8591-02c553d53e3b"/>
193+
<resource>
194+
<OrganizationAffiliation xmlns="http://hl7.org/fhir">
195+
<meta>
196+
<profile value="http://highmed.org/fhir/StructureDefinition/organization-affiliation"/>
197+
<tag>
198+
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag"/>
199+
<code value="ALL"/>
200+
</tag>
201+
</meta>
202+
<active value="true"/>
203+
<organization>
204+
<reference value="urn:uuid:c4a7b553-01b1-4b50-bcb3-1467f5ae6791"/>
205+
<type value="Organization"/>
206+
</organization>
207+
<participatingOrganization>
208+
<reference value="urn:uuid:bb73165c-c7b9-4342-8e28-531f07fa7735"/>
209+
<type value="Organization"/>
210+
</participatingOrganization>
211+
<code>
212+
<coding>
213+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
214+
<code value="HRP"/>
215+
</coding>
216+
</code>
217+
<endpoint>
218+
<reference value="urn:uuid:169e782c-2673-40e9-8b30-f1dc46dba984"/>
219+
<type value="Endpoint"/>
220+
</endpoint>
221+
</OrganizationAffiliation>
222+
</resource>
223+
<request>
224+
<method value="POST"/>
225+
<url value="OrganizationAffiliation"/>
226+
<ifNoneExist
227+
value="primary-organization:identifier=http://highmed.org/sid/organization-identifier|netzwerk-universitaetsmedizin.de&amp;participating-organization:identifier=http://highmed.org/sid/organization-identifier|Test_ZARS"/>
228+
</request>
229+
</entry>
230+
231+
<entry>
232+
<fullUrl value="urn:uuid:b84cddc8-83da-4bcc-9fdc-5e78cf709944"/>
233+
<resource>
234+
<OrganizationAffiliation xmlns="http://hl7.org/fhir">
235+
<meta>
236+
<profile value="http://highmed.org/fhir/StructureDefinition/organization-affiliation"/>
237+
<tag>
238+
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag"/>
239+
<code value="ALL"/>
240+
</tag>
241+
</meta>
242+
<active value="true"/>
243+
<organization>
244+
<reference value="urn:uuid:c4a7b553-01b1-4b50-bcb3-1467f5ae6791"/>
245+
<type value="Organization"/>
246+
</organization>
247+
<participatingOrganization>
248+
<reference value="urn:uuid:cf62edc2-cc5d-43ed-ac0e-caf09f7326c3"/>
249+
<type value="Organization"/>
250+
</participatingOrganization>
251+
<code>
252+
<coding>
253+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
254+
<code value="MeDIC"/>
255+
</coding>
256+
</code>
257+
<endpoint>
258+
<reference value="urn:uuid:296cc73f-3a25-4aff-90f1-c5657a3ccbf1"/>
259+
<type value="Endpoint"/>
260+
</endpoint>
261+
</OrganizationAffiliation>
262+
</resource>
263+
<request>
264+
<method value="POST"/>
265+
<url value="OrganizationAffiliation"/>
266+
<ifNoneExist
267+
value="primary-organization:identifier=http://highmed.org/sid/organization-identifier|netzwerk-universitaetsmedizin.de&amp;participating-organization:identifier=http://highmed.org/sid/organization-identifier|Test_DIC_1"/>
268+
</request>
269+
</entry>
163270
</Bundle>

codex-processes-ap2-tools/codex-processes-ap2-test-data-generator/src/main/resources/bundle-templates/dic-2-bundle.xml

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<type>
2323
<coding>
2424
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
25-
<code value="MeDIC"/>
25+
<code value="HRP"/>
2626
</coding>
2727
</type>
2828
<name value="Test ZARS"/>
@@ -162,4 +162,111 @@
162162
value="identifier=http://highmed.org/sid/endpoint-identifier|Test_DIC_2_Endpoint"/>
163163
</request>
164164
</entry>
165+
166+
<entry>
167+
<fullUrl value="urn:uuid:c4a7b553-01b1-4b50-bcb3-1467f5ae6791"/>
168+
<resource>
169+
<Organization xmlns="http://hl7.org/fhir">
170+
<meta>
171+
<profile value="http://highmed.org/fhir/StructureDefinition/organization-parent"/>
172+
<tag>
173+
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag"/>
174+
<code value="ALL"/>
175+
</tag>
176+
</meta>
177+
<identifier>
178+
<system value="http://highmed.org/sid/organization-identifier"/>
179+
<value value="netzwerk-universitaetsmedizin.de"/>
180+
</identifier>
181+
<active value="true"/>
182+
<name value="Netzwerk Universitätsmedizin"/>
183+
</Organization>
184+
</resource>
185+
<request>
186+
<method value="POST"/>
187+
<url value="Organization"/>
188+
<ifNoneExist
189+
value="identifier=http://highmed.org/sid/organization-identifier|netzwerk-universitaetsmedizin.de"/>
190+
</request>
191+
</entry>
192+
193+
<entry>
194+
<fullUrl value="urn:uuid:6da23450-e2e2-49e1-8591-02c553d53e3b"/>
195+
<resource>
196+
<OrganizationAffiliation xmlns="http://hl7.org/fhir">
197+
<meta>
198+
<profile value="http://highmed.org/fhir/StructureDefinition/organization-affiliation"/>
199+
<tag>
200+
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag"/>
201+
<code value="ALL"/>
202+
</tag>
203+
</meta>
204+
<active value="true"/>
205+
<organization>
206+
<reference value="urn:uuid:c4a7b553-01b1-4b50-bcb3-1467f5ae6791"/>
207+
<type value="Organization"/>
208+
</organization>
209+
<participatingOrganization>
210+
<reference value="urn:uuid:bb73165c-c7b9-4342-8e28-531f07fa7735"/>
211+
<type value="Organization"/>
212+
</participatingOrganization>
213+
<code>
214+
<coding>
215+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
216+
<code value="HRP"/>
217+
</coding>
218+
</code>
219+
<endpoint>
220+
<reference value="urn:uuid:dae83c31-e478-4bc2-a6bc-61e8b9b41fd7"/>
221+
<type value="Endpoint"/>
222+
</endpoint>
223+
</OrganizationAffiliation>
224+
</resource>
225+
<request>
226+
<method value="POST"/>
227+
<url value="OrganizationAffiliation"/>
228+
<ifNoneExist
229+
value="primary-organization:identifier=http://highmed.org/sid/organization-identifier|netzwerk-universitaetsmedizin.de&amp;participating-organization:identifier=http://highmed.org/sid/organization-identifier|Test_ZARS"/>
230+
</request>
231+
</entry>
232+
233+
<entry>
234+
<fullUrl value="urn:uuid:b84cddc8-83da-4bcc-9fdc-5e78cf709944"/>
235+
<resource>
236+
<OrganizationAffiliation xmlns="http://hl7.org/fhir">
237+
<meta>
238+
<profile value="http://highmed.org/fhir/StructureDefinition/organization-affiliation"/>
239+
<tag>
240+
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag"/>
241+
<code value="ALL"/>
242+
</tag>
243+
</meta>
244+
<active value="true"/>
245+
<organization>
246+
<reference value="urn:uuid:c4a7b553-01b1-4b50-bcb3-1467f5ae6791"/>
247+
<type value="Organization"/>
248+
</organization>
249+
<participatingOrganization>
250+
<reference value="urn:uuid:55901940-02db-40bf-9a6e-bdfdd0ddb7bf"/>
251+
<type value="Organization"/>
252+
</participatingOrganization>
253+
<code>
254+
<coding>
255+
<system value="http://highmed.org/fhir/CodeSystem/organization-type"/>
256+
<code value="MeDIC"/>
257+
</coding>
258+
</code>
259+
<endpoint>
260+
<reference value="urn:uuid:a2ff2b1c-c42f-4418-9aeb-24f90b5f8ce5"/>
261+
<type value="Endpoint"/>
262+
</endpoint>
263+
</OrganizationAffiliation>
264+
</resource>
265+
<request>
266+
<method value="POST"/>
267+
<url value="OrganizationAffiliation"/>
268+
<ifNoneExist
269+
value="primary-organization:identifier=http://highmed.org/sid/organization-identifier|netzwerk-universitaetsmedizin.de&amp;participating-organization:identifier=http://highmed.org/sid/organization-identifier|Test_DIC_2"/>
270+
</request>
271+
</entry>
165272
</Bundle>

0 commit comments

Comments
 (0)