Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bg z msz content asserts #266

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
lib/
build/
tmp/
.project
*.log
/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<profile value="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"/>
</meta>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-1-retrieve-bgz"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Retrieving XIS - Scenario 1.1 - Retrieve BgZ resources of D Janse"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -1179,7 +1179,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="Bearer b4917a9e-462f-11ed-b878-0242ac120002"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<profile value="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"/>
</meta>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-2-retrieve-bgz"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Retrieving XIS - Scenario 1.2 - Retrieve BgZ resources of F Gigase-Verheul"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -1179,7 +1179,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="Bearer c2035300-462f-11ed-b878-0242ac120003"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-1-serve-bgz-CheckContent-json"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.1 - Serve BgZ resources of D Janse - target CheckContent - JSON Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -12728,7 +12728,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-1-serve-bgz-CheckContent-xml"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.1 - Serve BgZ resources of D Janse - target CheckContent - XML Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -12728,7 +12728,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-2-serve-bgz-CheckContent-json"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.2 - Serve BgZ resources of F Gigase-Verheul - target CheckContent - JSON Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -7643,9 +7643,9 @@
<valueBoolean value="false"/>
</extension>
<label value="1-6"/>
<description value="Contains .code with .extension with url 'http://hl7.org/fhir/StructureDefinition/data-absent-reason' with .valueCode 'unknown'. This assert checks if all children exist (if applicable with their specific values) and if they are present within one element. Following asserts check if individual children exist to help you debug if this assert fails"/>
<description value="Contains .code with .coding with .system 'http://hl7.org/fhir/v3/NullFlavor' and .code 'OTH' and .display and .text with a value"/>
<direction value="response"/>
<expression value="Bundle.entry.resource.ofType(Flag).where(id = '${zib-Alert-bgz-msz-patB-alert1-id}').code.extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').value.ofType(code) = 'unknown'"/>
<expression value="Bundle.entry.resource.ofType(Flag).where(id = '${zib-Alert-bgz-msz-patB-alert1-id}').code.where(coding.where(system = 'http://hl7.org/fhir/v3/NullFlavor' and code = 'OTH' and display) and text.hasValue()).exists()"/>
<warningOnly value="false"/>
</assert>
</action>
Expand Down Expand Up @@ -10992,7 +10992,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-2-serve-bgz-CheckContent-xml"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.2 - Serve BgZ resources of F Gigase-Verheul - target CheckContent - XML Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -7643,9 +7643,9 @@
<valueBoolean value="false"/>
</extension>
<label value="1-6"/>
<description value="Contains .code with .extension with url 'http://hl7.org/fhir/StructureDefinition/data-absent-reason' with .valueCode 'unknown'. This assert checks if all children exist (if applicable with their specific values) and if they are present within one element. Following asserts check if individual children exist to help you debug if this assert fails"/>
<description value="Contains .code with .coding with .system 'http://hl7.org/fhir/v3/NullFlavor' and .code 'OTH' and .display and .text with a value"/>
<direction value="response"/>
<expression value="Bundle.entry.resource.ofType(Flag).where(id = '${zib-Alert-bgz-msz-patB-alert1-id}').code.extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').value.ofType(code) = 'unknown'"/>
<expression value="Bundle.entry.resource.ofType(Flag).where(id = '${zib-Alert-bgz-msz-patB-alert1-id}').code.where(coding.where(system = 'http://hl7.org/fhir/v3/NullFlavor' and code = 'OTH' and display) and text.hasValue()).exists()"/>
<warningOnly value="false"/>
</assert>
</action>
Expand Down Expand Up @@ -10992,7 +10992,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-1-serve-bgz-json"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.1 - Serve BgZ resources of D Janse - JSON Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -4404,7 +4404,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-1-serve-bgz-xml"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.1 - Serve BgZ resources of D Janse - XML Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -4404,7 +4404,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999999151&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-2-serve-bgz-json"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.2 - Serve BgZ resources of F Gigase-Verheul - JSON Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -4405,7 +4405,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</extension>
</extension>
<url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-2-serve-bgz-xml"/>
<version value="stu3-3.0-patchlevel 2024-02"/>
<version value="stu3-3.0-patchlevel 2024-03"/>
<name value="BgZ MSZ - Serving XIS - Scenario 1.2 - Serve BgZ resources of F Gigase-Verheul - XML Format"/>
<status value="active"/>
<publisher value="Nictiz"/>
Expand Down Expand Up @@ -4405,7 +4405,7 @@
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,category=http://snomed.info/sct|68793005,category=http://snomed.info/sct|395124008,category=http://snomed.info/sct|314076009,category=http://snomed.info/sct|19851009,category=http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999900560&amp;category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&amp;_include=Observation:related-target&amp;_include=Observation:specimen"/>
<requestHeader>
<field value="Authorization"/>
<value value="${patient-token-id}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
</tr>
<tr>
<th>Code</th>
<td>
<i>onbekend (ontbrekend gegeven)</i>
</td>
<td>Zie probleem</td>
</tr>
<tr>
<th>Detail</th>
Expand Down Expand Up @@ -52,9 +50,12 @@
</coding>
</category>
<code>
<extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
<valueCode value="unknown"/>
</extension>
<coding>
<system value="http://hl7.org/fhir/v3/NullFlavor"/>
<code value="OTH"/>
<display value="other"/>
</coding>
<text value="Zie probleem"/>
</code>
<subject>
<reference value="Patient/FRANCISCA-F--FRANSJE-GIGASE-VERHEUL"/>
Expand Down
Loading
Loading