FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: TestScript/validate-e-rezept-warning-business-rule

Packagefhir.erezept.validator
Resource TypeTestScript
Idvalidate-e-rezept-warning-business-rule
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=fhir.erezept.validator@0.4.9&canonical=https://example.org/fhir/TestScript/validate-e-rezept-warning-business-rule
URLhttps://example.org/fhir/TestScript/validate-e-rezept-warning-business-rule
Statusactive
NameValidateERezept_WARNING_PatientIntolerant
Realmus
Authorityhl7
DescriptionTestet die Validierungsoperation $validate-e-rezept mit einem gültigen E-Rezept-Bundle, wobei der Patient eine Allergy gegen das verschrieben Medikament hat.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

No narrative content found in resource


Source

{
  "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
          }
        }
      ]
    }
  ]
}