{
"description": null,
"_filename": "example/TestScript-Test94-Ignore-Source-Warning.json",
"package_name": "ch.fhir.ig.ch",
"date": "2024-06-17T08:47:24+00:00",
"publisher": "Federal Office of Public Health FOPH",
"jurisdiction": [ {
"coding": [ {
"code": "CHE",
"system": "urn:iso:std:iso:3166"
} ]
} ],
"name": "Test94IgnoreSourceWarning",
"copyright": "CC0-1.0",
"type": null,
"experimental": null,
"resourceType": "TestScript",
"title": null,
"package_version": "elm-1.3.1",
"status": "active",
"id": "126ecca2-0e2a-4dbf-8db7-caa1a4ae7ce8",
"kind": null,
"url": "http://fhir.ch/ig/ch-elm/TestScript/Test94-Ignore-Source-Warning",
"fixture": [ {
"id": "inputdata",
"resource": {
"reference": "DocumentReference/1-DocumentReference"
},
"autocreate": false,
"autodelete": false
} ],
"version": "1.3.1",
"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": "Test94",
"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('Binding for path (.+) has no source, so can\\'t be checked')).count() = 0",
"description": "Check slicing fails",
"warningOnly": false
}
} ],
"description": "Test script to verify that warning Binding for path (.+) has no source, so can't be checked"
} ]
}