CH ELM (R4)
1.3.1 - release
This page is part of the Observations of notifiable communicable infectious diseases (v1.3.1: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Active as of 2024-06-17 |
<TestScript xmlns="http://hl7.org/fhir">
<id value="Test92-WarningBerUidGln"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: TestScript </b><a name="Test92-WarningBerUidGln"> </a><a name="hcTest92-WarningBerUidGln"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">ResourceTestScript "Test92-WarningBerUidGln" </p></div><p><b>url</b>: <code>http://fhir.ch/ig/ch-elm/TestScript/Test92-WarningBerUidGln</code></p><p><b>version</b>: 1.3.1</p><p><b>name</b>: Test92WarningBerUidGln</p><p><b>status</b>: active</p><p><b>date</b>: 2024-06-17 08:47:24+0000</p><p><b>publisher</b>: Federal Office of Public Health FOPH</p><p><b>contact</b>: Federal Office of Public Health FOPH: <a href="https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html">https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html</a></p><p><b>jurisdiction</b>: Switzerland <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.0.0/CodeSystem-ISO3166Part1.html">ISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code</a>#CHE)</span></p><p><b>copyright</b>: CC0-1.0</p><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>inputdata</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href="Binary-Test92-Bundle-WarningBerUidGln.html">Binary/Test92-Bundle-WarningBerUidGln</a></p></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Test92</p><p><b>description</b>: Test92: Verify that warnings for incorrect BER, UID and GLN are raised</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Description</b></td><td><b>ContentType</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>SourceId</b></td></tr><tr><td style="display: none">*</td><td>$validate (Details: Test script operation code code validate = ' $validate ', stated as ' null ')</td><td>validate</td><td>application/fhir+json</td><td>true</td><td>profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict</td><td>inputdata</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned HTTP status is 200(OK).</td><td>response</td><td>200</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned resource is an OperationOutcome.</td><td>is(FHIR.OperationOutcome)</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that we have no errors.</td><td>issue.where(severity='error' or severity='fatal').count()=0</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Check Constraint failed: gln-modulus-10</td><td>issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-modulus-10:')).count() = 1</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Check Constraint failed: gln-startswith76</td><td>issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-startswith76:')).count() = 1</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Check Constraint failed: ber-length</td><td>issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-length')).count() = 1</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Check Constraint failed: ber-modulus-11</td><td>issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-modulus-11')).count() = 1</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Check Constraint failed: uidb-length</td><td>issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-length')).count() = 1</td><td>true</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Check Constraint failed: uidb-modulus-11</td><td>issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-modulus-11')).count() = 1</td><td>true</td><td>false</td></tr></table></blockquote></blockquote></div>
</text>
<url value="http://fhir.ch/ig/ch-elm/TestScript/Test92-WarningBerUidGln"/>
<version value="1.3.1"/>
<name value="Test92WarningBerUidGln"/>
<status value="active"/>
<date value="2024-06-17T08:47:24+00:00"/>
<publisher value="Federal Office of Public Health FOPH"/>
<contact>
<name value="Federal Office of Public Health FOPH"/>
<telecom>
<system value="url"/>
<value
value="https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html"/>
</telecom>
</contact>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="CHE"/>
</coding>
</jurisdiction>
<copyright value="CC0-1.0"/>
<fixture id="inputdata">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>🔗
<reference value="Binary/Test92-Bundle-WarningBerUidGln"/>
</resource>
</fixture>
<test>
<name value="Test92"/>
<description
value="Test92: Verify that warnings for incorrect BER, UID and GLN are raised"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="validate"/>
</type>
<description value="validate"/>
<contentType value="application/fhir+json"/>
<encodeRequestUrl value="true"/>
<params
value="profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict"/>
<sourceId value="inputdata"/>
</operation>
</action>
<action>
<assert>
<description
value="Confirm that the returned HTTP status is 200(OK)."/>
<direction value="response"/>
<responseCode value="200"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description
value="Confirm that the returned resource is an OperationOutcome."/>
<expression value="is(FHIR.OperationOutcome)"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that we have no errors."/>
<expression
value="issue.where(severity='error' or severity='fatal').count()=0"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Check Constraint failed: gln-modulus-10"/>
<expression
value="issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-modulus-10:')).count() = 1"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Check Constraint failed: gln-startswith76"/>
<expression
value="issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-startswith76:')).count() = 1"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Check Constraint failed: ber-length"/>
<expression
value="issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-length')).count() = 1"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Check Constraint failed: ber-modulus-11"/>
<expression
value="issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-modulus-11')).count() = 1"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Check Constraint failed: uidb-length"/>
<expression
value="issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-length')).count() = 1"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Check Constraint failed: uidb-modulus-11"/>
<expression
value="issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-modulus-11')).count() = 1"/>
<value value="true"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>