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
| Active as of 2026-10-22 |
{
"resourceType" : "TestScript",
"id" : "Test101-InvalidCountryCode",
"language" : "en",
"url" : "http://fhir.ch/ig/ch-elm/TestScript/Test101-InvalidCountryCode",
"version" : "1.16.0",
"name" : "Test101InvalidCountryCode",
"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" : "Test101: Verify that XX raises an error for invalid country code",
"jurisdiction" : [
{
"coding" : [
{
"system" : "urn:iso:std:iso:3166",
"code" : "CH"
}
]
}
],
"copyright" : "CC0-1.0",
"fixture" : [
{
"id" : "inputdata",
"autocreate" : false,
"autodelete" : false,
"resource" : {
🔗 "reference" : "Binary/Test101-Bundle-InvalidCountryCode"
}
}
],
"test" : [
{
"name" : "Test101InvalidCountryCode",
"description" : "Test101: Verify that XX raises an error for invalid country code",
"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 errors.",
"expression" : "issue.where(severity='error' or severity='fatal').count()>0",
"value" : "true",
"warningOnly" : false
}
}
]
}
]
}