PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.ecr@0.2.0
    http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-composition
description: 'The Electronic Case Reporting Composition profile establishes the core elements, extensions, vocabularies and value sets for representing an electronic initial case report (eICR). It describes the content requirements for the initial Case Report including:         \n\n- Patient demographics         \n- Patient pregnancy status         \n- Patient occupation and travel history         \n- Provider and Facility information         \n- Laboratory orders tests and results         \n- Signs and Symptoms and Diagnosis         \n- Medication and Immunization History         \n- Flags for the existence of reportable condition trigger codes in diagnoses and ordered/resulted laboratory tests.'
package_name: hl7.fhir.us.ecr
derivation: constraint
name: eicr-composition
type: Composition
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        extensionEICRManuallyInitiatedReason:
          match: {url: null}
          schema: {type: Extension, short: Initial Case Report Manual Initiation Reason, mustSupport: true, url: h, index: 1}
          max: 1
  identifier: {short: eICR Document Id, index: 2}
  type:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 55751-2, system: 'http://loinc.org'}
    index: 3
  subject:
    type: Reference
    isModifier: false
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/ecr-patient']
    index: 4
  encounter:
    type: Reference
    isModifier: false
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-encounter']
    index: 5
  date: {isModifier: false, mustSupport: true, index: 6}
  author:
    type: Reference
    isModifier: false
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'http://hl7.org/fhir/us/ecr/StructureDefinition/ecr-organization']
    index: 7
  section:
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: code, type: pattern}
      min: null
      slices:
        sliceHistoryOfPresentIllnessSection:
          match:
            code:
              coding:
              - {code: 10164-2, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: History of Present Illness Section
            mustSupport: true
            _required: true
            index: 14
            elements:
              code:
                short: History of Present Illness
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10164-2, system: 'http://loinc.org'}
                index: 15
              text: {short: History of present illness, mustSupport: true, index: 16}
            required: [text, code]
        sliceEncountersSection:
          match:
            code:
              coding:
              - {code: 46240-8, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Encounters Section
            mustSupport: true
            _required: true
            index: 9
            elements:
              code:
                short: Encounters
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46240-8, system: 'http://loinc.org'}
                index: 10
              text: {mustSupport: true, index: 11}
              entry:
                mustSupport: true
                index: 12
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    sliceEICREncounter:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-encounter']
                        index: 13
            required: [text, code]
        sliceMedicationsAdministeredSection:
          match:
            code:
              coding:
              - {code: 29549-3, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Medications Administered Section
            mustSupport: true
            _required: true
            index: 35
            elements:
              code:
                short: Medications Administered
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29549-3, system: 'http://loinc.org'}
                index: 36
              text: {mustSupport: true, index: 37}
              entry:
                mustSupport: true
                index: 38
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    USCoreMedicationStatement:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement']
                        index: 39
            required: [text, code]
        sliceReasonForVisitSection:
          match:
            code:
              coding:
              - {code: 29299-5, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Reason for Visit Section
            mustSupport: true
            _required: true
            index: 17
            elements:
              code:
                short: Reason for Visit
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29299-5, system: 'http://loinc.org'}
                index: 18
              text: {short: Reason for visit, mustSupport: true, index: 19}
            required: [text, code]
        sliceImmunizationsSection:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            short: Immunizations Section
            isModifier: false
            mustSupport: true
            index: 56
            elements:
              code:
                short: Immunizations
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 57
              text: {mustSupport: true, index: 58}
              entry:
                mustSupport: true
                index: 59
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    sliceUSCoreImmunization:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization']
                        _required: true
                        index: 60
                      min: 1
            required: [text, code]
        sliceResultsSection:
          match:
            code:
              coding:
              - {code: 30954-2, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Results Section
            mustSupport: true
            _required: true
            index: 40
            elements:
              code:
                short: Relevant diagnostic tests and/or laboratory data
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 41
              text: {mustSupport: true, index: 42}
              entry:
                index: 43
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    sliceUSCoreObservationResults:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults']
                        index: 44
                        extensions:
                          sliceTriggerUSCoreObservationResults:
                            url: h
                            type: Extension
                            short: eICR Trigger Code Flag
                            mustSupport: true
                            index: 46
                            elements:
                              url:
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                index: 47
                        elements:
                          extension:
                            index: 45
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                sliceTriggerUSCoreObservationResults:
                                  match: {url: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                  schema:
                                    type: Extension
                                    short: eICR Trigger Code Flag
                                    mustSupport: true
                                    url: h
                                    index: 46
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                        index: 47
            required: [text, code]
        slicePlanOfTreatmentSection:
          match:
            code:
              coding:
              - {code: 18776-5, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Plan of Treatment Section
            mustSupport: true
            _required: true
            index: 48
            elements:
              code:
                short: Plan of Treatment
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18776-5, system: 'http://loinc.org'}
                index: 49
              text: {mustSupport: true, index: 50}
              entry:
                mustSupport: true
                index: 51
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    sliceEICRProcedureRequest:
                      match: {}
                      schema:
                        type: Reference
                        short: eICR Procedure Request
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-procedurerequest']
                        index: 52
                        extensions:
                          sliceTriggerEICRProcedureRequest:
                            url: h
                            type: Extension
                            short: eICR Trigger Code Flag
                            mustSupport: true
                            index: 54
                            elements:
                              url:
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                index: 55
                        elements:
                          extension:
                            index: 53
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                sliceTriggerEICRProcedureRequest:
                                  match: {url: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                  schema:
                                    type: Extension
                                    short: eICR Trigger Code Flag
                                    mustSupport: true
                                    url: h
                                    index: 54
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                        index: 55
            required: [text, code]
        sliceSocialHistorySection:
          match:
            code:
              coding:
              - {code: 29762-2, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Social History Section
            mustSupport: true
            _required: true
            index: 20
            elements:
              code:
                short: Social History
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29762-2, system: 'http://loinc.org'}
                index: 21
              text: {mustSupport: true, index: 22}
              entry:
                mustSupport: true
                index: 23
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    sliceTravelHistory:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-travel-history']
                        index: 24
                    slicePregnancyStatus:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/pregnancy-status']
                        index: 25
                      max: 1
                    sliceOccupationHistory:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-occupationhistory']
                        index: 26
            required: [text, code]
        sliceProblemSection:
          match:
            code:
              coding:
              - {code: 11450-4, system: 'http://loinc.org'}
          schema:
            isModifier: false
            short: Problem Section
            mustSupport: true
            _required: true
            index: 27
            elements:
              code:
                short: Problem List
                isModifier: false
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 28
              text: {mustSupport: true, index: 29}
              entry:
                mustSupport: true
                index: 30
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    sliceEICRCondition:
                      match: {}
                      schema:
                        type: Reference
                        isModifier: false
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-condition']
                        index: 31
                        extensions:
                          sliceTriggerCondition:
                            url: h
                            type: Extension
                            short: eICR Trigger Code Flag
                            mustSupport: true
                            index: 33
                            elements:
                              url:
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                index: 34
                        elements:
                          extension:
                            index: 32
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                sliceTriggerCondition:
                                  match: {url: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                  schema:
                                    type: Extension
                                    short: eICR Trigger Code Flag
                                    mustSupport: true
                                    url: h
                                    index: 33
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/extension-trigger'}
                                        index: 34
            required: [text, code]
package_version: 0.2.0
extensions:
  extensionEICRManuallyInitiatedReason: {url: h, max: 1, type: Extension, short: Initial Case Report Manual Initiation Reason, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.2.0
required: [encounter]