{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-MIO-DIGA-Encounter",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Encounter",
  "version": "1.1.0",
  "name": "KBV_PR_MIO_DIGA_Encounter",
  "title": "KBV_PR_MIO_DIGA_Encounter",
  "status": "active",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Dieses Profil bildet eine Begegnung / einen Aufenthalt ab.",
  "copyright": "Im folgenden Profil können Codes aus den Codesystemen Snomed, Loinc oder Ucum enthalten sein, die dem folgenden Urheberrecht unterliegen: This material includes SNOMED Clinical Terms® SNOMED CT® which is used by permission of SNOMED International. All rights reserved. SNOMED CT®, was originally created by The College of American Pathologists. SNOMED and SNOMED CT are registered trademarks of SNOMED International. Implementers of these artefacts must have the appropriate SNOMED CT Affiliate license. This material contains content from Loinc http://loinc.org. Loinc is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes Loinc Committee and is available at no cost under the license at http://loinc.org/license. Loinc® is a registered United States trademark of Regenstrief Institute, Inc. This product includes all or a portion of the UCUM table, UCUM codes, and UCUM definitions or is derived from it, subject to a license from Regenstrief Institute, Inc. and The UCUM Organization. Your use of the UCUM table, UCUM codes, UCUM definitions also is subject to this license, a copy of which is available at ​http://unitsofmeasure.org. The current complete UCUM table, UCUM Specification are available for download at ​http://unitsofmeasure.org. The UCUM table and UCUM codes are copyright © 1995-2009, Regenstrief Institute, Inc. and the Unified Codes for Units of Measures UCUM Organization. All rights reserved. THE UCUM TABLE IN ALL FORMATS, UCUM DEFINITIONS, AND SPECIFICATION ARE PROVIDED \"AS IS.\" ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Encounter|1.3.0",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter",
        "path": "Encounter",
        "definition": "Dieses Profil bildet eine Begegnung / einen Aufenthalt ab."
      },
      {
        "id": "Encounter.meta",
        "path": "Encounter.meta",
        "min": 1
      },
      {
        "id": "Encounter.meta.versionId",
        "path": "Encounter.meta.versionId",
        "min": 1
      },
      {
        "id": "Encounter.meta.lastUpdated",
        "path": "Encounter.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Encounter.meta.source",
        "path": "Encounter.meta.source",
        "max": "0"
      },
      {
        "id": "Encounter.meta.profile",
        "path": "Encounter.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Encounter.meta.profile:mioProfile",
        "path": "Encounter.meta.profile",
        "sliceName": "mioProfile",
        "min": 1,
        "max": "1",
        "patternCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Encounter|1.1.0"
      },
      {
        "id": "Encounter.meta.security",
        "path": "Encounter.meta.security",
        "max": "0"
      },
      {
        "id": "Encounter.meta.tag",
        "path": "Encounter.meta.tag",
        "max": "0"
      },
      {
        "id": "Encounter.implicitRules",
        "path": "Encounter.implicitRules",
        "max": "0"
      },
      {
        "id": "Encounter.language",
        "path": "Encounter.language",
        "max": "0"
      },
      {
        "id": "Encounter.text",
        "path": "Encounter.text",
        "definition": "In diesem Element können die, in der Instanz, enthaltenen Informationen in einer menschenlesbaren Form zusammengefasst werden. Dabei ist zu beachten, dass keine Informationen aufgenommen werden dürfen, die nicht in strukturierter Form an anderer Stelle in der Instanz enthalten sind."
      },
      {
        "id": "Encounter.text.status",
        "path": "Encounter.text.status",
        "fixedCode": "extensions"
      },
      {
        "id": "Encounter.contained",
        "path": "Encounter.contained",
        "max": "0"
      },
      {
        "id": "Encounter.extension",
        "path": "Encounter.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.extension:termin-notiz",
        "path": "Encounter.extension",
        "sliceName": "termin-notiz",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Additional_Comment"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.extension:termin-notiz.value[x]",
        "path": "Encounter.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.extension:termin-notiz.value[x]:valueString",
        "path": "Encounter.extension.valueString",
        "sliceName": "valueString",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.identifier.use",
        "path": "Encounter.identifier.use",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.type",
        "path": "Encounter.identifier.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "version": "2.9",
              "code": "RI",
              "display": "Resource identifier"
            }
          ]
        }
      },
      {
        "id": "Encounter.identifier.type.coding",
        "path": "Encounter.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.identifier.type.coding.system",
        "path": "Encounter.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Encounter.identifier.type.coding.version",
        "path": "Encounter.identifier.type.coding.version",
        "min": 1
      },
      {
        "id": "Encounter.identifier.type.coding.code",
        "path": "Encounter.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Encounter.identifier.type.coding.display",
        "path": "Encounter.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Encounter.identifier.type.coding.userSelected",
        "path": "Encounter.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.type.text",
        "path": "Encounter.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.system",
        "path": "Encounter.identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986",
        "mustSupport": true
      },
      {
        "id": "Encounter.identifier.value",
        "path": "Encounter.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.identifier.period",
        "path": "Encounter.identifier.period",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.assigner",
        "path": "Encounter.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "mustSupport": true
      },
      {
        "id": "Encounter.statusHistory",
        "path": "Encounter.statusHistory",
        "max": "0"
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "mustSupport": true
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "min": 1
      },
      {
        "id": "Encounter.class.version",
        "path": "Encounter.class.version",
        "min": 1
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "min": 1
      },
      {
        "id": "Encounter.class.display",
        "path": "Encounter.class.display",
        "min": 1
      },
      {
        "id": "Encounter.class.userSelected",
        "path": "Encounter.class.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.classHistory",
        "path": "Encounter.classHistory",
        "max": "0"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "max": "0"
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding",
        "path": "Encounter.serviceType.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:KBV-Fachgruppencodierung",
        "path": "Encounter.serviceType.coding",
        "sliceName": "KBV-Fachgruppencodierung",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:KBV-Fachgruppencodierung.system",
        "path": "Encounter.serviceType.coding.system",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:KBV-Fachgruppencodierung.version",
        "path": "Encounter.serviceType.coding.version",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:KBV-Fachgruppencodierung.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:KBV-Fachgruppencodierung.display",
        "path": "Encounter.serviceType.coding.display",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:KBV-Fachgruppencodierung.userSelected",
        "path": "Encounter.serviceType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel",
        "path": "Encounter.serviceType.coding",
        "sliceName": "HL7-Fachabteilungsschluessel",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel.system",
        "path": "Encounter.serviceType.coding.system",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel.version",
        "path": "Encounter.serviceType.coding.version",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel.display",
        "path": "Encounter.serviceType.coding.display",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel.userSelected",
        "path": "Encounter.serviceType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel-erweitert",
        "path": "Encounter.serviceType.coding",
        "sliceName": "HL7-Fachabteilungsschluessel-erweitert",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel-erweitert.system",
        "path": "Encounter.serviceType.coding.system",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel-erweitert.version",
        "path": "Encounter.serviceType.coding.version",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel-erweitert.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel-erweitert.display",
        "path": "Encounter.serviceType.coding.display",
        "min": 1
      },
      {
        "id": "Encounter.serviceType.coding:HL7-Fachabteilungsschluessel-erweitert.userSelected",
        "path": "Encounter.serviceType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.serviceType.text",
        "path": "Encounter.serviceType.text",
        "mustSupport": true
      },
      {
        "id": "Encounter.priority",
        "path": "Encounter.priority",
        "max": "0"
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Patient|1.1.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.reference",
        "path": "Encounter.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.type",
        "path": "Encounter.subject.type",
        "max": "0"
      },
      {
        "id": "Encounter.subject.identifier",
        "path": "Encounter.subject.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.subject.display",
        "path": "Encounter.subject.display",
        "max": "0"
      },
      {
        "id": "Encounter.episodeOfCare",
        "path": "Encounter.episodeOfCare",
        "max": "0"
      },
      {
        "id": "Encounter.basedOn",
        "path": "Encounter.basedOn",
        "max": "0"
      },
      {
        "id": "Encounter.participant",
        "path": "Encounter.participant",
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.type",
        "path": "Encounter.participant.type",
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.type.coding",
        "path": "Encounter.participant.type.coding",
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.type.coding.system",
        "path": "Encounter.participant.type.coding.system",
        "min": 1
      },
      {
        "id": "Encounter.participant.type.coding.version",
        "path": "Encounter.participant.type.coding.version",
        "min": 1
      },
      {
        "id": "Encounter.participant.type.coding.code",
        "path": "Encounter.participant.type.coding.code",
        "min": 1
      },
      {
        "id": "Encounter.participant.type.coding.display",
        "path": "Encounter.participant.type.coding.display",
        "min": 1
      },
      {
        "id": "Encounter.participant.type.coding.userSelected",
        "path": "Encounter.participant.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.participant.type.text",
        "path": "Encounter.participant.type.text",
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.period",
        "path": "Encounter.participant.period",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual",
        "path": "Encounter.participant.individual",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Practitioner|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_RelatedPerson|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_PractitionerRole|1.1.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.individual.reference",
        "path": "Encounter.participant.individual.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.individual.type",
        "path": "Encounter.participant.individual.type",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual.identifier",
        "path": "Encounter.participant.individual.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual.display",
        "path": "Encounter.participant.individual.display",
        "max": "0"
      },
      {
        "id": "Encounter.appointment",
        "path": "Encounter.appointment",
        "max": "0"
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "comment": "Für die Abbildung eines Zeitpunktes, sind Encounter.period.start sowie Encounter.period.end auf den gleichen Wert zu setzen.",
        "mustSupport": true
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "mustSupport": true
      },
      {
        "id": "Encounter.period.end",
        "path": "Encounter.period.end",
        "mustSupport": true
      },
      {
        "id": "Encounter.length",
        "path": "Encounter.length",
        "max": "0"
      },
      {
        "id": "Encounter.reasonCode",
        "path": "Encounter.reasonCode",
        "mustSupport": true
      },
      {
        "id": "Encounter.reasonCode.coding",
        "path": "Encounter.reasonCode.coding",
        "mustSupport": true
      },
      {
        "id": "Encounter.reasonCode.coding.system",
        "path": "Encounter.reasonCode.coding.system",
        "min": 1
      },
      {
        "id": "Encounter.reasonCode.coding.version",
        "path": "Encounter.reasonCode.coding.version",
        "min": 1
      },
      {
        "id": "Encounter.reasonCode.coding.code",
        "path": "Encounter.reasonCode.coding.code",
        "min": 1
      },
      {
        "id": "Encounter.reasonCode.coding.display",
        "path": "Encounter.reasonCode.coding.display",
        "min": 1
      },
      {
        "id": "Encounter.reasonCode.coding.userSelected",
        "path": "Encounter.reasonCode.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.reasonCode.text",
        "path": "Encounter.reasonCode.text",
        "mustSupport": true
      },
      {
        "id": "Encounter.reasonReference",
        "path": "Encounter.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Procedure_Activity|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Condition_Problem|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Free|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Body_Height|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Peripheral_Oxygen_Saturation|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Body_Temperature|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Body_Weight|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Heart_Rate|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Blood_Pressure|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Head_Circumference|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Respiratory_Rate|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Observation_Glucose_Concentration|1.1.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.reasonReference.reference",
        "path": "Encounter.reasonReference.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.reasonReference.type",
        "path": "Encounter.reasonReference.type",
        "max": "0"
      },
      {
        "id": "Encounter.reasonReference.identifier",
        "path": "Encounter.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.reasonReference.display",
        "path": "Encounter.reasonReference.display",
        "max": "0"
      },
      {
        "id": "Encounter.diagnosis",
        "path": "Encounter.diagnosis",
        "max": "0"
      },
      {
        "id": "Encounter.account",
        "path": "Encounter.account",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization",
        "path": "Encounter.hospitalization",
        "max": "0"
      },
      {
        "id": "Encounter.location",
        "path": "Encounter.location",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider.reference",
        "path": "Encounter.serviceProvider.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider.type",
        "path": "Encounter.serviceProvider.type",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.identifier",
        "path": "Encounter.serviceProvider.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.display",
        "path": "Encounter.serviceProvider.display",
        "max": "0"
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "max": "0"
      }
    ]
  }
}