{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Episode_Of_Care_Problem",
  "version": "1.0.0",
  "name": "KBV_PR_MIO_PS_Episode_Of_Care_Problem",
  "status": "draft",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Dieses Profil bündelt die Information zu einem vergangenen oder aktuellen Problem.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "EpisodeOfCare",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "EpisodeOfCare.meta",
        "path": "EpisodeOfCare.meta",
        "min": 1
      },
      {
        "id": "EpisodeOfCare.meta.versionId",
        "path": "EpisodeOfCare.meta.versionId",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.meta.lastUpdated",
        "path": "EpisodeOfCare.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.meta.source",
        "path": "EpisodeOfCare.meta.source",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.meta.profile",
        "path": "EpisodeOfCare.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Episode_Of_Care_Problem|1.0.0"
      },
      {
        "id": "EpisodeOfCare.meta.security",
        "path": "EpisodeOfCare.meta.security",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.meta.tag",
        "path": "EpisodeOfCare.meta.tag",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.implicitRules",
        "path": "EpisodeOfCare.implicitRules",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.language",
        "path": "EpisodeOfCare.language",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.contained",
        "path": "EpisodeOfCare.contained",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.identifier",
        "path": "EpisodeOfCare.identifier",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.status",
        "path": "EpisodeOfCare.status",
        "fixedCode": "active"
      },
      {
        "id": "EpisodeOfCare.statusHistory",
        "path": "EpisodeOfCare.statusHistory",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.type",
        "path": "EpisodeOfCare.type",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.diagnosis",
        "path": "EpisodeOfCare.diagnosis",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.diagnosis.condition",
        "path": "EpisodeOfCare.diagnosis.condition",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Condition_Problem_Free|1.0.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Condition_Problem_ICD10|1.0.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Condition_Problem_Orphanet|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.diagnosis.condition.reference",
        "path": "EpisodeOfCare.diagnosis.condition.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.diagnosis.condition.type",
        "path": "EpisodeOfCare.diagnosis.condition.type",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.diagnosis.condition.identifier",
        "path": "EpisodeOfCare.diagnosis.condition.identifier",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.diagnosis.condition.display",
        "path": "EpisodeOfCare.diagnosis.condition.display",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.diagnosis.role",
        "path": "EpisodeOfCare.diagnosis.role",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.diagnosis.rank",
        "path": "EpisodeOfCare.diagnosis.rank",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.patient",
        "path": "EpisodeOfCare.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Patient|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.patient.reference",
        "path": "EpisodeOfCare.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.patient.type",
        "path": "EpisodeOfCare.patient.type",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.patient.identifier",
        "path": "EpisodeOfCare.patient.identifier",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.patient.display",
        "path": "EpisodeOfCare.patient.display",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.managingOrganization",
        "path": "EpisodeOfCare.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Organization|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.managingOrganization.reference",
        "path": "EpisodeOfCare.managingOrganization.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.managingOrganization.type",
        "path": "EpisodeOfCare.managingOrganization.type",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.managingOrganization.identifier",
        "path": "EpisodeOfCare.managingOrganization.identifier",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.managingOrganization.display",
        "path": "EpisodeOfCare.managingOrganization.display",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.period",
        "path": "EpisodeOfCare.period",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.referralRequest",
        "path": "EpisodeOfCare.referralRequest",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.careManager",
        "path": "EpisodeOfCare.careManager",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.careManager.reference",
        "path": "EpisodeOfCare.careManager.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.careManager.type",
        "path": "EpisodeOfCare.careManager.type",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.careManager.identifier",
        "path": "EpisodeOfCare.careManager.identifier",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.careManager.display",
        "path": "EpisodeOfCare.careManager.display",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.team",
        "path": "EpisodeOfCare.team",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Care_Team_Problem|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.team.reference",
        "path": "EpisodeOfCare.team.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.team.type",
        "path": "EpisodeOfCare.team.type",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.team.identifier",
        "path": "EpisodeOfCare.team.identifier",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.team.display",
        "path": "EpisodeOfCare.team.display",
        "max": "0"
      },
      {
        "id": "EpisodeOfCare.account",
        "path": "EpisodeOfCare.account",
        "max": "0"
      }
    ]
  }
}