Skip to content

Commit e6ed9ce

Browse files
committed
NICTIZ-34243 Aanpassing voor ant-build
1 parent 986c793 commit e6ed9ce

File tree

3,478 files changed

+170933
-136860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,478 files changed

+170933
-136860
lines changed
Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<TestScript xmlns="http://hl7.org/fhir" xmlns:nts="http://nictiz.nl/xsl/testscript">
3+
<id value="mp9-meddata-receive-1-x-json"/>
4+
<url value="http://nictiz.nl/fhir/TestScript/mp9-meddata-receive-1-x-json"/>
5+
<version value="r4-mp9-3.0.0-beta-patchlevel 2025.31"/>
6+
<name value="MP9 - Server - Scenario 1.x - Receive MedicationData - MA-script1 - JSON Format"/>
7+
<status value="active"/>
8+
<publisher value="Nictiz"/>
9+
<contact>
10+
<name value="Nictiz"/>
11+
<telecom>
12+
<system value="email"/>
13+
<value value="[email protected]"/>
14+
<use value="work"/>
15+
</telecom>
16+
</contact>
17+
<description value="Scenario 1.x - Receive MedicationData for P. XXX_Schut."/>
18+
<origin>
19+
<extension url="http://fhir.interoplab.eu/fhir/StructureDefinition/Interoplab-CL-ext-SUT">
20+
<valueBoolean value="false"/>
21+
</extension>
22+
<index value="1"/>
23+
<profile>
24+
<system value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>
25+
<code value="FHIR-Client"/>
26+
</profile>
27+
</origin>
28+
<destination>
29+
<extension url="http://fhir.interoplab.eu/fhir/StructureDefinition/Interoplab-CL-ext-SUT">
30+
<valueBoolean value="true"/>
31+
</extension>
32+
<index value="1"/>
33+
<profile>
34+
<system value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
35+
<code value="FHIR-Server"/>
36+
</profile>
37+
</destination>
38+
<fixture id="mgsets-mp-smg-kwal-MA-script1-v30">
39+
<autocreate value="false"/>
40+
<autodelete value="false"/>
41+
<resource>
42+
<reference value="../../_reference/fixtures/mgsets-mp-smg-kwal-MA-script1-v30.json"/>
43+
</resource>
44+
</fixture>
45+
<profile id="Bundle-profile"
46+
value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
47+
<variable>
48+
<name value="T"/>
49+
<defaultValue value="${CURRENTDATE}"/>
50+
<description value="Date that data and queries are expected to be relative to."/>
51+
</variable>
52+
<test id="scenario1-x-receive-meddata">
53+
<name value="Scenario 1.x"/>
54+
<description value="Receive MedicationData in a transaction Bundle"/>
55+
<action>
56+
<operation>
57+
<type>
58+
<system value="http://hl7.org/fhir/restful-interaction"/>
59+
<code value="transaction"/>
60+
</type>
61+
<description value="Test server to handle a Bundle of type transaction."/>
62+
<accept value="json"/>
63+
<contentType value="json"/>
64+
<destination value="1"/>
65+
<encodeRequestUrl value="true"/>
66+
<origin value="1"/>
67+
<requestHeader>
68+
<field value="Prefer"/>
69+
<value value="return=representation"/>
70+
</requestHeader>
71+
<sourceId value="mgsets-mp-smg-kwal-MA-script1-v30"/>
72+
</operation>
73+
</action>
74+
<action>
75+
<assert>
76+
<description value="Confirm that the operation was successful"/>
77+
<operator value="in"/>
78+
<responseCode value="200,201"/>
79+
<stopTestOnFail value="true"/>
80+
<warningOnly value="false"/>
81+
</assert>
82+
</action>
83+
<action>
84+
<assert>
85+
<description value="Confirm that the returned resource type is Bundle."/>
86+
<direction value="response"/>
87+
<resource value="Bundle"/>
88+
<stopTestOnFail value="false"/>
89+
<warningOnly value="false"/>
90+
</assert>
91+
</action>
92+
<action>
93+
<assert>
94+
<description value="Confirm that the returned Bundle type is transaction-response."/>
95+
<direction value="response"/>
96+
<expression value="Bundle.type"/>
97+
<operator value="equals"/>
98+
<stopTestOnFail value="false"/>
99+
<value value="transaction-response"/>
100+
<warningOnly value="false"/>
101+
</assert>
102+
</action>
103+
<action>
104+
<assert>
105+
<description value="Confirm that all returned resources contain an Resource.id except when temporary ids are used in the Bundle. The only time that a resource does not have an id is when it is being submitted to the server using a create operation: https://www.hl7.org/fhir/STU3/resource-definitions.html#Resource.id "/>
106+
<direction value="response"/>
107+
<expression value="Bundle.entry.all( $this.fullUrl.matches('^urn:oid:[0-2](\\.(0|[1-9]\\d*))*$') or $this.fullUrl.matches('^urn:uuid:[A-Fa-f\\d]{8}-[A-Fa-f\\d]{4}-[A-Fa-f\\d]{4}-[A-Fa-f\\d]{4}-[A-Fa-f\\d]{12}$') or $this.resource.id.exists())"/>
108+
<stopTestOnFail value="false"/>
109+
<warningOnly value="false"/>
110+
</assert>
111+
</action>
112+
<action>
113+
<assert>
114+
<description value="Confirm that all returned resources except OperationOutcome and Binary contain a meta.profile tag."/>
115+
<direction value="response"/>
116+
<expression value="Bundle.entry.resource.where(is(OperationOutcome).not()).where(is(Binary).not()).where(meta.profile.empty()).empty()"/>
117+
<stopTestOnFail value="false"/>
118+
<warningOnly value="false"/>
119+
</assert>
120+
</action>
121+
<action>
122+
<assert>
123+
<description value="Confirm that the fullUrl does not disagree with the id in the resource, see http://hl7.org/fhir/stu3/bundle-definitions.html#Bundle.entry.fullUrl"/>
124+
<direction value="response"/>
125+
<expression value="Bundle.entry.where(fullUrl.exists() and resource.id.exists()).all($this.fullUrl.endsWith($this.resource.id))"/>
126+
<stopTestOnFail value="false"/>
127+
<warningOnly value="false"/>
128+
</assert>
129+
</action>
130+
<action>
131+
<assert>
132+
<description value="Confirm that the fullUrl is an absolute URL, an uuid or an oid."/>
133+
<direction value="response"/>
134+
<expression value="Bundle.entry.fullUrl.all( startsWith('http://') or startsWith('https://') or matches('^urn:oid:[0-2](\\.(0|[1-9]\\d*))*$') or matches('^urn:uuid:[A-Fa-f\\d]{8}-[A-Fa-f\\d]{4}-[A-Fa-f\\d]{4}-[A-Fa-f\\d]{4}-[A-Fa-f\\d]{12}$') )"/>
135+
<stopTestOnFail value="false"/>
136+
<warningOnly value="false"/>
137+
</assert>
138+
</action>
139+
<action>
140+
<assert>
141+
<description value="Confirm that the returned Bundle conforms to the base FHIR specification and the resources to the stated profiles in the meta.profile tag."/>
142+
<direction value="response"/>
143+
<stopTestOnFail value="false"/>
144+
<validateProfileId value="Bundle-profile"/>
145+
<warningOnly value="false"/>
146+
</assert>
147+
</action>
148+
<action>
149+
<assert>
150+
<description value="Confirm that all Coding elements contain both a .system and a .code."/>
151+
<direction value="response"/>
152+
<expression value="Bundle.descendants().where($this.is(Coding)).all(system.exists() and code.exists())"/>
153+
<stopTestOnFail value="false"/>
154+
<warningOnly value="false"/>
155+
</assert>
156+
</action>
157+
<action>
158+
<assert>
159+
<description value="Confirm that the OID of the zib valueset is not used for the system of a coding element."/>
160+
<direction value="response"/>
161+
<expression value="Bundle.descendants().where($this.is(coding)).where(system.startsWith('urn:oid:2.16.840.1.113883.2.4.3.11.60.40.2')).exists().not()"/>
162+
<stopTestOnFail value="false"/>
163+
<warningOnly value="false"/>
164+
</assert>
165+
</action>
166+
<action>
167+
<assert>
168+
<description value="Confirm that all CodeableConcept elements contain either a coding.display or a text value if no Coding exists or has an extension (e.g. a nullFlavor or data-absent-reason extension). For more information see https://informatiestandaarden.nictiz.nl/wiki/FHIR:V1.0_FHIR_IG_STU3Use_of_coded_concepts."/>
169+
<direction value="response"/>
170+
<expression value="Bundle.descendants().where($this.is(CodeableConcept)) .all(coding.display.exists() or text.exists() or extension.exists())"/>
171+
<stopTestOnFail value="false"/>
172+
<warningOnly value="false"/>
173+
</assert>
174+
</action>
175+
<action>
176+
<assert>
177+
<description value="Confirm that all References have a display value, see https://informatiestandaarden.nictiz.nl/wiki/FHIR:V1.0_FHIR_IG_STU3#Use_of_the_reference_datatype."/>
178+
<direction value="response"/>
179+
<expression value="Bundle.descendants().where($this.is(Reference)).all(display.exists() or extension.where(url = 'http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists() or extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-nullFlavor').exists())"/>
180+
<stopTestOnFail value="false"/>
181+
<warningOnly value="false"/>
182+
</assert>
183+
</action>
184+
<action>
185+
<assert>
186+
<description value="Confirm that all Identifiers have both a .system and a .value. In rare cases where a general category of identifiers can be used, .type can replace .system. Edge cases for both .system and .type to be unknown are not applicable to Nictiz. For more information, see https://www.hl7.org/fhir/stu3/datatypes.html#Identifier."/>
187+
<direction value="response"/>
188+
<expression value="Bundle.descendants().where($this.is(Identifier)).all((system.exists() or type.exists()) and value.exists())"/>
189+
<stopTestOnFail value="false"/>
190+
<warningOnly value="false"/>
191+
</assert>
192+
</action>
193+
<action>
194+
<assert>
195+
<description value="Confirm that the request Bundle contains 3 MedicationRequest resource(s). "/>
196+
<direction value="request"/>
197+
<expression value="Bundle.entry.where(resource.is(MedicationRequest)).count() = 3"/>
198+
<stopTestOnFail value="false"/>
199+
<warningOnly value="false"/>
200+
</assert>
201+
</action>
202+
<action>
203+
<assert>
204+
<description value="Confirm that the request Bundle contains 1 Medication resource(s). "/>
205+
<direction value="request"/>
206+
<expression value="Bundle.entry.where(resource.is(Medication)).count() = 1"/>
207+
<stopTestOnFail value="false"/>
208+
<warningOnly value="false"/>
209+
</assert>
210+
</action>
211+
</test>
212+
</TestScript>

0 commit comments

Comments
 (0)