PackagesCanonicalsLogsProblems
    Packages
    de.medizininformatikinitiative.kerndatensatz.consent@2027.0.0-ballot
    https://www.medizininformatik-initiative.de/fhir/modul-consent/StructureDefinition/mii-pr-consent-einwilligung
description: Dieses Profil beschreibt eine Einwilligung in der Medizininformatik-Initiative.
package_name: de.medizininformatikinitiative.kerndatensatz.consent
derivation: constraint
name: MII_PR_Consent_Einwilligung
type: Consent
elements:
  patient:
    elements:
      reference: {mustSupport: true, index: 25}
      identifier:
        mustSupport: true
        index: 26
        elements:
          system: {mustSupport: true, index: 27}
          value: {mustSupport: true, index: 28}
        required: [value, system]
  category:
    array: true
    min: 2
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 2
      slices:
        consentCategory:
          match:
            coding:
            - {code: 57016-8, system: 'http://loinc.org'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: 57016-8, system: 'http://loinc.org'}
            _required: true
            index: 9
            elements:
              coding:
                mustSupport: true
                index: 10
                elements:
                  system: {mustSupport: true, index: 11}
                  code: {mustSupport: true, index: 12}
                required: [system, code]
            required: [coding]
        mii:
          match:
            coding:
            - {code: 2.16.840.1.113883.3.1937.777.24.2.184, system: 'https://www.medizininformatik-initiative.de/fhir/modul-consent/CodeSystem/mii-cs-consent-version-modules'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: 2.16.840.1.113883.3.1937.777.24.2.184, system: 'https://www.medizininformatik-initiative.de/fhir/modul-consent/CodeSystem/mii-cs-consent-version-modules'}
            _required: true
            index: 13
            elements:
              coding:
                mustSupport: true
                index: 14
                elements:
                  system: {mustSupport: true, index: 15}
                  code: {mustSupport: true, index: 16}
                required: [system, code]
            required: [coding]
        resultType:
          match:
            coding:
            - {system: 'http://fhir.de/ConsentManagement/CodeSystem/ResultType'}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.de/ConsentManagement/ValueSet/ResultType'}
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {system: 'http://fhir.de/ConsentManagement/CodeSystem/ResultType'}
            array: true
            index: 17
            elements:
              coding:
                mustSupport: true
                index: 18
                elements:
                  system: {mustSupport: true, index: 19}
                  code: {mustSupport: true, index: 20}
                required: [system, code]
            required: [coding]
        templateType:
          match:
            coding:
            - {system: 'http://fhir.de/ConsentManagement/CodeSystem/TemplateType'}
          schema:
            binding: {strength: extensible, valueSet: 'http://fhir.de/ConsentManagement/ValueSet/TemplateType'}
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {system: 'http://fhir.de/ConsentManagement/CodeSystem/TemplateType'}
            array: true
            index: 21
            elements:
              coding:
                mustSupport: true
                index: 22
                elements:
                  system: {mustSupport: true, index: 23}
                  code: {mustSupport: true, index: 24}
                required: [system, code]
            required: [coding]
  provision:
    elements:
      type: {mustSupport: true, index: 33}
      period:
        index: 34
        elements:
          start: {mustSupport: true, index: 35}
          end: {mustSupport: true, index: 36}
        required: [start]
      action: {index: 37}
      code: {index: 38}
      provision:
        type: BackboneElement
        mustSupport: true
        index: 39
        elements:
          type: {mustSupport: true, index: 40}
          period:
            mustSupport: true
            index: 41
            elements:
              start: {mustSupport: true, index: 42}
              end: {mustSupport: true, index: 43}
            required: [start]
          action: {index: 44}
          code:
            binding: {strength: required, valueSet: 'https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-policy'}
            mustSupport: true
            index: 45
            elements:
              coding:
                mustSupport: true
                index: 46
                elements:
                  system: {mustSupport: true, index: 47}
                  code: {mustSupport: true, index: 48}
                required: [system, code]
            required: [coding]
          provision: {index: 49}
        required: [type, period, code]
    required: [type, period]
  meta:
    mustSupport: true
    index: 1
    elements:
      source: {mustSupport: true, index: 2}
      profile: {mustSupport: true, index: 3}
  scope:
    elements:
      coding:
        index: 5
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/consentscope'}
            index: 6
          code:
            pattern: {type: Code, value: research}
            index: 7
        required: [system, code]
    required: [coding]
  policy:
    index: 31
    elements:
      uri: {index: 32}
  dateTime: {short: Erstellungszeitpunkt der Einwilligung, index: 29}
  status: {index: 4}
  id: {mustSupport: true, index: 0}
  source[x]:
    elements:
      reference: {index: 30}
package_version: 2027.0.0-ballot
class: profile
kind: resource
url: https://www.medizininformatik-initiative.de/fhir/modul-consent/StructureDefinition/mii-pr-consent-einwilligung
base: http://fhir.de/ConsentManagement/StructureDefinition/Consent
version: 2027.0.0-ballot
required: [policy]