PackagesCanonicalsLogsProblems
    Packages
    synapxe.sgcdi@1.0.5
    https://fhir.synapxe.sg/StructureDefinition/profile-edvisit
description: null
package_name: synapxe.sgcdi
derivation: constraint
name: profile-edvisit
type: Encounter
elements:
  appointment: {index: 121}
  admission:
    elements:
      dischargeDisposition:
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/discharge-disposition'}
        index: 202
        elements:
          id: {index: 203}
          extension:
            type: Extension
            isModifier: false
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            index: 204
            slicing:
              slices:
                dischargeAdvice:
                  match: {}
                  schema:
                    type: Extension
                    isModifier: false
                    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
                    index: 204
                    elements:
                      value:
                        choices: [valueString]
                        index: 206
                      valueString: {type: string, choiceOf: value, index: 207}
          coding:
            index: 208
            elements:
              id: {index: 209}
              extension: {index: 210}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/discharge-disposition'}
                index: 211
              version: {index: 212}
              code: {index: 213}
              display: {index: 214}
              userSelected: {index: 215}
            extensions: {}
            required: [display, system, code]
          text: {short: Description of the outcome or end state of the discharge for patient, index: 216}
        extensions:
          dischargeAdvice:
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            type: Extension
            isModifier: false
            index: 204
            elements:
              value:
                choices: [valueString]
                index: 206
              valueString: {type: string, choiceOf: value, index: 207}
        required: [text]
      preAdmissionIdentifier: {index: 176}
      admitSource:
        elements:
          id: {index: 178}
          extension: {index: 179}
          coding: {index: 180}
          text: {index: 181}
        extensions: {}
        required: [text]
      extension:
        type: Extension
        short: disposition of patient
        isModifier: false
        url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
        index: 163
        slicing:
          slices:
            disposition:
              match: {}
              schema:
                type: Extension
                short: disposition of patient
                isModifier: false
                url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
                index: 163
                elements:
                  value:
                    choices: [valueCodeableConcept]
                    index: 165
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 166}
            policeCase:
              match: {}
              schema:
                type: Extension
                isModifier: false
                url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
                index: 167
                elements:
                  value:
                    choices: [valueBoolean]
                    index: 169
                  valueBoolean: {type: boolean, choiceOf: value, index: 170}
            coronerCase:
              match: {}
              schema:
                type: Extension
                isModifier: false
                url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
                index: 171
                elements:
                  value:
                    choices: [valueBoolean]
                    index: 173
                  valueBoolean: {type: boolean, choiceOf: value, index: 174}
      id: {index: 162}
      reAdmission: {index: 182}
      origin: {index: 177}
      destination:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-organization']
        index: 183
        elements:
          id: {index: 184}
          extension:
            index: 185
            slicing:
              slices:
                referralLocation:
                  match: {}
                  schema:
                    type: Extension
                    isModifier: false
                    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
                    index: 186
                    elements:
                      value:
                        choices: [valueCodeableConcept]
                        index: 188
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 189}
          reference: {index: 190}
          type:
            pattern: {type: Uri, value: Organization}
            index: 191
          identifier:
            index: 192
            elements:
              id: {index: 193}
              extension: {index: 194}
              use: {index: 195}
              type: {index: 196}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/hci-code'}
                index: 197
              value: {index: 198}
              period: {index: 199}
              assigner: {index: 200}
            extensions: {}
            required: [value, system]
          display: {index: 201}
        extensions:
          referralLocation:
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            type: Extension
            isModifier: false
            index: 186
            elements:
              value:
                choices: [valueCodeableConcept]
                index: 188
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 189}
        required: [extension, display]
      modifierExtension: {index: 175}
    extensions:
      disposition:
        url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
        type: Extension
        short: disposition of patient
        isModifier: false
        index: 163
        elements:
          value:
            choices: [valueCodeableConcept]
            index: 165
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 166}
      policeCase:
        url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
        type: Extension
        isModifier: false
        index: 167
        elements:
          value:
            choices: [valueBoolean]
            index: 169
          valueBoolean: {type: boolean, choiceOf: value, index: 170}
      coronerCase:
        url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
        type: Extension
        isModifier: false
        index: 171
        elements:
          value:
            choices: [valueBoolean]
            index: 173
          valueBoolean: {type: boolean, choiceOf: value, index: 174}
  diagnosis:
    elements:
      id: {index: 146}
      extension: {index: 147}
      modifierExtension: {index: 148}
      condition:
        index: 149
        elements:
          id: {index: 150}
          extension: {index: 151}
          concept:
            short: Concept - reference to a terminology or just  text
            index: 152
            extensions: {}
            elements:
              extension: {index: 153}
              coding: {index: 154}
              text: {index: 155}
            required: [text]
          reference: {index: 156}
        extensions: {}
        required: [concept]
      use: {index: 157}
    extensions: {}
    required: [condition]
  subjectStatus:
    short: event type
    index: 69
    elements:
      id: {index: 70}
      extension: {index: 71}
      coding:
        index: 72
        elements:
          id: {index: 73}
          extension: {index: 74}
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/event-type'}
            index: 75
          code: {index: 76}
          display: {index: 77}
          userSelected: {index: 78}
        extensions: {}
        required: [display, system, code]
      text: {index: 79}
    extensions: {}
    required: [coding]
  serviceProvider:
    index: 84
    elements:
      id: {index: 85}
      extension: {index: 86}
      reference: {index: 87}
      type:
        pattern: {type: Uri, value: Organization}
        index: 88
      identifier:
        index: 89
        elements:
          id: {index: 90}
          extension: {index: 91}
          use: {index: 92}
          type: {index: 93}
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/hci-code'}
            index: 94
          value: {index: 95}
          period: {index: 96}
          assigner: {index: 97}
        extensions: {}
        required: [value, system]
      display: {index: 98}
    extensions: {}
    required: [identifier, type]
  specialArrangement: {index: 160}
  dietPreference: {index: 159}
  episodeOfCare: {index: 80}
  type:
    index: 40
    elements:
      id: {index: 41}
      extension: {index: 42}
      coding:
        index: 43
        elements:
          id: {index: 44}
          extension: {index: 45}
          system: {index: 46}
          version: {index: 47}
          code: {index: 48}
          display: {index: 49}
          userSelected: {index: 50}
        extensions: {}
        required: [display, system, code]
      text: {index: 51}
    extensions: {}
    required: [coding]
  specialCourtesy: {index: 161}
  participant:
    elements:
      id: {index: 99}
      extension: {index: 100}
      modifierExtension: {index: 101}
      type:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/encounter-participant-type'}
        index: 102
        extensions: {}
        elements:
          extension: {index: 103}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                index: 104
              code: {index: 105}
      period: {index: 106}
      actor:
        elements:
          id: {index: 107}
          extension: {index: 108}
          reference: {index: 109}
          type:
            pattern: {type: Uri, value: Practitioner}
            index: 110
          identifier:
            index: 111
            elements:
              id: {index: 112}
              extension: {index: 113}
              use: {index: 114}
              type: {index: 115}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/mcr-no'}
                index: 116
              value: {index: 117}
              period: {index: 118}
              assigner: {index: 119}
            extensions: {}
            required: [value, system]
          display: {index: 120}
        extensions: {}
        required: [identifier, type, display]
    extensions: {}
    required: [type]
  serviceType:
    short: Service Speciality type
    index: 52
    elements:
      id: {index: 53}
      extension: {index: 54}
      concept:
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/service-speciality'}
        index: 55
        elements:
          id: {index: 56}
          extension: {index: 57}
          coding:
            index: 58
            elements:
              id: {index: 59}
              extension: {index: 60}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/service-speciality'}
                index: 61
              code: {index: 62}
              display: {index: 63}
              userSelected: {index: 64}
            extensions: {}
            required: [display, system, code]
          text: {index: 65}
        extensions: {}
        required: [coding]
      reference: {index: 66}
    extensions: {}
    required: [concept]
  account: {index: 158}
  virtualService: {index: 122}
  reason:
    elements:
      id: {index: 130}
      extension: {index: 131}
      modifierExtension: {index: 132}
      use:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/edvisit-reason-type'}
        index: 133
        extensions: {}
        elements:
          extension: {index: 134}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/edvisit-reason-type'}
                index: 135
              version: {index: 136}
      value:
        index: 137
        elements:
          id: {index: 138}
          extension: {index: 139}
          concept:
            index: 140
            elements:
              id: {index: 141}
              extension: {index: 142}
              coding: {index: 143}
              text: {index: 144}
            extensions: {}
            required: [text]
          reference: {index: 145}
        extensions: {}
        required: [concept]
    extensions: {}
    required: [value, use]
  priority: {index: 39}
  actualPeriod:
    index: 123
    elements:
      id: {index: 124}
      extension: {index: 125}
      start: {index: 126}
      end: {index: 127}
    extensions: {}
    required: [start, end]
  status:
    short: completed | cancelled
    pattern: {type: Code, value: completed}
    index: 26
  class:
    index: 27
    elements:
      id: {index: 28}
      extension: {index: 29}
      coding:
        index: 30
        elements:
          id: {index: 31}
          extension: {index: 32}
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/patient-type'}
            index: 33
          version: {index: 34}
          code: {index: 35}
          display: {index: 36}
          userSelected: {index: 37}
        extensions: {}
        required: [display, system, code]
      text: {index: 38}
    extensions: {}
    required: [coding]
  length: {index: 129}
  identifier:
    index: 0
    elements:
      id: {index: 1}
      extension: {index: 2}
      type: {index: 3}
      system: {index: 4}
      value: {index: 5}
      period: {index: 6}
      assigner: {index: 7}
    extensions: {}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        caseNo:
          match: {system: 'https://fhir.synapxe.sg/NamingSystem/record-identifier'}
          schema:
            short: A unique identifier for this encounter record
            _required: true
            index: 8
            elements:
              id: {index: 9}
              extension: {index: 10}
              use: {index: 11}
              type: {index: 12}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/record-identifier'}
                index: 13
              value: {index: 14}
              period: {index: 15}
              assigner: {index: 16}
            extensions: {}
            required: [value, system]
        edRefNo:
          match: {system: 'https://fhir.synapxe.sg/NamingSystem/edRefNo'}
          schema:
            short: An identifier of the episode/case
            index: 17
            elements:
              id: {index: 18}
              extension: {index: 19}
              use: {index: 20}
              type: {index: 21}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/edRefNo'}
                index: 22
              value: {index: 23}
              period: {index: 24}
              assigner: {index: 25}
            extensions: {}
            required: [value, system]
  plannedStartDate: {index: 128}
  basedOn: {index: 81}
  partOf: {index: 83}
  location:
    elements:
      id: {index: 217}
      extension: {index: 218}
      modifierExtension: {index: 219}
      location:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-location']
        index: 220
      status: {index: 221}
      form: {type: CodeableConcept, short: Concept - reference to a terminology or just  text, index: 222}
      period:
        index: 223
        elements:
          id: {index: 224}
          extension: {index: 225}
          start: {index: 226}
        extensions: {}
        required: [start]
    extensions: {}
    required: [form, period]
  subject:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-patient']
    index: 67
    elements:
      reference: {index: 68}
    required: [reference]
  careTeam: {index: 82}
package_version: 1.0.5
class: profile
kind: resource
url: https://fhir.synapxe.sg/StructureDefinition/profile-edvisit
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: null
required: [actualPeriod, identifier]