PackagesCanonicalsLogsProblems
    Packages
    fhir.erezept.validator@0.4.2
    https://example.org/fhir/TestScript/validate-e-rezept-error-structure
{
  "description": "Testet die Validierungsoperation $validate-e-rezept mit einem ungültigen E-Rezept-Bundle.",
  "_filename": "TestScript-validate-e-rezept-error-structure.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.4.2",
  "status": "active",
  "id": "59f38a8a-91b5-492b-be58-cdeb8fd1535b",
  "kind": null,
  "url": "https://example.org/fhir/TestScript/validate-e-rezept-error-structure",
  "fixture": [ {
    "id": "example-request-007",
    "resource": {
      "reference": "/examples/Example_Request_007_incl_multiple_allergyIntolerance_no_medications.json"
    },
    "autocreate": false,
    "autodelete": false
  }, {
    "id": "example-request-008",
    "resource": {
      "reference": "/examples/Example_Request_008_unknown_codeSystem.json"
    },
    "autocreate": false,
    "autodelete": false
  } ],
  "version": null,
  "test": [ {
    "name": "Rezept enthält kein Medikament.",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "example-request-007",
        "contentType": "application/fhir+json",
        "description": "Rezept enthält kein Medikament.",
        "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": "invalid",
        "operator": "equals",
        "description": "Issue Code ist 'invalid'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "MedicationRequest.medication[x]: minimum required = 1, but only found 0",
        "operator": "contains",
        "description": "Details Textabgleich",
        "warningOnly": false
      }
    } ]
  }, {
    "name": "Es ist ein unbekanntes CodeSystem angegeben.",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "example-request-008",
        "contentType": "application/fhir+json",
        "description": "Es ist ein unbekanntes CodeSystem angegeben.",
        "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": "invalid",
        "operator": "equals",
        "description": "Issue Code ist 'invalid'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "Value is 'http://snomed.info/sct' but is fixed to 'http://fhir.de/CodeSystem/bfarm/atc' in the profile",
        "operator": "contains",
        "description": "Details Textabgleich",
        "warningOnly": false
      }
    } ]
  } ]
}