{ "description": "Testet die Validierungsoperation $validate-e-rezept mit einem ungültigen E-Rezept-Bundle.", "_filename": "Test_ValidateERezept_ERROR_structure.json", "package_name": "fhir.erezept.validator", "date": null, "publisher": null, "name": "ValidateERezept_WARNING_PatientIntolerant", "type": null, "experimental": null, "resourceType": "TestScript", "title": null, "package_version": "0.2.8", "status": "active", "id": "b307ae4d-3319-44d7-ba6b-61ff0d726381", "kind": null, "url": "https://example.org/fhir/TestScript/validate-e-rezept-ok", "fixture": [ { "id": "example-request-007", "resource": { "reference": "/examples/Example_Request_007_incl_multiple_allergyIntolerance_no_medications.json" }, "autocreate": false, "autodelete": false }, { "id": "example-request-008", "resource": { "reference": "/examples/Example_Request_008_unknown_codeSystem.json" }, "autocreate": false, "autodelete": false } ], "version": null, "test": [ { "name": "Rezept enthält kein Medikament. D.h. es ist ein leeres Array.", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-007", "contentType": "application/fhir+json", "description": "Rezept enthält kein Medikament. D.h. es ist ein leeres Array.", "encodeRequestUrl": true } }, { "assert": { "resource": "OperationOutcome", "description": "Response ist ein OperationOutcome", "warningOnly": false } }, { "assert": { "response": "okay", "description": "Response ist 'okay'", "warningOnly": false } }, { "assert": { "path": "issue[0].severity", "value": "error", "operator": "equals", "description": "Issue Severity ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "structure", "operator": "equals", "description": "Issue Code ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "An Array needs to have at least one element.", "operator": "contains", "description": "Details Text abgleich", "warningOnly": false } } ] }, { "name": "Es ist ein unbekanntes CodeSystem angegeben.", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-008", "contentType": "application/fhir+json", "description": "Es ist ein unbekanntes CodeSystem angegeben.", "encodeRequestUrl": true } }, { "assert": { "resource": "OperationOutcome", "description": "Response ist ein OperationOutcome", "warningOnly": false } }, { "assert": { "response": "okay", "description": "Response ist 'okay'", "warningOnly": false } }, { "assert": { "path": "issue[0].severity", "value": "error", "operator": "equals", "description": "Issue Severity ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "structure", "operator": "equals", "description": "Issue Code ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "Value 'http://snomed.info/sct' is not exactly equal to fixed value 'http://fhir.de/CodeSystem/bfarm/atc'.", "operator": "contains", "description": "Details Text abgleich", "warningOnly": false } } ] } ] }