{ "description": null, "_filename": "example/TestScript-Test95-Ignore-Observation-Interpretation-Codes-Warning.json", "package_name": "ch.fhir.ig.ch-elm", "date": "2024-10-31T11:08:34+00:00", "publisher": "Federal Office of Public Health FOPH", "jurisdiction": [ { "coding": [ { "code": "CHE", "system": "urn:iso:std:iso:3166" } ] } ], "name": "Test95IgnoreObservationInterpretationCodesWarning", "copyright": "CC0-1.0", "type": null, "experimental": null, "resourceType": "TestScript", "title": null, "package_version": "1.6.0", "status": "active", "id": "419428df-b571-4e20-86a8-adbbee7e9e6d", "kind": null, "url": "http://fhir.ch/ig/ch-elm/TestScript/Test95-Ignore-Observation-Interpretation-Codes-Warning", "fixture": [ { "id": "inputdata", "resource": { "reference": "Bundle/15Doc-Measles-Seroconversion" }, "autocreate": false, "autodelete": false } ], "version": "1.6.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": "Test95", "action": [ { "operation": { "type": { "code": "validate", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "params": "profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict", "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='warning' and diagnostics.matches('None of the codings provided are in the value set \\'Observation Interpretation Codes\\'(.+)')).count() = 0", "description": "Check warning ignored", "warningOnly": false } } ], "description": "Test script to verify that warning None of the codings provided are in the value set 'Observation Interpretation Codes' is ignored" } ] }