{ "description": "Testet die Validierungsoperation $validate-e-rezept mit einem gültigen E-Rezept-Bundle, wobei der Patient eine Allergy gegen das verschrieben Medikament hat.", "_filename": "TestScript-validate-e-rezept-warning-business-rule.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.4.8", "status": "active", "id": "db85ee30-da2a-4ffa-89be-9daf608975a6", "kind": null, "url": "https://example.org/fhir/TestScript/validate-e-rezept-warning-business-rule", "fixture": [ { "id": "example-request-003", "resource": { "reference": "/examples/Example_Request_003_minimum_incl_allergyIntolerance_match.json" }, "autocreate": false, "autodelete": false }, { "id": "example-request-006", "resource": { "reference": "/examples/Example_Request_006_incl_multiple_allergyIntolerance_multiple_medications_multiple_matches.json" }, "autocreate": false, "autodelete": false } ], "version": null, "test": [ { "name": "003 - Validiere gültiges E-Rezept-Bundle, wobei der Patient eine Allergy gegen das verschrieben Medikament hat.", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-003", "contentType": "application/fhir+json", "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle aus", "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 'error'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "business-rule", "operator": "equals", "description": "Issue Code ist 'business-rule'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "Verschreibung unzulässig: Patient hat Allergie gegen folgende verschriebene Medikamente: ATC Code:", "operator": "equals", "description": "Details Textabgleich", "warningOnly": false } } ] }, { "name": "006 - Validiere gültiges E-Rezept-Bundle, wobei der Patient mehrere Allergy gegen mehrere verschriebene Medikamente hat.", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-006", "contentType": "application/fhir+json", "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle aus", "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 'error'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "business-rule", "operator": "equals", "description": "Issue Code ist 'business-rule'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "Verschreibung unzulässig: Patient hat Allergie gegen folgende verschriebene Medikamente: ATC Code: ", "operator": "equals", "description": "Details Textabgleich", "warningOnly": false } } ] } ] }