PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.us.pacio@adi-1.0.0
    http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PACPComposition
description: This profile encompasses information that makes up the author’s advance care information plan.
package_name: rs/hl7.fhir.us.pacio
derivation: constraint
name: ADIPACPComposition
type: Composition
elements:
  author:
    type: Reference
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient']
    index: 0
  section:
    index: 1
    elements:
      text: {mustSupport: true, index: 2}
    required: [text]
    slicing:
      rules: open
      ordered: false
      description: Slice based on $this value
      discriminator:
      - {path: code, type: pattern}
      min: 1
      slices:
        healthcare_agent:
          match:
            code:
              coding:
              - {code: 81335-2, system: 'http://loinc.org'}
          schema:
            short: Healthcare agents, healthcare agent advisors, and consent regarding their roles, powers, and limitations
            constraint:
              HCA-section-entries: {human: 'If healthcare agent section entry exists, then the HCA consent entry and HCA relatedPerson entry must exist', source: 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PACPComposition', severity: error, expression: entry.exists().not() or (entry.where($this.resolve() is Consent).exists() and entry.where($this.resolve() is relatedPerson).exists())}
            index: 3
            extensions:
              ClauseExtension: {url: null, index: 4}
            elements:
              extension:
                index: 4
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 4}
              title: {mustSupport: true, index: 5}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81335-2, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 6
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-Participant', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-ParticipantConsent']
                index: 7
              emptyReason:
                short: This is only MS (must support) if the document types are supported.
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/pacio-adi/ValueSet/ADINoHealthcareAgentIncludedReasonVS'}
                index: 8
            required: [code, title]
        gpp_for_certain_health_condition:
          match:
            code:
              coding:
              - {code: 81336-0, system: 'http://loinc.org'}
          schema:
            short: Preference care plans defined for specific situations and/or conditions
            mustSupport: true
            index: 9
            extensions:
              ClauseExtension: {url: null, index: 10}
            elements:
              extension:
                index: 10
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 10}
              title: {mustSupport: true, index: 11}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81336-0, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 12
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PreferenceCarePlan']
                index: 13
            required: [code, title]
        gpp_personal_care_experience:
          match:
            code:
              coding:
              - {code: 81338-6, system: 'http://loinc.org'}
          schema:
            short: Quality of Life related personal care experiences, personal goals, and priorities
            mustSupport: true
            index: 14
            extensions:
              ClauseExtension: {url: null, index: 15}
            elements:
              extension:
                index: 15
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 15}
              title: {mustSupport: true, index: 16}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81338-6, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 17
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-CareExperiencePreference', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PersonalGoal', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PersonalPrioritiesOrganizer']
                index: 18
            required: [code, title]
        gpp_upon_death:
          match:
            code:
              coding:
              - {code: 81337-8, system: 'http://loinc.org'}
          schema:
            short: Goals, preferences, and priorities upon death
            mustSupport: true
            index: 19
            extensions:
              ClauseExtension: {url: null, index: 20}
            elements:
              extension:
                index: 20
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 20}
              title: {mustSupport: true, index: 21}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81337-8, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 22
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-AutopsyObservation', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-OrganDonationObservation', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PersonalGoal', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PersonalInterventionPreference', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PersonalPrioritiesOrganizer', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PreferenceCarePlan']
                index: 23
            required: [code, title]
        additional_documentation:
          match:
            code:
              coding:
              - {code: 77599-9, system: 'http://loinc.org'}
          schema:
            short: Observations regarding the existence of other advance directive related information
            mustSupport: true
            index: 24
            extensions:
              ClauseExtension: {url: null, index: 25}
            elements:
              extension:
                index: 25
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 25}
              title: {mustSupport: true, index: 26}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 77599-9, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 27
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentationObservation']
                index: 28
            required: [code, title]
        witness_and_notary:
          match:
            code:
              coding:
              - {code: 81339-4, system: 'http://loinc.org'}
          schema:
            short: Witness and notary information.  The first witness should be the author of the document
            mustSupport: true
            index: 29
            extensions:
              ClauseExtension: {url: null, index: 30}
            elements:
              extension:
                index: 30
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 30}
              title: {mustSupport: true, index: 31}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81339-4, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 32
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-Notary', 'http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-Witness']
                index: 33
            required: [code, title]
        administrative_information:
          match:
            code:
              coding:
              - {code: 81381-6, system: 'http://loinc.org'}
          schema:
            short: Administrative information associated with this personal advance care plan
            mustSupport: true
            index: 34
            extensions:
              ClauseExtension: {url: null, index: 35}
            elements:
              extension:
                index: 35
                slicing:
                  slices:
                    ClauseExtension:
                      match: {}
                      schema: {index: 35}
              title: {mustSupport: true, index: 36}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81381-6, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 37
            required: [code, title]
package_version: adi-1.0.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PACPComposition
base: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-Composition-Header
version: 1.0.0
required: [section]