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