PackagesCanonicalsLogsProblems
    Packages
    fhir.erezept.validator@0.2.1
    https://example.org/fhir/TestScript/validate-e-rezept-ok
{
  "description": "Testet die Validierungsoperation $validate-e-rezept mit einem gültigen E-Rezept-Bundle.",
  "_filename": "Test_ValidateERezept_OK.json",
  "package_name": "fhir.erezept.validator",
  "date": null,
  "publisher": null,
  "name": "ValidateERezept_OK",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "package_version": "0.2.1",
  "status": "active",
  "id": "5a67453f-9d56-40db-96a9-9b104c4b1164",
  "kind": null,
  "url": "https://example.org/fhir/TestScript/validate-e-rezept-ok",
  "fixture": [ {
    "id": "validERezeptBundleExclAllergyIntolerance",
    "resource": {
      "reference": "/TODO/Example_Request_001_minimum_excl_allergyIntolerance.json"
    },
    "autocreate": false,
    "autodelete": false
  }, {
    "id": "validERezeptBundleInclAllergyIntolerance",
    "resource": {
      "reference": "/TODO/Example_Request_002_minimum_incl_allergyIntolerance_no_match.json"
    },
    "autocreate": false,
    "autodelete": false
  }, {
    "id": "validERezeptBundleInclMultipleAllergyIntolerance",
    "resource": {
      "reference": "/TODO/Example_Request_004_incl_multiple_allergyIntolerance_no_match.json"
    },
    "autocreate": false,
    "autodelete": false
  } ],
  "version": null,
  "test": [ {
    "name": "Validiere gültiges E-Rezept-Bundle (ohne AllergyIntolerance)",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "validERezeptBundleExclAllergyIntolerance",
        "contentType": "application/fhir+json",
        "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (ohne AllergyIntolerance) aus",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "resource": "OperationOutcome",
        "description": "Response ist ein OperationOutcome",
        "warningOnly": false
      }
    }, {
      "assert": {
        "response": "okay",
        "description": "Response ist 'okay'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].severity",
        "value": "information",
        "operator": "equals",
        "description": "Issue Severity ist 'information'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].code",
        "value": "information",
        "operator": "equals",
        "description": "Issue Code ist 'information'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "okay",
        "operator": "equals",
        "description": "Details Text ist 'OK'",
        "warningOnly": false
      }
    } ]
  }, {
    "name": "Validiere gültiges E-Rezept-Bundle (mit AllergyIntolerance)",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "validERezeptBundleInclAllergyIntolerance",
        "contentType": "application/fhir+json",
        "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (mit AllergyIntolerance) aus",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "resource": "OperationOutcome",
        "description": "Response ist ein OperationOutcome",
        "warningOnly": false
      }
    }, {
      "assert": {
        "response": "okay",
        "description": "Response ist 'okay'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].severity",
        "value": "warning",
        "operator": "equals",
        "description": "Issue Severity ist 'warning'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].code",
        "value": "business-rule",
        "operator": "equals",
        "description": "Issue Code ist 'business-rule'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "Patient hat Allergie gegen verschriebenes Medikament. ATC Code: ",
        "operator": "equals",
        "description": "Details Text abgleich",
        "warningOnly": false
      }
    } ]
  }, {
    "name": "Validiere gültiges E-Rezept-Bundle (mit mehreren AllergyIntolerances)",
    "action": [ {
      "operation": {
        "type": {
          "code": "operation"
        },
        "accept": "application/fhir+json",
        "params": "$validate-e-rezept",
        "sourceId": "validERezeptBundleInclMultipleAllergyIntolerance",
        "contentType": "application/fhir+json",
        "description": "Führe $validate-e-rezept mit gültigem E-Rezept-Bundle (mit mehreren AllergyIntolerances) aus",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "resource": "OperationOutcome",
        "description": "Response ist ein OperationOutcome",
        "warningOnly": false
      }
    }, {
      "assert": {
        "response": "okay",
        "description": "Response ist 'okay'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].severity",
        "value": "warning",
        "operator": "equals",
        "description": "Issue Severity ist 'warning'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].code",
        "value": "business-rule",
        "operator": "equals",
        "description": "Issue Code ist 'business-rule'",
        "warningOnly": false
      }
    }, {
      "assert": {
        "path": "issue[0].details.text",
        "value": "Patient hat Allergie gegen verschriebenes Medikament. ATC Code: ",
        "operator": "equals",
        "description": "Details Text abgleich",
        "warningOnly": false
      }
    } ]
  } ]
}