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

FHIR IG Statistics: TestScript/validate-e-rezept-warning-code-invalid

Packagefhir.erezept.validator
Resource TypeTestScript
Idvalidate-e-rezept-warning-code-invalid
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=fhir.erezept.validator@0.4.9&canonical=https://example.org/fhir/TestScript/validate-e-rezept-warning-code-invalid
URLhttps://example.org/fhir/TestScript/validate-e-rezept-warning-code-invalid
Statusactive
NameValidateERezept_WARNING_PatientIntolerant
Realmus
Authorityhl7
DescriptionTestet Fehlerverhalten bei unbekanntem ATC Code.

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