Skip to content

Commit f1449e9

Browse files
committed
Refactor content assertions for functionalMentalStatus and Medicaldevicestatement
1 parent 43468de commit f1449e9

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/BgZ-MSZ-2-0/Test/Serving-XIS/bgz-msz-xis-1-2-serve-bgz.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,14 @@
8989
<nts:include value="assert.response.numResources" scope="common"
9090
resource="Observation" count="2" nts:in-targets="#default"/>
9191

92-
<nts:contentAsserts href="resources/BgZ-FuncMentStat-msz-da9d7592-6aff-11ec-0000-2.xml"
93-
description="contains .code.coding.code = '401049002'" discriminator="code.where(coding.where(code = '401049002'))" nts:in-targets="CheckContent"/>
94-
<nts:contentAsserts href="resources/BgZ-FuncMentStat-msz-6fd26405-6b39-11ec-0000-2.xml"
95-
description="contains .code.coding.code = '47078008'" discriminator="code.where(coding.where(code = '47078008'))" nts:in-targets="CheckContent"/>
92+
<nts:contentAsserts href="resources/BgZ-FuncMentStat-msz-6fd26405-6b39-11ec-0000-2.xml"
93+
description="contains .code.coding.code = '401049002'"
94+
discriminator="code.where(coding.where(code = '401049002'))"
95+
nts:in-targets="CheckContent" />
96+
<nts:contentAsserts href="resources/BgZ-FuncMentStat-msz-da9d7592-6aff-11ec-0000-2.xml"
97+
description="contains .code.coding.code = '47078008'"
98+
discriminator="code.where(coding.where(code = '47078008'))"
99+
nts:in-targets="CheckContent" />
96100
</test>
97101

98102
<test id="07-serve-Problem">
@@ -292,10 +296,10 @@
292296
description="contains .device with reference to Device with type.coding.code = '183125006'" discriminator="device.resolve().type.where(coding.where(code = '183125006'))" nts:in-targets="CheckContent"/>
293297
<nts:contentAsserts href="resources/zib-MedicalDevice-msz-198d0d8f-6ade-11ec-0000-2.xml"
294298
description="contains .device with reference to Device with type.coding.code = '702171001'" discriminator="device.resolve().type.where(coding.where(code = '702171001'))" nts:in-targets="CheckContent"/>
295-
<nts:contentAsserts href="resources/zib-MedicalDevice-msz-c6f4c86e-6ad3-11ec-0000-2.xml"
296-
description="contains .device with reference to Device with type.coding.code = '700654009'" discriminator="device.resolve().type.where(coding.where(code = '860586000'))" nts:in-targets="CheckContent"/>
297-
<nts:contentAsserts href="resources/zib-MedicalDevice-msz-6647560f-6b3b-11ec-0000-2.xml"
298-
description="contains .device with reference to Device with type.coding.code = '860586000'" discriminator="device.resolve().type.where(coding.where(code = '466193006'))" nts:in-targets="CheckContent"/>
299+
<nts:contentAsserts href="resources/zib-MedicalDevice-msz-c6f4c86e-6ad3-11ec-0000-2.xml"
300+
description="contains .device with reference to Device with type.coding.code = '700654009'" discriminator="device.resolve().type.where(coding.where(code = '700654009'))" nts:in-targets="CheckContent" />
301+
<nts:contentAsserts href="resources/zib-MedicalDevice-msz-6647560f-6b3b-11ec-0000-2.xml"
302+
description="contains .device with reference to Device with type.coding.code = '860586000'" discriminator="device.resolve().type.where(coding.where(code = '860586000'))" nts:in-targets="CheckContent" />
299303
<nts:contentAsserts href="resources/zib-MedicalDeviceProduct-msz-9ccc0819-6ac9-11ec-0000-2.xml"
300304
description="contains .type.coding.code = '183125006'" discriminator="type.where(coding.where(code = '183125006'))" nts:in-targets="CheckContent"/>
301305
<nts:contentAsserts href="resources/zib-MedicalDeviceProduct-msz-198d0d8f-6ade-11ec-0000-2.xml"

0 commit comments

Comments
 (0)