{
  "resourceType": "StructureDefinition",
  "id": "6b8abd73-7fa7-4962-81f6-3cb841a47c39",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2021-07-12T20:45:41.814+00:00"
  },
  "url": "http://digen.nublar.de/fhir/StructureDefinition/DigenArbeitsunfaehigkeit",
  "version": "2.0",
  "name": "DigenArbeitsunfaehigkeit",
  "status": "active",
  "date": "2021-07-11T22:00:00+00:00",
  "description": "This profile is used for profiling \"Arbeitsunfähigkeit\" (AU) data as being imported from the KKIS. Note that the \"AU-Diagnosen\" are profiled using the DiGeNConditionAbrechnung profile.",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "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/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://wiki.siframework.org/CQF",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ProcedureRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ProcedureRequest.meta",
        "path": "ProcedureRequest.meta"
      },
      {
        "id": "ProcedureRequest.meta.id",
        "path": "ProcedureRequest.meta.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.meta.security",
        "path": "ProcedureRequest.meta.security"
      },
      {
        "id": "ProcedureRequest.meta.security.id",
        "path": "ProcedureRequest.meta.security.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.meta.security.userSelected",
        "path": "ProcedureRequest.meta.security.userSelected",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.meta.tag",
        "path": "ProcedureRequest.meta.tag",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.language",
        "path": "ProcedureRequest.language",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.text",
        "path": "ProcedureRequest.text"
      },
      {
        "id": "ProcedureRequest.text.id",
        "path": "ProcedureRequest.text.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.contained",
        "path": "ProcedureRequest.contained",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "ProcedureRequest.contained:requesterPractitioner",
        "path": "ProcedureRequest.contained",
        "sliceName": "requesterPractitioner",
        "max": "1",
        "type": [
          {
            "code": "Resource",
            "profile": "http://digen.nublar.de/fhir/StructureDefinition/DigenPractitioner"
          }
        ]
      },
      {
        "id": "ProcedureRequest.contained:requesterOrganization",
        "path": "ProcedureRequest.contained",
        "sliceName": "requesterOrganization",
        "max": "1",
        "type": [
          {
            "code": "Resource",
            "profile": "http://digen.nublar.de/fhir/StructureDefinition/DigenOrganization"
          }
        ]
      },
      {
        "id": "ProcedureRequest.identifier",
        "path": "ProcedureRequest.identifier",
        "short": "KKIS Schlüssel",
        "definition": "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller. In DiGeN the identifier ist built using the identifiers from the KKIS system.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ProcedureRequest.identifier.id",
        "path": "ProcedureRequest.identifier.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier.use",
        "path": "ProcedureRequest.identifier.use",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier.type",
        "path": "ProcedureRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier.system",
        "path": "ProcedureRequest.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\nThe namespace OID depends on and is specific for the AOK, the patient is insuree of.",
        "comment": "Use the following OIDs:\r\n1.2.276.0.76.3.1.321.1.1.6.15  for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Hessen)\r\n1.2.276.0.76.3.1.321.1.1.6.17 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Baden-Württemberg)\r\n1.2.276.0.76.3.1.321.1.1.6.18 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Bayern)\r\n1.2.276.0.76.3.1.321.1.1.6.19 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Bremen/Bremerhaven)\r\n1.2.276.0.76.3.1.321.1.1.6.20 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Niedersachsen)\r\n1.2.276.0.76.3.1.321.1.1.6.21 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Nordost)\r\n1.2.276.0.76.3.1.321.1.1.6.22 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK NORDWEST)\r\n1.2.276.0.76.3.1.321.1.1.6.23 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Sachsen-Anhalt)\r\n1.2.276.0.76.3.1.321.1.1.6.24 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK PLUS - Sachsen und Thüringen)\r\n1.2.276.0.76.3.1.321.1.1.6.25 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Rheinland/Hamburg)\r\n1.2.276.0.76.3.1.321.1.1.6.26 for DiGeN-spezifische Krankenkassenkis -Fallidentifikation (AOK Rheinland-Pfalz/Saarland)",
        "min": 1
      },
      {
        "id": "ProcedureRequest.identifier.value",
        "path": "ProcedureRequest.identifier.value",
        "comment": "The values identifies the ressource. For an \"AU\" the value will be composed using dataSourceBw-recordSetId.",
        "min": 1
      },
      {
        "id": "ProcedureRequest.identifier.period",
        "path": "ProcedureRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier.assigner",
        "path": "ProcedureRequest.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.definition",
        "path": "ProcedureRequest.definition",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.basedOn",
        "path": "ProcedureRequest.basedOn",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.replaces",
        "path": "ProcedureRequest.replaces",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requisition",
        "path": "ProcedureRequest.requisition",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.status",
        "path": "ProcedureRequest.status",
        "fixedCode": "unknown"
      },
      {
        "id": "ProcedureRequest.intent",
        "path": "ProcedureRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "ProcedureRequest.priority",
        "path": "ProcedureRequest.priority",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.doNotPerform",
        "path": "ProcedureRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.category",
        "path": "ProcedureRequest.category",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.category.coding",
        "path": "ProcedureRequest.category.coding",
        "max": "1",
        "fixedCoding": {
          "code": "AU-Bescheinigung",
          "display": "AU-Bescheinigung"
        }
      },
      {
        "id": "ProcedureRequest.category.coding.userSelected",
        "path": "ProcedureRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.code.id",
        "path": "ProcedureRequest.code.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.code.coding",
        "path": "ProcedureRequest.code.coding",
        "min": 1,
        "max": "1",
        "fixedCoding": {
          "system": "https://fhir.kbv.de/CodeSystem/74_CS_AW_Verordnung_Arbeitsunfaehigkeit_AU-Art",
          "code": "AU-Bescheinigung",
          "display": "AU-Bescheinigung"
        }
      },
      {
        "id": "ProcedureRequest.code.coding.id",
        "path": "ProcedureRequest.code.coding.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.code.coding.system",
        "path": "ProcedureRequest.code.coding.system",
        "min": 1
      },
      {
        "id": "ProcedureRequest.code.coding.code",
        "path": "ProcedureRequest.code.coding.code",
        "min": 1
      },
      {
        "id": "ProcedureRequest.code.coding.userSelected",
        "path": "ProcedureRequest.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.code.text",
        "path": "ProcedureRequest.code.text",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.subject",
        "path": "ProcedureRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "ProcedureRequest.subject.id",
        "path": "ProcedureRequest.subject.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.subject.reference",
        "path": "ProcedureRequest.subject.reference",
        "min": 1
      },
      {
        "id": "ProcedureRequest.subject.identifier",
        "path": "ProcedureRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.subject.display",
        "path": "ProcedureRequest.subject.display",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.context",
        "path": "ProcedureRequest.context",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod",
        "path": "ProcedureRequest.occurrencePeriod",
        "sliceName": "occurrencePeriod",
        "short": "AU-Beginn und AU-Ende",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod.id",
        "path": "ProcedureRequest.occurrencePeriod.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod.start",
        "path": "ProcedureRequest.occurrencePeriod.start",
        "min": 1
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod.end",
        "path": "ProcedureRequest.occurrencePeriod.end",
        "min": 1
      },
      {
        "id": "ProcedureRequest.asNeeded[x]",
        "path": "ProcedureRequest.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.authoredOn",
        "path": "ProcedureRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requester",
        "path": "ProcedureRequest.requester",
        "short": "Requester of the procedure (AU)",
        "definition": "The individual or organization who authored the AU (i.e. requested that the patient refrains from working)."
      },
      {
        "id": "ProcedureRequest.requester.id",
        "path": "ProcedureRequest.requester.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requester.agent",
        "path": "ProcedureRequest.requester.agent",
        "short": "Author of the AU",
        "definition": "The practitioner or organization who authored the AU. Please note, that it might not always be possible to determine the initial author. The agent named is only guaranteed to be one of the agents who at some point authored an AU for this sickness.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requester.agent.id",
        "path": "ProcedureRequest.requester.agent.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requester.agent.reference",
        "path": "ProcedureRequest.requester.agent.reference",
        "short": "Reference to a contained ressource",
        "min": 1
      },
      {
        "id": "ProcedureRequest.requester.agent.identifier",
        "path": "ProcedureRequest.requester.agent.identifier",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requester.agent.display",
        "path": "ProcedureRequest.requester.agent.display",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requester.onBehalfOf",
        "path": "ProcedureRequest.requester.onBehalfOf",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.performerType",
        "path": "ProcedureRequest.performerType",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.performer",
        "path": "ProcedureRequest.performer",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonCode",
        "path": "ProcedureRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonReference",
        "path": "ProcedureRequest.reasonReference",
        "short": "Grund für AU",
        "definition": "Indicates another resource that provides a justification for why this diagnostic investigation is being requested.   May relate to the resources referred to in supportingInformation. In DiGeN used for referencing the conditions which led to the patient being unable to work.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAbrechnung",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.reasonReference.id",
        "path": "ProcedureRequest.reasonReference.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonReference.extension",
        "path": "ProcedureRequest.reasonReference.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ProcedureRequest.reasonReference.extension:ConditionRelation",
        "path": "ProcedureRequest.reasonReference.extension",
        "sliceName": "ConditionRelation",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://digen.nublar.de/fhir/StructureDefinition/ReasonReferenceRelation"
          }
        ]
      },
      {
        "id": "ProcedureRequest.reasonReference.extension:ConditionRelation.id",
        "path": "ProcedureRequest.reasonReference.extension.id",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonReference.reference",
        "path": "ProcedureRequest.reasonReference.reference",
        "min": 1
      },
      {
        "id": "ProcedureRequest.reasonReference.identifier",
        "path": "ProcedureRequest.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonReference.display",
        "path": "ProcedureRequest.reasonReference.display",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.supportingInfo",
        "path": "ProcedureRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.specimen",
        "path": "ProcedureRequest.specimen",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.bodySite",
        "path": "ProcedureRequest.bodySite",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.note",
        "path": "ProcedureRequest.note",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.relevantHistory",
        "path": "ProcedureRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}