PackagesCanonicalsLogsProblems
    Packages
    fhir.erezept.validator@0.3.2
    https://example.org/fhir/TestScript/validate-e-rezept-warning-code-invalid
{
  "description": "Testet Fehlerverhalten bei unbekanntem ATC Code.",
  "_filename": "TestScript-validate-e-rezept-warning-code-invalid.json",
  "package_name": "fhir.erezept.validator",
  "date": null,
  "publisher": null,
  "name": "ValidateERezept_WARNING_PatientIntolerant",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "package_version": "0.3.2",
  "status": "active",
  "id": "dcb7d219-8501-47b1-a20d-28039b6cacc1",
  "kind": null,
  "url": "https://example.org/fhir/TestScript/validate-e-rezept-warning-code-invalid",
  "fixture": [ {
    "id": "example-request-009",
    "resource": {
      "reference": "../examples/Example_Request_009_unknown_ATC_Code_in_medication_request.json"
    },
    "autocreate": false,
    "autodelete": false
  }, {
    "id": "example-request-010",
    "resource": {
      "reference": "../examples/Example_Request_010_unknown_ATC_Code_in_allergy_intolerance.json"
    },
    "autocreate": false,
    "autodelete": false
  } ],
  "version": null,
  "test": [ {
    "name": "Unbekannter ATC Code in medication request.",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "example-request-009",
        "contentType": "application/fhir+json",
        "description": "Unbekannter ATC Code in medication request.",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "resource": "OperationOutcome",
        "description": "Response ist ein OperationOutcome",
        "warningOnly": false
      }
    }, {
      "assert": {
        "response": "unprocessable",
        "description": "Response ist 'unprocessable'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].severity",
        "value": "error",
        "operator": "equals",
        "description": "Issue Severity ist 'error'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].code",
        "value": "code-invalid",
        "operator": "equals",
        "description": "Issue Code ist 'code-invalid'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "Unbekannter ATC Code: .",
        "operator": "equals",
        "description": "Details Textabgleich",
        "warningOnly": false
      }
    } ]
  }, {
    "name": "Unbekannter ATC Code in allergyIntolerance.",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "example-request-010",
        "contentType": "application/fhir+json",
        "description": "Unbekannter ATC Code in allergyIntolerance.",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "resource": "OperationOutcome",
        "description": "Response ist ein OperationOutcome",
        "warningOnly": false
      }
    }, {
      "assert": {
        "response": "unprocessable",
        "description": "Response ist 'unprocessable'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].severity",
        "value": "error",
        "operator": "equals",
        "description": "Issue Severity ist 'error'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].code",
        "value": "code-invalid",
        "operator": "equals",
        "description": "Issue Code ist 'code-invalid'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "Unbekannter ATC Code: .",
        "operator": "equals",
        "description": "Details Textabgleich",
        "warningOnly": false
      }
    } ]
  } ]
}