PackagesCanonicalsLogsProblems
    Packages
    silth.fhir.th.mophpc1@0.1.1
    https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-encounter-base
description: การรับบริการสุขภาพ
package_name: silth.fhir.th.mophpc1
derivation: constraint
name: MophPcEncounterBase
type: Encounter
elements:
  diagnosis:
    mustSupport: true
    index: 36
    elements:
      use:
        elements:
          coding:
            index: 37
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                hl7:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/diagnosis-role'}
                  schema:
                    binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/diagnosis-role'}
                    mustSupport: true
                    index: 38
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/diagnosis-role'}
                        index: 39
                    required: [system]
                43plus:
                  match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-43plus-encounter-diagnosis-role'}
                  schema:
                    binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-43plus-encounter-diagnosis-role'}
                    mustSupport: true
                    index: 40
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-43plus-encounter-diagnosis-role'}
                        index: 41
                    required: [system]
                addition:
                  match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-meta-extended-hl7-diagnosis-role'}
                  schema:
                    binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-meta-extended-hl7-diagnosis-role'}
                    index: 42
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-meta-extended-hl7-diagnosis-role'}
                        index: 43
                    required: [system]
  serviceProvider:
    type: Reference
    mustSupport: true
    refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider']
    index: 65
    extensions:
      providerType: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-provider-type', min: 0, max: 1, type: Extension, mustSupport: true, index: 66}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-provider-type
        index: 66
        slicing:
          slices:
            providerType:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-provider-type', index: 66}
              min: 0
              max: 1
  reasonCode:
    mustSupport: true
    index: 28
    elements:
      coding:
        index: 29
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            icd10:
              match: {system: 'http://hl7.org/fhir/sid/icd-10'}
              schema:
                binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/icd-10'}
                mustSupport: true
                index: 30
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/icd-10'}
                    index: 31
                  code: {index: 32}
                required: [system, code]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-snomed-int'}
                mustSupport: true
                index: 33
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 34
                  code: {index: 35}
                required: [system, code]
  participant:
    mustSupport: true
    index: 17
    elements:
      type:
        elements:
          coding:
            index: 18
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                hl7:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                  schema:
                    binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/encounter-participant-type'}
                    index: 19
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                        index: 20
                      code: {index: 21}
                    required: [system, code]
                43plus:
                  match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-meta-participant-type'}
                  schema:
                    binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-meta-participant-type'}
                    mustSupport: true
                    index: 22
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-meta-participant-type'}
                        index: 23
                      code: {index: 24}
                    required: [system, code]
      individual:
        type: Reference
        refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base']
        index: 25
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        patientLocationType:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-patient-location-type', index: 1}
          min: 0
          max: 1
        serviceHour:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-service-hour', index: 2}
          min: 0
          max: 1
        serviceTypeTH:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-service-type-th', index: 3}
          min: 0
          max: 1
  priority:
    mustSupport: true
    index: 7
    elements:
      coding:
        index: 8
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            hl7:
              match: {system: 'http://terminology.hl7.org/CodeSystem/v3-ActPriority'}
              schema:
                binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ActPriority'}
                mustSupport: true
                index: 9
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActPriority'}
                    index: 10
                  code: {index: 11}
                required: [system, code]
            thccAccident:
              match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-accident-priority'}
              schema:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-thcc-accident-priority'}
                mustSupport: true
                index: 12
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-accident-priority'}
                    index: 13
                  code: {index: 14}
                required: [system, code]
  status: {mustSupport: true, index: 5}
  class: {mustSupport: true, index: 6}
  length: {mustSupport: true, index: 27}
  identifier: {mustSupport: true, index: 4}
  hospitalization:
    mustSupport: true
    index: 44
    extensions:
      dischargeStatus: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-discharge-status', min: 0, max: 1, type: Extension, mustSupport: true, index: 46}
      dischargeInstruction: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-discharge-instruction', min: 0, max: 1, type: Extension, mustSupport: true, index: 47}
    elements:
      extension:
        index: 45
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            dischargeStatus:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-discharge-status', index: 46}
              min: 0
              max: 1
            dischargeInstruction:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-discharge-instruction', index: 47}
              min: 0
              max: 1
      origin:
        type: Reference
        mustSupport: true
        refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider']
        index: 48
      admitSource:
        mustSupport: true
        index: 49
        elements:
          coding:
            index: 50
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                hl7:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/admit-source'}
                  schema:
                    binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/encounter-admit-source'}
                    index: 51
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/admit-source'}
                        index: 52
                      code: {index: 53}
                    required: [system, code]
                thcc:
                  match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-admit-source'}
                  schema:
                    binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-thcc-admit-source'}
                    mustSupport: true
                    index: 54
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-admit-source'}
                        index: 55
                      code: {index: 56}
                    required: [system, code]
                thccAccident:
                  match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-accident-admit-source'}
                  schema:
                    binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-thcc-accident-admit-source'}
                    mustSupport: true
                    index: 57
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-thcc-accident-admit-source'}
                        index: 58
                      code: {index: 59}
                    required: [system, code]
      destination:
        type: Reference
        refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider']
        index: 60
  period: {mustSupport: true, index: 26}
  basedOn: {mustSupport: true, index: 16}
  location:
    mustSupport: true
    index: 61
    extensions:
      serviceLocationType: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-service-location-type', min: 0, max: 1, type: Extension, mustSupport: true, index: 63}
    elements:
      extension:
        index: 62
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            serviceLocationType:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-service-location-type', index: 63}
              min: 0
              max: 1
      location: {mustSupport: true, index: 64}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base']
    index: 15
package_version: 0.1.1
extensions:
  patientLocationType: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-patient-location-type', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
  serviceHour: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-service-hour', min: 0, max: 1, type: Extension, mustSupport: true, index: 2}
  serviceTypeTH: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-encounter-service-type-th', min: 0, max: 1, type: Extension, mustSupport: true, index: 3}
class: profile
kind: resource
url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-encounter-base
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 0.1.1