{ "description": "Testet die Validierungsoperation $validate-e-rezept mit einem ungültigen E-Rezept-Bundle.", "_filename": "TestScript-validate-e-rezept-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.3.7", "status": "active", "id": "dc331cd5-4b67-44b0-99d6-09f369f4db91", "kind": null, "url": "https://example.org/fhir/TestScript/validate-e-rezept-error-structure", "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.", "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.", "encodeRequestUrl": true } }, { "assert": { "resource": "OperationOutcome", "description": "Response ist ein OperationOutcome", "warningOnly": false } }, { "assert": { "response": "unprocessable", "description": "Response ist 'unprocessable'", "warningOnly": false } }, { "assert": { "path": "issue[0].severity", "value": "error", "operator": "equals", "description": "Issue Severity ist 'error'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "invalid", "operator": "equals", "description": "Issue Code ist 'invalid'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "An Array needs to have at least one element.", "operator": "contains", "description": "Details Textabgleich", "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": "unprocessable", "description": "Response ist 'unprocessable'", "warningOnly": false } }, { "assert": { "path": "issue[0].severity", "value": "error", "operator": "equals", "description": "Issue Severity ist 'error'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "invalid", "operator": "equals", "description": "Issue Code ist 'invalid'", "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 Textabgleich", "warningOnly": false } } ] } ] }