CH ELM (R4)
1.7.0-ci-build - ci-build Switzerland flag

CH ELM (R4), published by Federal Office of Public Health FOPH. This guide is not an authorized publication; it is the continuous build for version 1.7.0-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/ahdis/ch-elm/ and changes regularly. See the Directory of published versions

: Test92 - Warning for Ber Uid and Gln - JSON Representation

Active as of 2024-11-15

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "Test92-WarningBerUidGln",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript Test92-WarningBerUidGln</b></p><a name=\"Test92-WarningBerUidGln\"> </a><a name=\"hcTest92-WarningBerUidGln\"> </a><a name=\"Test92-WarningBerUidGln-en-US\"> </a><p><b>url</b>: <a href=\"TestScript-Test92-WarningBerUidGln.html\">TestScript Test92WarningBerUidGln</a></p><p><b>version</b>: 1.7.0-ci-build</p><p><b>name</b>: Test92WarningBerUidGln</p><p><b>status</b>: Active</p><p><b>date</b>: 2024-11-15 08:23:17+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>: <span title=\"Codes:{urn:iso:std:iso:3166 CHE}\">Switzerland</span></p><p><b>copyright</b>: </p><div><p>CC0-1.0</p>\n</div><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: 12212 chars (base64)</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><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-validate\">Test script operation code validate</a>: $validate</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>"
  },
  "url" : "http://fhir.ch/ig/ch-elm/TestScript/Test92-WarningBerUidGln",
  "version" : "1.7.0-ci-build",
  "name" : "Test92WarningBerUidGln",
  "status" : "active",
  "date" : "2024-11-15T08:23:17+00:00",
  "publisher" : "Federal Office of Public Health FOPH",
  "contact" : [
    {
      "name" : "Federal Office of Public Health FOPH",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html"
        }
      ]
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "CHE"
        }
      ]
    }
  ],
  "copyright" : "CC0-1.0",
  "fixture" : [
    {
      "id" : "inputdata",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        🔗 "reference" : "Binary/Test92-Bundle-WarningBerUidGln"
      }
    }
  ],
  "test" : [
    {
      "name" : "Test92",
      "description" : "Test92: Verify that warnings for incorrect BER, UID and GLN are raised",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "validate"
            },
            "description" : "validate",
            "contentType" : "application/fhir+json",
            "encodeRequestUrl" : true,
            "params" : "profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict",
            "sourceId" : "inputdata"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is 200(OK).",
            "direction" : "response",
            "responseCode" : "200",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned resource is an OperationOutcome.",
            "expression" : "is(FHIR.OperationOutcome)",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that we have no errors.",
            "expression" : "issue.where(severity='error' or severity='fatal').count()=0",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check Constraint failed: gln-modulus-10",
            "expression" : "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-modulus-10:')).count() = 1",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check Constraint failed: gln-startswith76",
            "expression" : "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-startswith76:')).count() = 1",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check Constraint failed: ber-length",
            "expression" : "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-length')).count() = 1",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check Constraint failed: ber-modulus-11",
            "expression" : "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-modulus-11')).count() = 1",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check Constraint failed: uidb-length",
            "expression" : "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-length')).count() = 1",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check Constraint failed: uidb-modulus-11",
            "expression" : "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-modulus-11')).count() = 1",
            "value" : "true",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}