{ "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.5", "status": "active", "id": "f283ad2b-8041-484a-9322-29a6153b9de1", "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 } ], "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 } } ] } ] }