<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="KBV-PR-PTV-CarePlan" />
  <url value="https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_CarePlan" />
  <version value="1.0.0" />
  <name value="KBV_PR_PTV_CarePlan" />
  <status value="draft" />
  <date value="2026-05-01" />
  <publisher value="Kassenärztliche Bundesvereinigung (KBV)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.kbv.de" />
    </telecom>
  </contact>
  <description value="Das Profil bildet die Antragsdaten für eine psychotherapeutische Behandlung ab." />
  <copyright value="Copyright © [2025], Kassenärztliche Bundesvereinigung (KBV). All rights reserved. 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 &amp;quot;AS IS.&amp;quot; ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="CarePlan" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
  <derivation value="constraint" />
  <differential>
    <element id="CarePlan">
      <path value="CarePlan" />
      <short value="Antragsdaten für den Erstantrag Psyhotherapiebehandlung" />
      <definition value="Dieses Profil stellt die gesamten Daten zum Antrag auf Psychotherapie dar. Diese Daten werden vom Psychotherapeuten an die Krankenkasse gesendet. In diesem Profil können Angaben zur Art und Umfang der Psychotherapie sowie zu begründenden Diagnosen gemacht werden" />
      <constraint>
        <key value="-PTV-angabeDurchfuehrungKombinationsbehandlungPflicht" />
        <severity value="error" />
        <human value="Wird beim Antrag einer psychotherapeutischen Behandlung das Setting der Kombinationsbehandlungen (überwiegend Einzel oder überwiegend Gruppe) ausgewählt, müssen ebenfalls Angaben zur Durchführungsart (Alleinige Durchführung oder durch Zwei Therapeuten) dieser Kombinationsbehandlung gemacht werden." />
        <expression value="Setting.valueCodeableConcept.coding    .where(    system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_PTV_Setting' and (code = 'Kombi_E' or code = 'Kombi_G')).exists() implies Durchfuehrung_Kombinationsbehandlung.value[x].exists()" />
      </constraint>
      <constraint>
        <key value="-PTV-angabeSettingKombinationsbehandlungPflicht" />
        <severity value="error" />
        <human value="Wird beim Antrag einer psychotherapeutischen Behandlung eine Kombination aus Einzel- und Gruppentherapie durch zwei Psychotherapeuten ausgewählt, muss ebenfalls angegeben werden, ob in der beantragenden Praxis die Einzel- oder die Gruppentherapie durchgeführt wird." />
        <expression value="Durchfuehrung_Kombinationsbehandlung.valueCodeableConcept.coding    .where(    system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_PTV_Execution_Combination_Therapy' and (code = 'Gemeinsam' )).exists() implies Setting_Kombinationsbehandlung.value[x].exists()" />
      </constraint>
      <constraint>
        <key value="-PTV-angabeErbrachteTherapieeinheitenPflicht" />
        <severity value="error" />
        <human value="Falls eine Kurzzeittherapie nach einer Akutbehandlung (Antragsart) beantragt wird, muss die Anzahl der erbrachten bzw. geplanten Therapieeinheiten der Akutbehandlung angegeben werden." />
        <expression value="Antragsart.valueCodeableConcept.coding    .where(    system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_PTV_Application_Type' and (code = 'KZT1_nach_Akutbehandlung' or code = 'KZT2_nach_Akutbehandlung')).exists() implies Erbrachte_Therapieeinheiten.value[x].exists()" />
      </constraint>
      <constraint>
        <key value="-PTV-angabeVerfahrenVerbot-1" />
        <severity value="error" />
        <human value="Falls eine alleinige Durchführung der Kombinationsbehandlung beantraggt wird, darf nur eine Psychotherapie beantragt werden, die zwei Richtlinienverfahren kombiniert." />
        <expression value="Durchfuehrung_Kombinationsbehandlung.valueCodeableConcept.coding.where(system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_PTV_Execution_Combination_Therapy' and code = 'Allein').exists() implies (entry.where(Verfahren.valueCodeableConcept.coding.code = 'AP_E+TP_G').exists() or entry.where(Verfahren.valueCodeableConcept.coding.code = 'AP_G+TP_E').exists())" />
      </constraint>
      <constraint>
        <key value="-PTV-angabeVerfahrenVerbot-2" />
        <severity value="error" />
        <human value="Falls eine gemeinsame Durchführung der Kombinationsbehandlung beantraggt wird, darf nur eine Psychotherapie beantragt werden, die nur nach einem Richtlinienverfahren durchgeführt wird." />
        <expression value="Durchfuehrung_Kombinationsbehandlung.valueCodeableConcept.coding.where(system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_PTV_Execution_Combination_Therapy' and code = 'Gemeinsam').exists() implies (entry.where(Verfahren.valueCodeableConcept.coding.code != 'AP_E+TP_G').exists() and entry.where(Verfahren.valueCodeableConcept.coding.code != 'AP_G+TP_E').exists())" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.id">
      <path value="CarePlan.id" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.meta">
      <path value="CarePlan.meta" />
      <short value="Metadaten zu dieser Ressource" />
      <definition value="Die Metadaten zur Ressource. Hierbei handelt es sich um Inhalte, die von der Infrastruktur verwaltet werden. Änderungen an den Inhalten sind nicht immer mit Versionsänderungen der Ressource verbunden." />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.meta.id">
      <path value="CarePlan.meta.id" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.meta.extension">
      <path value="CarePlan.meta.extension" />
      <max value="0" />
    </element>
    <element id="CarePlan.meta.versionId">
      <path value="CarePlan.meta.versionId" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.meta.lastUpdated">
      <path value="CarePlan.meta.lastUpdated" />
      <max value="0" />
    </element>
    <element id="CarePlan.meta.source">
      <path value="CarePlan.meta.source" />
      <max value="0" />
    </element>
    <element id="CarePlan.meta.profile">
      <path value="CarePlan.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.meta.profile:PTVProfile">
      <path value="CarePlan.meta.profile" />
      <sliceName value="PTVProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_CarePlan|1.0" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.meta.security">
      <path value="CarePlan.meta.security" />
      <max value="0" />
    </element>
    <element id="CarePlan.meta.tag">
      <path value="CarePlan.meta.tag" />
      <max value="0" />
    </element>
    <element id="CarePlan.implicitRules">
      <path value="CarePlan.implicitRules" />
      <max value="0" />
    </element>
    <element id="CarePlan.language">
      <path value="CarePlan.language" />
      <max value="0" />
    </element>
    <element id="CarePlan.text">
      <path value="CarePlan.text" />
      <max value="0" />
    </element>
    <element id="CarePlan.contained">
      <path value="CarePlan.contained" />
      <max value="0" />
    </element>
    <element id="CarePlan.extension">
      <path value="CarePlan.extension" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.extension:Therapieangaben">
      <path value="CarePlan.extension" />
      <sliceName value="Therapieangaben" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.kbv.de/StructureDefinition/KBV_EX_PTV_Therapy_Info" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
    </element>
    <element id="CarePlan.modifierExtension">
      <path value="CarePlan.modifierExtension" />
      <max value="0" />
    </element>
    <element id="CarePlan.identifier">
      <path value="CarePlan.identifier" />
      <max value="0" />
    </element>
    <element id="CarePlan.instantiatesCanonical">
      <path value="CarePlan.instantiatesCanonical" />
      <max value="0" />
    </element>
    <element id="CarePlan.instantiatesUri">
      <path value="CarePlan.instantiatesUri" />
      <max value="0" />
    </element>
    <element id="CarePlan.basedOn">
      <path value="CarePlan.basedOn" />
      <max value="0" />
    </element>
    <element id="CarePlan.replaces">
      <path value="CarePlan.replaces" />
      <max value="0" />
    </element>
    <element id="CarePlan.partOf">
      <path value="CarePlan.partOf" />
      <max value="0" />
    </element>
    <element id="CarePlan.status">
      <path value="CarePlan.status" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.intent">
      <path value="CarePlan.intent" />
      <fixedCode value="order" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.category">
      <path value="CarePlan.category" />
      <max value="0" />
    </element>
    <element id="CarePlan.category.coding">
      <path value="CarePlan.category.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Beschreibt die Altersspanne der Psychotherapie-Patienten." />
      </binding>
    </element>
    <element id="CarePlan.category.coding.system">
      <path value="CarePlan.category.coding.system" />
      <min value="1" />
    </element>
    <element id="CarePlan.category.coding.version">
      <path value="CarePlan.category.coding.version" />
      <max value="0" />
    </element>
    <element id="CarePlan.category.coding.code">
      <path value="CarePlan.category.coding.code" />
      <min value="1" />
    </element>
    <element id="CarePlan.category.coding.display">
      <path value="CarePlan.category.coding.display" />
      <min value="1" />
    </element>
    <element id="CarePlan.category.coding.userSelected">
      <path value="CarePlan.category.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="CarePlan.title">
      <path value="CarePlan.title" />
      <max value="0" />
    </element>
    <element id="CarePlan.description">
      <path value="CarePlan.description" />
      <max value="0" />
    </element>
    <element id="CarePlan.subject">
      <path value="CarePlan.subject" />
      <short value="Für wen der Antrag gestellt wird." />
      <definition value="Verweis auf den Patienten, für den der Antrag gestellt wurde." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.3" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.subject.id">
      <path value="CarePlan.subject.id" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.subject.extension">
      <path value="CarePlan.subject.extension" />
      <max value="0" />
    </element>
    <element id="CarePlan.subject.reference">
      <path value="CarePlan.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.subject.type">
      <path value="CarePlan.subject.type" />
      <max value="0" />
    </element>
    <element id="CarePlan.subject.identifier">
      <path value="CarePlan.subject.identifier" />
      <max value="0" />
    </element>
    <element id="CarePlan.subject.display">
      <path value="CarePlan.subject.display" />
      <max value="0" />
    </element>
    <element id="CarePlan.encounter">
      <path value="CarePlan.encounter" />
      <max value="0" />
    </element>
    <element id="CarePlan.period">
      <path value="CarePlan.period" />
      <max value="0" />
    </element>
    <element id="CarePlan.created">
      <path value="CarePlan.created" />
      <max value="0" />
    </element>
    <element id="CarePlan.author">
      <path value="CarePlan.author" />
      <short value="Verantwortlicher Psychotherapeut" />
      <definition value="Der ausgebildete Psychotherapeut, der für die Antragsstellung verantwortlich ist und die Behandlung federführend begleitet" />
      <max value="0" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.author.reference">
      <path value="CarePlan.author.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.author.type">
      <path value="CarePlan.author.type" />
      <max value="0" />
    </element>
    <element id="CarePlan.author.identifier">
      <path value="CarePlan.author.identifier" />
      <max value="0" />
    </element>
    <element id="CarePlan.author.display">
      <path value="CarePlan.author.display" />
      <max value="0" />
    </element>
    <element id="CarePlan.contributor">
      <path value="CarePlan.contributor" />
      <max value="0" />
    </element>
    <element id="CarePlan.careTeam">
      <path value="CarePlan.careTeam" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_CareTeam" />
      </type>
    </element>
    <element id="CarePlan.addresses">
      <path value="CarePlan.addresses" />
      <short value="ICD-10-Diagnosen" />
      <definition value="Antragsgebründende Diagnosen, die eine psychotherapeutische Behandlung rechtfertigen würden" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Condition_ICD" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.addresses.reference">
      <path value="CarePlan.addresses.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.addresses.type">
      <path value="CarePlan.addresses.type" />
      <max value="0" />
    </element>
    <element id="CarePlan.addresses.identifier">
      <path value="CarePlan.addresses.identifier" />
      <max value="0" />
    </element>
    <element id="CarePlan.addresses.display">
      <path value="CarePlan.addresses.display" />
      <max value="0" />
    </element>
    <element id="CarePlan.supportingInfo">
      <path value="CarePlan.supportingInfo" />
      <max value="0" />
    </element>
    <element id="CarePlan.goal">
      <path value="CarePlan.goal" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity">
      <path value="CarePlan.activity" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity.detail.extension">
      <path value="CarePlan.activity.detail.extension" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity.detail.modifierExtension">
      <path value="CarePlan.activity.detail.modifierExtension" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity.detail.kind">
      <path value="CarePlan.activity.detail.kind" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity.detail.instantiatesCanonical">
      <path value="CarePlan.activity.detail.instantiatesCanonical" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity.detail.instantiatesUri">
      <path value="CarePlan.activity.detail.instantiatesUri" />
      <max value="0" />
    </element>
    <element id="CarePlan.note">
      <path value="CarePlan.note" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>