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: 29 required: [use] serviceProvider: {index: 35} type: short: Primary specialty managing the encounter binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/specialty-my-core'} index: 16 elements: coding: index: 17 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: 18 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/specialty-my-core'} index: 19 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: 20 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/encounter-category-my-core'} index: 21 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: 22 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/ValueSet/servicerequest-category-my-core'} index: 23 serviceType: short: Based on PIK code service type binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/service-type-my-core'} index: 24 classHistory: elements: class: binding: {strength: extensible, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core'} index: 15 extension: isModifier: false short: Extension of the individual who recorded and updated the date type: Extension url: http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core index: 0 slicing: slices: audit: match: {} schema: {isModifier: false, short: Extension of the individual who recorded and updated the date, type: Extension, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', index: 0} max: 1 outcome: match: {} schema: {type: Extension, short: Extension about the outcome of an encounter, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-outcome-my-core', index: 1} max: 1 visitType: match: {} schema: {isModifier: false, short: Extension to determine the 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, short: Extension whether this Encounter is from an internal or external referral, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/internal-refferal-my-core', index: 3} max: 1 Rating: match: {} schema: {type: Extension, short: Extension about the rating of an encounter, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-rating-my-core', index: 4} max: 1 ncdVcDx: match: {} schema: {type: Extension, short: Extension to define the outcome diagnosis of a Virtual Consultation (To fulfil their analytics requirement), isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ncd-vc-dx-my-core', index: 5} policeCase: match: {} schema: {type: Extension, short: Extension whether this Encounter is directly created as part of a police case investigation, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/police-case-my-core', index: 6} vrStatus: match: {} schema: {type: Extension, short: Extension about the current status of the virtual consultation session, isModifier: false, url: 'http://fhir.hie.moh.gov.my/StructureDefinition/vr-status-my-core', index: 7} priority: binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-priority-my-core'} index: 25 status: short: arrived | in-progress | finished | unknown binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-status-my-core'} index: 13 class: binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core'} index: 14 identifier: index: 8 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: 9 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/encounter-id'} index: 10 vcToken: match: {system: 'http://fhir.hie.moh.gov.my/sid/vc-token'} schema: index: 11 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/sid/vc-token'} index: 12 hospitalization: elements: admitSource: elements: coding: index: 30 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: 31 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/internal-referral-source-type-my-core'} index: 32 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: 33 elements: system: pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.my/CodeSystem/external-referral-source-type-my-core'} index: 34 required: [system] period: index: 27 elements: start: {index: 28} required: [start] subject: {index: 26} package_version: 1.0.0 extensions: audit: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core', max: 1, isModifier: false, short: Extension of the individual who recorded and updated the date, type: Extension, index: 0} outcome: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-outcome-my-core', max: 1, type: Extension, short: Extension about the outcome of an encounter, isModifier: false, index: 1} visitType: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/visit-type-my-core', max: 1, isModifier: false, short: Extension to determine the 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, short: Extension whether this Encounter is from an internal or external referral, isModifier: false, index: 3} Rating: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/encounter-rating-my-core', max: 1, type: Extension, short: Extension about the rating of an encounter, isModifier: false, index: 4} ncdVcDx: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/ncd-vc-dx-my-core', type: Extension, short: Extension to define the outcome diagnosis of a Virtual Consultation (To fulfil their analytics requirement), isModifier: false, index: 5} policeCase: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/police-case-my-core', type: Extension, short: Extension whether this Encounter is directly created as part of a police case investigation, isModifier: false, index: 6} vrStatus: {url: 'http://fhir.hie.moh.gov.my/StructureDefinition/vr-status-my-core', type: Extension, short: Extension about the current status of the virtual consultation session, isModifier: false, index: 7} 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]