PackagesCanonicalsLogsProblems
    Packages
    MyHIE.v4@2.0.0-alpha
    http://fhir.hie.moh.gov.my/StructureDefinition/Encounter-my-core
description: An interaction during which services are provided to the patient.
package_name: MyHIE.v4
derivation: constraint
name: EncounterMyCore
type: Encounter
elements:
  diagnosis:
    elements:
      use:
        binding: {strength: extensible, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/diagnosis-role-my-core'}
        index: 23
  serviceProvider: {index: 24}
  type:
    short: Primary specialty managing the encounter
    binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/specialty-my-core'}
    index: 12
    elements:
      coding:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            service:
              match: {system: 'http://fhir.hie.moh.gov.my/CodeSystem/specialty-my-core'}
              schema:
                binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/specialty-my-core'}
                index: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/specialty-my-core'}
                    index: 15
            category:
              match: {system: 'http://fhir.hie.moh.gov.my/CodeSystem/encounter-category-my-core'}
              schema:
                binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-category-my-core'}
                index: 16
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/encounter-category-my-core'}
                    index: 17
    required: [coding]
  serviceType:
    short: Based on PIK code service type
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/service-type-my-core'}
    index: 18
  classHistory:
    elements:
      class:
        binding: {strength: extensible, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core'}
        index: 11
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        audit:
          match: {url: null}
          schema: {isModifier: false, short: Record audit on individual who recorded and updated the data, type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', index: 1}
          min: 0
          max: 1
        outcome:
          match: {url: null}
          schema: {isModifier: false, short: Encounter outcome reason, type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-outcome-my-core', index: 2}
          min: 0
          max: 1
        visitType:
          match: {url: null}
          schema: {isModifier: false, short: visit type, type: Extension, label: visit type, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/visit-type-my-core', index: 3}
          min: 0
          max: 1
  priority:
    binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-priority-my-core'}
    index: 19
  status:
    short: arrived | in-progress | finished | unknown
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-status-my-core'}
    index: 9
  class:
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core'}
    index: 10
  identifier:
    index: 4
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        encounterNo:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/encounter-id'}
          schema:
            index: 5
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/encounter-id'}
                index: 6
        vcToken:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/vc-token'}
          schema:
            index: 7
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/vc-token'}
                index: 8
  period:
    index: 21
    elements:
      start: {index: 22}
    required: [start]
  subject: {index: 20}
package_version: 2.0.0-alpha
extensions:
  audit: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', min: 0, max: 1, isModifier: false, short: Record audit on individual who recorded and updated the data, type: Extension, index: 1}
  outcome: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-outcome-my-core', min: 0, max: 1, isModifier: false, short: Encounter outcome reason, type: Extension, index: 2}
  visitType: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/visit-type-my-core', min: 0, max: 1, isModifier: false, short: visit type, type: Extension, label: visit type, index: 3}
class: profile
kind: resource
url: http://fhir.hie.moh.gov.my/StructureDefinition/Encounter-my-core
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 1.0.0
required: [serviceType, serviceProvider, subject, period]