| Package | fhir.erezept.validator |
| Resource Type | TestScript |
| Id | validate-e-rezept-warning-code-invalid |
| 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-code-invalid |
| URL | https://example.org/fhir/TestScript/validate-e-rezept-warning-code-invalid |
| Status | active |
| Name | ValidateERezept_WARNING_PatientIntolerant |
| Realm | us |
| Authority | hl7 |
| Description | Testet Fehlerverhalten bei unbekanntem ATC Code. |
No resources found
No resources found
No narrative content found in resource
{
"resourceType": "TestScript",
"id": "validate-e-rezept-warning-code-invalid",
"url": "https://example.org/fhir/TestScript/validate-e-rezept-warning-code-invalid",
"name": "ValidateERezept_WARNING_PatientIntolerant",
"status": "active",
"description": "Testet Fehlerverhalten bei unbekanntem ATC Code.",
"fixture": [
{
"id": "example-request-009",
"autocreate": false,
"autodelete": false,
"resource": {
"reference": "/examples/Example_Request_009_unknown_ATC_Code_in_medication_request.json"
}
},
{
"id": "example-request-010",
"autocreate": false,
"autodelete": false,
"resource": {
"reference": "/examples/Example_Request_010_unknown_ATC_Code_in_allergy_intolerance.json"
}
}
],
"test": [
{
"name": "009 - Unbekannter ATC Code in medication request.",
"action": [
{
"operation": {
"type": {
"code": "operation"
},
"description": "Unbekannter ATC Code in medication request.",
"accept": "application/fhir+json",
"contentType": "application/fhir+json",
"sourceId": "example-request-009",
"params": "$validate-e-rezept",
"encodeRequestUrl": true
}
},
{
"assert": {
"description": "Response ist ein OperationOutcome",
"resource": "OperationOutcome",
"warningOnly": false
}
},
{
"assert": {
"description": "Response ist 'unprocessable'",
"response": "unprocessable",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Severity ist 'error'",
"path": "issue[0].severity",
"operator": "equals",
"value": "error",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Code ist 'invalid'",
"path": "issue[0].code",
"operator": "equals",
"value": "invalid",
"warningOnly": false
}
},
{
"assert": {
"description": "Details Textabgleich",
"path": "issue[0].details.text",
"operator": "equals",
"value": "Unknown code 'http://www.whocc.no/atc#XXX'",
"warningOnly": false
}
}
]
},
{
"name": "010 - Unbekannter ATC Code in allergyIntolerance.",
"action": [
{
"operation": {
"type": {
"code": "operation"
},
"description": "Unbekannter ATC Code in allergyIntolerance.",
"accept": "application/fhir+json",
"contentType": "application/fhir+json",
"sourceId": "example-request-010",
"params": "$validate-e-rezept",
"encodeRequestUrl": true
}
},
{
"assert": {
"description": "Response ist ein OperationOutcome",
"resource": "OperationOutcome",
"warningOnly": false
}
},
{
"assert": {
"description": "Response ist 'unprocessable'",
"response": "unprocessable",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Severity ist 'error'",
"path": "issue[0].severity",
"operator": "equals",
"value": "error",
"warningOnly": false
}
},
{
"assert": {
"description": "Issue Code ist 'invalid'",
"path": "issue[0].code",
"operator": "equals",
"value": "invalid",
"warningOnly": false
}
},
{
"assert": {
"description": "Details Textabgleich",
"path": "issue[0].details.text",
"operator": "equals",
"value": "Unknown code 'http://www.whocc.no/atc#XXX'",
"warningOnly": false
}
}
]
}
]
}