{
"description": null,
"_filename": "example/TestScript-Test96-Ignore-Slice-Patient-Eu-Lab-Information.json",
"package_name": "ch.fhir.ig.ch-elm",
"date": "2025-11-25T09:47:06+00:00",
"publisher": "Federal Office of Public Health FOPH",
"jurisdiction": [ {
"coding": [ {
"code": "CH",
"system": "urn:iso:std:iso:3166"
} ]
} ],
"name": "Test96IgnoreObservationInterpretationCodesInformation",
"copyright": "CC0-1.0",
"type": null,
"experimental": null,
"resourceType": "TestScript",
"title": null,
"package_version": "1.13.0",
"status": "active",
"id": "11caa730-1017-4ab2-bec9-3b01811e8e73",
"kind": null,
"url": "http://fhir.ch/ig/ch-elm/TestScript/Test96-Ignore-Slice-Patient-Eu-Lab-Information",
"fixture": [ {
"id": "inputdata",
"resource": {
"reference": "DocumentReference/Publish-2Doc-ChlamydiaTrachomatis-Vct"
},
"autocreate": false,
"autodelete": false
} ],
"version": "1.13.0",
"contact": [ {
"name": "Federal Office of Public Health FOPH",
"telecom": [ {
"value": "https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html",
"system": "url"
} ]
} ],
"test": [ {
"name": "Test96",
"action": [ {
"operation": {
"type": {
"code": "validate",
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
},
"params": "profile=http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference",
"sourceId": "inputdata",
"contentType": "application/fhir+json",
"description": "validate",
"encodeRequestUrl": true
}
}, {
"assert": {
"direction": "response",
"description": "Confirm that the returned HTTP status is 200(OK).",
"warningOnly": false,
"responseCode": "200"
}
}, {
"assert": {
"value": "true",
"expression": "is(FHIR.OperationOutcome)",
"description": "Confirm that the returned resource is an OperationOutcome.",
"warningOnly": false
}
}, {
"assert": {
"value": "true",
"expression": "issue.where(severity='error' or severity='fatal').count()=0",
"description": "Confirm that we have no errors.",
"warningOnly": false
}
}, {
"assert": {
"value": "true",
"expression": "issue.where(severity='information' and diagnostics.matches('This element does not match any known slice defined in the profile http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab(.+)')).count() = 0",
"description": "Check information ignored",
"warningOnly": false
}
} ],
"description": "Test script to verify that Information This element does not match any known slice defined in the profile http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab is ignored"
} ]
}