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