Skip to content

Commit

Permalink
Rework bundle link validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Nov 15, 2023
1 parent 350ddf7 commit 9ef586c
Show file tree
Hide file tree
Showing 3 changed files with 753 additions and 236 deletions.
41 changes: 41 additions & 0 deletions validator/bundle-dual-subject.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Bundle xmlns="http://hl7.org/fhir">
<identifier>
<system value="http://zrbj.eu/NamingSystem/GitHub-Issue"/>
<value value="1488"/>
</identifier>
<type value="document"/>
<timestamp value="2023-11-11T07:34:12Z"/>
<entry>
<fullUrl value="urn:uuid:0f3d28ae-4c27-49eb-987d-c35d536b40f8"/>
<resource>
<Composition>
<status value="final"/>
<type>
<coding>
<system value="http://loinc.org"/>
<code value="11502-2"/>
</coding>
</type>
<subject>
<reference value="urn:uuid:0f3d28ae-4c27-49eb-987d-c35d536b40f8"/>
</subject>
<subject>
<reference value="urn:uuid:13ed3afe-3d31-4148-8e95-dd62d140da57"/>
</subject>
<date value="2023-11-14"/>
<author>
<reference value="urn:uuid:13ed3afe-3d31-4148-8e95-dd62d140da57"/>
</author>
<title value="."/>
</Composition>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:13ed3afe-3d31-4148-8e95-dd62d140da57"/>
<resource>
<Organization>
<name value="Zrbj Laboratories"/>
</Organization>
</resource>
</entry>
</Bundle>
31 changes: 31 additions & 0 deletions validator/bundle-dual-target.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<Bundle xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<id value="IPS-examples-Bundle-01"/>
<type value="document"/>
<entry>
<fullUrl value="urn:uuid:30551ce1-5a28-4356-b684-1e639094ad4d"/>
<resource>
<Composition>
<id value="456"/>
<subject>
<reference value="Patient/123"/>
</subject>
</Composition>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/>
<resource>
<Patient>
<id value="123"/>
</Patient>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:f5452d76-3d4e-4cd0-9fc0-1ac3623e5cbf"/>
<resource>
<Patient>
<id value="123"/>
</Patient>
</resource>
</entry>
</Bundle>
Loading

0 comments on commit 9ef586c

Please sign in to comment.