PackagesCanonicalsLogsProblems
    Packages
    racsel.org@0.2.1
    http://racsel.org/StructureDefinition/LACCompositionMeOw
description: This profile defines the structure of the clinical document sent as a cross-border medication overview - MeOw.
package_name: racsel.org
derivation: constraint
name: LACCompositionMeOw
type: Composition
elements:
  status:
    pattern: {type: Code, value: final}
    index: 0
  type:
    elements:
      coding:
        index: 1
        elements:
          system:
            pattern: {type: Uri, value: 'http://loinc.org'}
            index: 2
          code:
            pattern: {type: Code, value: 56445-0}
            index: 3
          display:
            pattern: {type: String, value: Medication summary Document}
            index: 4
    required: [coding]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://racsel.org/StructureDefinition/LACPatient']
    index: 5
  date: {mustSupport: true, index: 6}
  author: {mustSupport: true, index: 7}
  title: {mustSupport: true, index: 8}
  section:
    mustSupport: true
    index: 9
    elements:
      title: {mustSupport: true, index: 10}
      code: {mustSupport: true, index: 11}
      text: {mustSupport: true, index: 12}
    required: [text, title, code]
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      slices:
        Medicamentos:
          match:
            code:
              coding: {code: 55112-7}
          schema:
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 13
            elements:
              title:
                pattern: {type: String, value: Medications}
                index: 14
              code:
                elements:
                  coding:
                    index: 15
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 16
                      code:
                        pattern: {type: Code, value: 55112-7}
                        index: 17
                      display:
                        pattern: {type: String, value: Document summary}
                        index: 18
                    required: [code]
                required: [coding]
              text: {short: Description of the medications section., index: 19}
              entry:
                type: Reference
                short: Entry in the medications section.
                mustSupport: true
                refers: ['http://racsel.org/StructureDefinition/LACMedicationStatementMeOw']
                index: 20
                elements:
                  reference: {short: Reference to a MedicationStatement resource that details the patient medication., index: 21}
package_version: 0.2.1
class: profile
kind: resource
url: http://racsel.org/StructureDefinition/LACCompositionMeOw
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.2.1
required: [section, subject]