{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-EAU-ServiceRequest-steps",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_ServiceRequest_steps",
  "version": "1.1.0_cc",
  "name": "KBV_PR_EAU_ServiceRequest_steps",
  "status": "draft",
  "date": "2022-05-13",
  "publisher": "Kassenärztliche Bundesvereinigung",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://siframework.org/cqf",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.id",
        "path": "ServiceRequest.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.meta",
        "path": "ServiceRequest.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.meta.versionId",
        "path": "ServiceRequest.meta.versionId",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.lastUpdated",
        "path": "ServiceRequest.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.source",
        "path": "ServiceRequest.meta.source",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.profile",
        "path": "ServiceRequest.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_ServiceRequest_steps|1.1.0_cc",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.meta.security",
        "path": "ServiceRequest.meta.security",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.tag",
        "path": "ServiceRequest.meta.tag",
        "max": "0"
      },
      {
        "id": "ServiceRequest.implicitRules",
        "path": "ServiceRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "ServiceRequest.language",
        "path": "ServiceRequest.language",
        "max": "0"
      },
      {
        "id": "ServiceRequest.text",
        "path": "ServiceRequest.text",
        "max": "0"
      },
      {
        "id": "ServiceRequest.contained",
        "path": "ServiceRequest.contained",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesCanonical",
        "path": "ServiceRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesUri",
        "path": "ServiceRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "max": "0"
      },
      {
        "id": "ServiceRequest.replaces",
        "path": "ServiceRequest.replaces",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition",
        "path": "ServiceRequest.requisition",
        "max": "0"
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "fixedCode": "active",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "fixedCode": "proposal",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "max": "0"
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "max": "0"
      },
      {
        "id": "ServiceRequest.doNotPerform",
        "path": "ServiceRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1,
        "constraint": [
          {
            "key": "text-bei-sonstige",
            "severity": "error",
            "human": "Wenn Sonstige als Code ausgewählt wurde, muss ein Text vorhanden sein.",
            "expression": "coding.code='sonstige' implies text.exists()",
            "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_ServiceRequest_steps"
          },
          {
            "key": "Kein-text-bei-anderen",
            "severity": "error",
            "human": "Wenn die Kennzeichnung \"D-Arzt\", \"Reha\" oder \"Wiedereingliederung\" angegeben ist, dann darf kein Text enthalten sein.",
            "expression": "(coding.code = \"d_arzt\" or coding.code = \"reha\" or coding.code = \"wiedereingliederung\") implies text.exists().not()",
            "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_ServiceRequest_steps"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Abbildung der möglichen Werte",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_EAU_WeitereSchritte_Type"
        }
      },
      {
        "id": "ServiceRequest.code.coding",
        "path": "ServiceRequest.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.system",
        "path": "ServiceRequest.code.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.version",
        "path": "ServiceRequest.code.coding.version",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code.coding.code",
        "path": "ServiceRequest.code.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.display",
        "path": "ServiceRequest.code.coding.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code.coding.userSelected",
        "path": "ServiceRequest.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code.text",
        "path": "ServiceRequest.code.text",
        "short": "Sonstige Text",
        "definition": "Abbildung der Information Sonstige",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "max": "0"
      },
      {
        "id": "ServiceRequest.quantity[x]",
        "path": "ServiceRequest.quantity[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0_cc"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject.reference",
        "path": "ServiceRequest.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject.type",
        "path": "ServiceRequest.subject.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject.identifier",
        "path": "ServiceRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject.display",
        "path": "ServiceRequest.subject.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.asNeeded[x]",
        "path": "ServiceRequest.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0_cc"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.requester.reference",
        "path": "ServiceRequest.requester.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.requester.type",
        "path": "ServiceRequest.requester.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requester.identifier",
        "path": "ServiceRequest.requester.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requester.display",
        "path": "ServiceRequest.requester.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performerType",
        "path": "ServiceRequest.performerType",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationCode",
        "path": "ServiceRequest.locationCode",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationReference",
        "path": "ServiceRequest.locationReference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonCode",
        "path": "ServiceRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference",
        "path": "ServiceRequest.reasonReference",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Condition_AU|1.1.0_cc"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonReference.reference",
        "path": "ServiceRequest.reasonReference.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonReference.type",
        "path": "ServiceRequest.reasonReference.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference.identifier",
        "path": "ServiceRequest.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference.display",
        "path": "ServiceRequest.reasonReference.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.insurance",
        "path": "ServiceRequest.insurance",
        "max": "0"
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite",
        "path": "ServiceRequest.bodySite",
        "max": "0"
      },
      {
        "id": "ServiceRequest.note",
        "path": "ServiceRequest.note",
        "max": "0"
      },
      {
        "id": "ServiceRequest.patientInstruction",
        "path": "ServiceRequest.patientInstruction",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory",
        "path": "ServiceRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}