PackagesCanonicalsLogsProblems
    Packages
    synapxe.sgcdi@1.0.8
    https://fhir.synapxe.sg/StructureDefinition/profile-dischargesummary
description: null
package_name: synapxe.sgcdi
derivation: constraint
name: DischargeSummary
type: Composition
elements:
  category: {type: CodeableConcept, index: 10}
  encounter:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-ds-encounter']
    index: 13
    elements:
      display: {index: 14}
  name: {index: 18}
  section:
    index: 51
    elements:
      orderedBy: {index: 62}
      section: {index: 71}
      title: {index: 55}
      emptyReason: {index: 70}
      author: {index: 60}
      extension: {index: 53}
      id: {index: 52}
      code:
        elements:
          coding:
            index: 56
            elements:
              system: {index: 57}
              code: {index: 58}
              display: {index: 59}
            required: [display, system, code]
        required: [coding]
      focus: {index: 61}
      entry:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-allergyintolerance', 'https://fhir.synapxe.sg/StructureDefinition/profile-ds-diagnosis', 'https://fhir.synapxe.sg/StructureDefinition/profile-flag', 'https://fhir.synapxe.sg/StructureDefinition/profile-medicalcertificate']
        index: 63
        elements:
          id: {index: 64}
          extension: {index: 65}
          reference: {index: 66}
          type: {index: 67}
          identifier: {index: 68}
          display: {index: 69}
        extensions: {}
        required: [reference]
      modifierExtension: {index: 54}
    extensions: {}
    required: [entry, title]
    slicing:
      rules: open
      discriminator:
      - {path: title, type: value}
      min: 1
      slices:
        AllergyADR:
          match: {title: AllergyADR}
          schema:
            index: 72
            elements:
              orderedBy: {index: 81}
              section: {index: 90}
              title:
                pattern: {type: String, value: AllergyADR}
                index: 76
              emptyReason: {index: 89}
              author: {index: 78}
              extension: {index: 74}
              id: {index: 73}
              code: {index: 77}
              focus: {index: 79}
              entry:
                type: Reference
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-allergyintolerance']
                index: 82
                elements:
                  id: {index: 83}
                  extension: {index: 84}
                  reference: {index: 85}
                  type: {index: 86}
                  identifier: {index: 87}
                  display: {index: 88}
                extensions: {}
                required: [reference]
              modifierExtension: {index: 75}
              text: {index: 80}
            extensions: {}
            required: [entry, title]
        Alerts:
          match: {title: Alerts}
          schema:
            index: 91
            elements:
              orderedBy: {index: 100}
              section: {index: 109}
              title:
                pattern: {type: String, value: Alerts}
                index: 95
              emptyReason: {index: 108}
              author: {index: 97}
              extension: {index: 93}
              id: {index: 92}
              code: {index: 96}
              focus: {index: 98}
              entry:
                type: Reference
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-flag']
                index: 101
                elements:
                  id: {index: 102}
                  extension: {index: 103}
                  reference: {index: 104}
                  type: {index: 105}
                  identifier: {index: 106}
                  display: {index: 107}
                extensions: {}
                required: [reference]
              modifierExtension: {index: 94}
              text: {index: 99}
            extensions: {}
            required: [entry, title]
        Diagnosis:
          match: {title: Diagnosis}
          schema:
            _required: true
            index: 110
            elements:
              orderedBy: {index: 119}
              section: {index: 128}
              title:
                pattern: {type: String, value: Diagnosis}
                index: 114
              emptyReason: {index: 127}
              author: {index: 116}
              extension: {index: 112}
              id: {index: 111}
              code: {index: 115}
              focus: {index: 117}
              entry:
                type: Reference
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-ds-diagnosis']
                index: 120
                elements:
                  id: {index: 121}
                  extension: {index: 122}
                  reference: {index: 123}
                  type: {index: 124}
                  identifier: {index: 125}
                  display: {index: 126}
                extensions: {}
                required: [reference]
              modifierExtension: {index: 113}
              text: {index: 118}
            extensions: {}
            required: [entry, title]
        Investigations:
          match: {title: Investigations}
          schema:
            index: 129
            elements:
              orderedBy: {index: 138}
              section: {index: 141}
              title:
                pattern: {type: String, value: Investigations}
                index: 133
              emptyReason: {index: 140}
              author: {index: 135}
              extension: {index: 131}
              id: {index: 130}
              code: {index: 134}
              focus: {index: 136}
              entry: {index: 139}
              modifierExtension: {index: 132}
              text: {index: 137}
            extensions: {}
            required: [text, title]
        MedicationRequests:
          match: {title: null}
          schema:
            index: 142
            elements:
              orderedBy: {index: 151}
              section: {index: 160}
              title: {index: 146}
              emptyReason: {index: 159}
              author: {index: 148}
              extension: {index: 144}
              id: {index: 143}
              code: {index: 147}
              focus: {index: 149}
              entry:
                type: Reference
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-ds-medicationrequest']
                index: 152
                elements:
                  id: {index: 153}
                  extension: {index: 154}
                  reference: {index: 155}
                  type: {index: 156}
                  identifier: {index: 157}
                  display: {index: 158}
                extensions: {}
                required: [reference]
              modifierExtension: {index: 145}
              text: {index: 150}
            extensions: {}
            required: [entry]
        MedicalCertificates:
          match: {title: null}
          schema:
            index: 161
            elements:
              orderedBy: {index: 170}
              section: {index: 179}
              title: {index: 165}
              emptyReason: {index: 178}
              author: {index: 167}
              extension: {index: 163}
              id: {index: 162}
              code: {index: 166}
              focus: {index: 168}
              entry:
                type: Reference
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-medicalcertificate']
                index: 171
                elements:
                  id: {index: 172}
                  extension: {index: 173}
                  reference: {index: 174}
                  type: {index: 175}
                  identifier: {index: 176}
                  display: {index: 177}
                extensions: {}
                required: [reference]
              modifierExtension: {index: 164}
              text: {index: 169}
            extensions: {}
            required: [entry]
        ClinicalSynopsis:
          match: {title: ClinicalSynopsis}
          schema:
            _required: true
            index: 180
            elements:
              orderedBy: {index: 198}
              section: {index: 201}
              title:
                pattern: {type: String, value: ClinicalSynopsis}
                index: 184
              emptyReason: {index: 200}
              author: {index: 195}
              extension: {index: 182}
              id: {index: 181}
              code:
                elements:
                  id: {index: 185}
                  extension: {index: 186}
                  coding:
                    index: 187
                    elements:
                      id: {index: 188}
                      extension: {index: 189}
                      system: {index: 190}
                      code: {index: 191}
                      display: {index: 192}
                      userSelected: {index: 193}
                    extensions: {}
                    required: [display, system, code]
                  text: {index: 194}
                extensions: {}
                required: [coding]
              focus: {index: 196}
              entry: {index: 199}
              modifierExtension: {index: 183}
              text: {index: 197}
            extensions: {}
            required: [text, title]
        Procedures:
          match: {title: Procedure}
          schema:
            index: 202
            elements:
              orderedBy: {index: 211}
              section: {index: 214}
              title:
                pattern: {type: String, value: Procedure}
                index: 206
              emptyReason: {index: 213}
              author: {index: 208}
              extension: {index: 204}
              id: {index: 203}
              code: {index: 207}
              focus: {index: 209}
              entry:
                type: Reference
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-ds-procedure']
                index: 212
              modifierExtension: {index: 205}
              text: {index: 210}
            extensions: {}
            required: [entry, title]
  useContext: {index: 15}
  attester:
    index: 20
    elements:
      id: {index: 21}
      extension: {index: 22}
      modifierExtension: {index: 23}
      mode:
        type: CodeableConcept
        index: 24
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://hl7.org/fhir/CodeSystem/composition-attestation-mode'}
                index: 25
              code:
                pattern: {type: Code, value: official}
                index: 26
      time: {index: 27}
      party:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
        index: 28
        elements:
          display: {index: 29}
        required: [display]
    extensions: {}
    required: [time, party]
  type:
    type: CodeableConcept
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/nehr-doc-types'}
    index: 8
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/nehr-doc-types'}
            index: 9
  note: {type: Annotation, index: 19}
  author:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
    index: 16
    elements:
      display: {index: 17}
    required: [display]
  contained: {index: 0}
  event:
    index: 35
    elements:
      id: {index: 36}
      extension: {index: 37}
      modifierExtension: {index: 38}
      period: {index: 39}
      detail:
        index: 40
        elements:
          id: {index: 41}
          extension: {index: 42}
          concept: {index: 43}
          reference:
            type: Reference
            refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-ds-procedure']
            index: 44
            elements:
              id: {index: 45}
              extension: {index: 46}
              reference: {index: 47}
              type: {index: 48}
              identifier: {index: 49}
              display: {index: 50}
            extensions: {}
            required: [reference]
        extensions: {}
        required: [reference]
    extensions: {}
    required: [detail]
  custodian:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-organization']
    index: 30
    elements:
      display: {index: 31}
    required: [display]
  url: {index: 1}
  identifier:
    type: Identifier
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        recordIdentifier:
          match: {system: 'https://fhir.synapxe.sg/NamingSystem/recordIdentifier'}
          schema:
            short: Version-independent identifier for the Composition
            type: Identifier
            _required: true
            index: 3
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/recordIdentifier'}
                index: 4
        accessionNumber:
          match: {system: 'https://fhir.synapxe.sg/NamingSystem/accessionNumber'}
          schema:
            type: Identifier
            short: Version-independent identifier for the Composition
            index: 5
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/accessionNumber'}
                index: 6
  relatesTo:
    type: RelatedArtifact
    index: 32
    extensions:
      sequenceNo: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno', type: Extension, isModifier: false, index: 33}
    elements:
      extension:
        type: Extension
        isModifier: false
        url: https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno
        index: 33
        slicing:
          slices:
            sequenceNo:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno', index: 33}
      type:
        pattern: {type: Code, value: documentation}
        index: 34
  version: {index: 7}
  subject:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-patient']
    index: 11
    elements:
      display: {index: 12}
package_version: 1.0.8
class: profile
kind: resource
url: https://fhir.synapxe.sg/StructureDefinition/profile-dischargesummary
base: http://hl7.org/fhir/StructureDefinition/Composition
version: null
required: [encounter, section, identifier, subject, custodian, contained]