CH ELM (R4)
1.16.0 - 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.16.0 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

: Test93 Error if full name is provided by Influenca (should be initials)

Active as of 2026-10-22

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "Test93-Error-FullName-Influenca",
  "language" : "en",
  "url" : "http://fhir.ch/ig/ch-elm/TestScript/Test93-Error-FullName-Influenca",
  "version" : "1.16.0",
  "name" : "Test93ErrorFullNameInfluenca",
  "status" : "active",
  "date" : "2026-10-22T06:32:21+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"
        }
      ]
    }
  ],
  "description" : "Test script to verify error if full name is provided by Influenca (must be initials)",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "CH"
        }
      ]
    }
  ],
  "copyright" : "CC0-1.0",
  "fixture" : [
    {
      "id" : "inputdata",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        🔗 "reference" : "Binary/Test93-DocumentReference-Error-FullName-Influenca"
      }
    }
  ],
  "test" : [
    {
      "name" : "Test93",
      "description" : "Test script to verify error if full name is provided by Influenca (must be initials)",
      "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/PublishDocumentReference",
            "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 at least one error",
            "expression" : "issue.where(severity='error' or severity='fatal').count()>0",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Check slicing fails",
            "expression" : "issue.where(severity='error' and diagnostics.startsWith('Slice \\'DocumentReference.contained:document\\': a matching slice is required, but not found')).count() > 0",
            "value" : "true",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}