PackagesCanonicalsLogsProblems
    Packages
    MyHIE.v4-test@2.1.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-test
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: 27
    required: [use]
  serviceProvider: {index: 33}
  type:
    short: Primary specialty managing the encounter
    binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/specialty-my-core'}
    index: 14
    elements:
      coding:
        index: 15
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            specialty:
              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: 16
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/specialty-my-core'}
                    index: 17
            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: 18
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/encounter-category-my-core'}
                    index: 19
            serviceCategory:
              match: {system: 'http://fhir.hie.moh.gov.my/ValueSet/servicerequest-category-my-core'}
              schema:
                binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/servicerequest-category-my-core'}
                index: 20
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/ValueSet/servicerequest-category-my-core'}
                    index: 21
  serviceType:
    short: Based on PIK code service type
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/service-type-my-core'}
    index: 22
  classHistory:
    elements:
      class:
        binding: {strength: extensible, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core'}
        index: 13
  extension:
    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: 0
    slicing:
      slices:
        audit:
          match: {}
          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: 0}
          max: 1
        outcome:
          match: {}
          schema: {type: Extension, short: Encounter outcome reason, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-outcome-my-core', index: 1}
          max: 1
        visitType:
          match: {}
          schema: {isModifier: false, short: visit type, type: Extension, label: visit type, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/visit-type-my-core', index: 2}
          max: 1
        internalReferral:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/internal-refferal-my-core', index: 3}
          max: 1
        Rating:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-rating-my-core', index: 4}
          max: 1
        NcdVcDxMyCore:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ncd-vc-dx-my-core', index: 5}
  priority:
    binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-priority-my-core'}
    index: 23
  status:
    short: arrived | in-progress | finished | unknown
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-status-my-core'}
    index: 11
  class:
    binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core'}
    index: 12
  identifier:
    index: 6
    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: 7
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/encounter-id'}
                index: 8
        vcToken:
          match: {system: 'http://fhir.hie.moh.gov.my/sid/vc-token'}
          schema:
            index: 9
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/vc-token'}
                index: 10
  hospitalization:
    elements:
      admitSource:
        elements:
          coding:
            index: 28
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                internal:
                  match: {system: 'http://fhir.hie.moh.gov.my/CodeSystem/internal-referral-source-type-my-core'}
                  schema:
                    binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/internal-referral-source-type-my-core'}
                    index: 29
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/internal-referral-source-type-my-core'}
                        index: 30
                    required: [system]
                external:
                  match: {system: 'http://fhir.hie.moh.gov.my/CodeSystem/external-referral-source-type-my-core'}
                  schema:
                    binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/external-referral-source-type-my-core'}
                    index: 31
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/external-referral-source-type-my-core'}
                        index: 32
                    required: [system]
  period:
    index: 25
    elements:
      start: {index: 26}
    required: [start]
  subject: {index: 24}
package_version: 2.1.0-alpha
extensions:
  audit: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', max: 1, isModifier: false, short: Record audit on individual who recorded and updated the data, type: Extension, index: 0}
  outcome: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-outcome-my-core', max: 1, type: Extension, short: Encounter outcome reason, isModifier: false, index: 1}
  visitType: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/visit-type-my-core', max: 1, isModifier: false, short: visit type, type: Extension, label: visit type, index: 2}
  internalReferral: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/internal-refferal-my-core', max: 1, type: Extension, isModifier: false, index: 3}
  Rating: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-rating-my-core', max: 1, type: Extension, isModifier: false, index: 4}
  NcdVcDxMyCore: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ncd-vc-dx-my-core', type: Extension, isModifier: false, index: 5}
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, type, period]