PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.pacio-toc@1.0.0
    http://hl7.org/fhir/us/pacio-toc/StructureDefinition/TOC-Composition
description: This profile defines constraints that represent common administrative and demographic concepts for transitions of care information used in US Realm clinical documents.
package_name: hl7.fhir.us.pacio-toc
derivation: constraint
name: TOCComposition
type: Composition
elements:
  category:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 18761-7, system: 'http://loinc.org', display: Transfer Summary Note}
    index: 3
  date: {mustSupport: true, index: 6}
  encounter:
    type: Reference
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter|8.0.1']
    index: 5
  section:
    array: true
    min: 15
    index: 11
    elements:
      text: {mustSupport: true, index: 12}
    required: [text]
    slicing:
      rules: open
      ordered: false
      description: Slice based on $this value
      discriminator:
      - {path: code, type: value}
      min: 15
      slices:
        functional_status:
          match:
            code:
              coding:
              - {code: 47420-5, system: 'http://loinc.org'}
          schema:
            short: Functional Status
            mustSupport: true
            _required: true
            index: 28
            elements:
              title: {mustSupport: true, index: 29}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47420-5, system: 'http://loinc.org'}
                index: 30
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns|8.0.1', 'http://hl7.org/fhir/us/pacio-pfe/StructureDefinition/pfe-narrative-history-of-status', 'http://hl7.org/fhir/us/pacio-pfe/StructureDefinition/pfe-use-of-device']
                index: 31
              emptyReason: {mustSupport: true, index: 32}
            required: [title, code]
        problems:
          match:
            code:
              coding:
              - {code: 11450-4, system: 'http://loinc.org'}
          schema:
            short: Problems
            mustSupport: true
            _required: true
            index: 58
            elements:
              title: {mustSupport: true, index: 59}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 60
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation|8.0.1']
                index: 61
              emptyReason: {mustSupport: true, index: 62}
            required: [title, code]
        social_history:
          match:
            code:
              coding:
              - {code: 29762-2, system: 'http://loinc.org'}
          schema:
            short: Social History
            mustSupport: true
            _required: true
            index: 77
            elements:
              title: {mustSupport: true, index: 78}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29762-2, system: 'http://loinc.org'}
                index: 79
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|8.0.1', 'http://hl7.org/fhir/us/pacio-pfe/StructureDefinition/pfe-narrative-history-of-status']
                index: 80
              emptyReason: {mustSupport: true, index: 81}
            required: [title, code]
        discharge_instructions:
          match:
            code:
              coding:
              - {code: 69730-0, system: 'http://loinc.org'}
          schema:
            short: Discharge Instructions
            mustSupport: true
            _required: true
            index: 38
            elements:
              title: {mustSupport: true, index: 39}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 69730-0, system: 'http://loinc.org'}
                index: 40
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference|8.0.1']
                index: 41
              emptyReason: {mustSupport: true, index: 42}
            required: [title, code]
        behavioral_health:
          match:
            code:
              coding:
              - {code: behavioral_health_summary, system: 'http://hl7.org/fhir/us/pacio-toc/CodeSystem/toc-temp-cs'}
          schema:
            short: Behavioral Health
            mustSupport: true
            _required: true
            index: 23
            elements:
              title: {mustSupport: true, index: 24}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: behavioral_health_summary, system: 'http://hl7.org/fhir/us/pacio-toc/CodeSystem/toc-temp-cs'}
                index: 25
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation|8.0.1']
                index: 26
              emptyReason: {mustSupport: true, index: 27}
            required: [title, code]
        medications:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org'}
          schema:
            short: Medications
            mustSupport: true
            _required: true
            index: 48
            elements:
              title: {mustSupport: true, index: 49}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 50
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication|8.0.1', 'http://hl7.org/fhir/us/smp/StructureDefinition/smp-medication-list']
                index: 51
              emptyReason: {mustSupport: true, index: 52}
            required: [title, code]
        vital_signs:
          match:
            code:
              coding:
              - {code: 8716-3, system: 'http://loinc.org'}
          schema:
            short: Vital Signs
            mustSupport: true
            _required: true
            index: 82
            elements:
              title: {mustSupport: true, index: 83}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 8716-3, system: 'http://loinc.org'}
                index: 84
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs|8.0.1']
                index: 85
              emptyReason: {mustSupport: true, index: 86}
            required: [title, code]
        immunizations:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            short: Immunizations
            mustSupport: true
            _required: true
            index: 33
            elements:
              title: {mustSupport: true, index: 34}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 35
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization|8.0.1']
                index: 36
              emptyReason: {mustSupport: true, index: 37}
            required: [title, code]
        reason_for_referral:
          match:
            code:
              coding:
              - {code: 42349-1, system: 'http://loinc.org'}
          schema:
            short: Reason for Transfer
            mustSupport: true
            _required: true
            index: 67
            elements:
              title: {mustSupport: true, index: 68}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 42349-1, system: 'http://loinc.org'}
                index: 69
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/us/ccda/StructureDefinition/Discharge-Summary|1.2.0', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure|8.0.1']
                index: 70
              emptyReason: {mustSupport: true, index: 71}
            required: [title, code]
        procedures:
          match:
            code:
              coding:
              - {code: 47519-4, system: 'http://loinc.org'}
          schema:
            short: Procedures
            mustSupport: true
            _required: true
            index: 63
            elements:
              title: {mustSupport: true, index: 64}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 65
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure|8.0.1']
                index: 66
            required: [title, code]
        medical_devices:
          match:
            code:
              coding:
              - {code: 46264-8, system: 'http://loinc.org'}
          schema:
            short: Medical Devices
            mustSupport: true
            _required: true
            index: 43
            elements:
              title: {mustSupport: true, index: 44}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46264-8, system: 'http://loinc.org'}
                index: 45
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Device']
                index: 46
              emptyReason: {mustSupport: true, index: 47}
            required: [title, code]
        allergies:
          match:
            code:
              coding:
              - {code: 48765-2, system: 'http://loinc.org'}
          schema:
            short: Allergies and Adverse Reactions
            mustSupport: true
            _required: true
            index: 18
            elements:
              title: {mustSupport: true, index: 19}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 20
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance|8.0.1']
                index: 21
              emptyReason: {mustSupport: true, index: 22}
            required: [title, code]
        advance_directives:
          match:
            code:
              coding:
              - {code: 42348-3, system: 'http://loinc.org'}
          schema:
            short: Advance Directives
            mustSupport: true
            _required: true
            index: 13
            elements:
              title: {mustSupport: true, index: 14}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 42348-3, system: 'http://loinc.org'}
                index: 15
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference']
                index: 16
              emptyReason: {mustSupport: true, index: 17}
            required: [title, code]
        plan_of_care:
          match:
            code:
              coding:
              - {code: 18776-5, system: 'http://loinc.org'}
          schema:
            short: Discharge Care Plan
            mustSupport: true
            _required: true
            index: 53
            elements:
              title: {mustSupport: true, index: 54}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18776-5, system: 'http://loinc.org'}
                index: 55
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan|8.0.1']
                index: 56
              emptyReason: {mustSupport: true, index: 57}
            required: [title, code]
        clinical_results:
          match:
            code:
              coding:
              - {code: 30954-2, system: 'http://loinc.org'}
          schema:
            short: Clinical Results
            mustSupport: true
            _required: true
            index: 72
            elements:
              title: {mustSupport: true, index: 73}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 74
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-result|8.0.1']
                index: 75
              emptyReason: {mustSupport: true, index: 76}
            required: [title, code]
  type:
    binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/doc-typecodes'}
    mustSupport: true
    index: 2
  title: {mustSupport: true, index: 8}
  author:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole|8.0.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|8.0.1']
    index: 7
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization|8.0.1']
    index: 10
  language: {mustSupport: true, index: 0}
  identifier: {mustSupport: true, index: 1}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|8.0.1']
    index: 4
  confidentiality: {index: 9}
package_version: 1.0.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/pacio-toc/StructureDefinition/TOC-Composition
base: http://hl7.org/fhir/StructureDefinition/clinicaldocument
version: 1.0.0
required: [identifier, subject, custodian, language]