{ "description": "Testet die Validierungsoperation $validate-e-rezept mit einem gültigen E-Rezept-Bundle.", "_filename": "Test_ValidateERezept_OK.json", "package_name": "fhir.erezept.validator", "date": null, "publisher": null, "name": "ValidateERezept_OK", "type": null, "experimental": null, "resourceType": "TestScript", "title": null, "package_version": "0.2.8", "status": "active", "id": "aa11a0e0-9d24-4ba6-8f5d-fc2a7f125d4e", "kind": null, "url": "https://example.org/fhir/TestScript/validate-e-rezept-ok", "fixture": [ { "id": "example-request-001", "resource": { "reference": "/examples/Example_Request_001_minimum_excl_allergyIntolerance.json" }, "autocreate": false, "autodelete": false }, { "id": "example-request-002", "resource": { "reference": "/examples/Example_Request_002_minimum_incl_allergyIntolerance_no_match.json" }, "autocreate": false, "autodelete": false }, { "id": "example-request-004", "resource": { "reference": "/examples/Example_Request_004_incl_multiple_allergyIntolerance_no_match.json" }, "autocreate": false, "autodelete": false }, { "id": "example-request-005", "resource": { "reference": "/examples/Example_Request_005_incl_multiple_allergyIntolerance_multiple_medications_no_match.json" }, "autocreate": false, "autodelete": false } ], "version": null, "test": [ { "name": "Validiere gültiges E-Rezept-Bundle (ohne AllergyIntolerance)", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-001", "contentType": "application/fhir+json", "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (ohne AllergyIntolerance) 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": "information", "operator": "equals", "description": "Issue Severity ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "informational", "operator": "equals", "description": "Issue Code ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "okay", "operator": "equals", "description": "Details Text ist 'OK'", "warningOnly": false } } ] }, { "name": "Validiere gültiges E-Rezept-Bundle (mit AllergyIntolerance)", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-002", "contentType": "application/fhir+json", "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (mit AllergyIntolerance) 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": "information", "operator": "equals", "description": "Issue Severity ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "informational", "operator": "equals", "description": "Issue Code ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "okay", "operator": "equals", "description": "Details Text ist 'OK'", "warningOnly": false } } ] }, { "name": "Validiere gültiges E-Rezept-Bundle (mit mehreren AllergyIntolerances)", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-004", "contentType": "application/fhir+json", "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (mit mehreren AllergyIntolerances) 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": "information", "operator": "equals", "description": "Issue Severity ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "informational", "operator": "equals", "description": "Issue Code ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "okay", "operator": "equals", "description": "Details Text ist 'OK'", "warningOnly": false } } ] }, { "name": "Validiere gültiges E-Rezept-Bundle (mit mehreren AllergyIntolerances und mehreren verschriebene Medikamenten)", "action": [ { "operation": { "type": { "code": "operation" }, "accept": "application/fhir+json", "params": "$validate-e-rezept", "sourceId": "example-request-005", "contentType": "application/fhir+json", "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (mit mehreren AllergyIntolerances und mehreren verschriebenen Medikamenten) 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": "information", "operator": "equals", "description": "Issue Severity ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].code", "value": "informational", "operator": "equals", "description": "Issue Code ist 'information'", "warningOnly": false } }, { "assert": { "path": "issue[0].details.text", "value": "okay", "operator": "equals", "description": "Details Text ist 'OK'", "warningOnly": false } } ] } ] }