| Package | fhir.erezept.validator |
| Resource Type | TestScript |
| Id | validate-e-rezept-warning-business-rule |
| FHIR Version | R4 |
| Source | https://simplifier.net/resolve?scope=fhir.erezept.validator@0.4.9&canonical=https://example.org/fhir/TestScript/validate-e-rezept-warning-business-rule |
| URL | https://example.org/fhir/TestScript/validate-e-rezept-warning-business-rule |
| Status | active |
| Name | ValidateERezept_WARNING_PatientIntolerant |
| Realm | us |
| Authority | hl7 |
| Description | Testet die Validierungsoperation $validate-e-rezept mit einem gültigen E-Rezept-Bundle, wobei der Patient eine Allergy gegen das verschrieben Medikament hat. |
No resources found
No resources found
No narrative content found in resource
{
"resourceType": "TestScript",
"id": "validate-e-rezept-warning-business-rule",
"url": "https://example.org/fhir/TestScript/validate-e-rezept-warning-business-rule",
"name": "ValidateERezept_WARNING_PatientIntolerant",
"status": "active",
"description": "Testet die Validierungsoperation $validate-e-rezept mit einem gültigen E-Rezept-Bundle, wobei der Patient eine Allergy gegen das verschrieben Medikament hat.",
"fixture": [
{
"id": "example-request-003",
"autocreate": false,
"autodelete": false,
"resource": {
"reference": "/examples/Example_Request_003_minimum_incl_allergyIntolerance_match.json"
}
},
{
"id": "example-request-006",
"autocreate": false,
"autodelete": false,
"resource": {
"reference": "/examples/Example_Request_006_incl_multiple_allergyIntolerance_multiple_medications_multiple_matches.json"
}
}
],
"test": [
{
"name": "003 - Validiere gültiges E-Rezept-Bundle, wobei der Patient eine Allergy gegen das verschrieben Medikament hat.",
"action": [
{
"operation": {
"type": {
"code": "operation"
},
"description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle aus",
"accept": "application/fhir+json",
"contentType": "application/fhir+json",
"sourceId": "example-request-003",
"params": "$validate-e-rezept",
"encodeRequestUrl": true
}
},
{
"assert": {
"description": "Response ist ein OperationOutcome",
"resource": "OperationOutcome",
"warningOnly": false
}
},
{
"assert": {
"description": "Response ist 'okay'",
"response": "okay",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Severity ist 'error'",
"path": "issue[0].severity",
"operator": "equals",
"value": "error",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Code ist 'business-rule'",
"path": "issue[0].code",
"operator": "equals",
"value": "business-rule",
"warningOnly": false
}
},
{
"assert": {
"description": "Details Textabgleich",
"path": "issue[0].details.text",
"operator": "equals",
"value": "Verschreibung unzulässig: Patient hat Allergie gegen folgende verschriebene Medikamente: ATC Code: <ATC Code>",
"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"
},
"description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle aus",
"accept": "application/fhir+json",
"contentType": "application/fhir+json",
"sourceId": "example-request-006",
"params": "$validate-e-rezept",
"encodeRequestUrl": true
}
},
{
"assert": {
"description": "Response ist ein OperationOutcome",
"resource": "OperationOutcome",
"warningOnly": false
}
},
{
"assert": {
"description": "Response ist 'okay'",
"response": "okay",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Severity ist 'error'",
"path": "issue[0].severity",
"operator": "equals",
"value": "error",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Code ist 'business-rule'",
"path": "issue[0].code",
"operator": "equals",
"value": "business-rule",
"warningOnly": false
}
},
{
"assert": {
"description": "Details Textabgleich",
"path": "issue[0].details.text",
"operator": "equals",
"value": "Verschreibung unzulässig: Patient hat Allergie gegen folgende verschriebene Medikamente: ATC Code: <ATC Code>",
"warningOnly": false
}
}
]
}
]
}