MHNexus Sdn Bhd
0.1.0 - ci-build
Virtual Consultation (VC) is a function available in HIE based on the HIE-VC scope. By using Jitsi Meet practitioner & patient/customer via video conferencing method in HIE.
Aside from calling HIE API, any source system that wish to use VC functions through HIE must be be able to;
It is also important to note that the patient/customer planned for the VC session must have an activated RekodSaya as it is the portal/app for them to assess the video conferencing session.
The type of VC are stored in Appointment.serviceType
for appointment records and
Encounter.serviceType
for encounter records.
Currently in HIE-VC scope, therese are the types of VC:
Click MY Core postman API link to view common API used in HIE.
[base] = address url e.g. "https://fhir.hie.moh.gov.my/baseR4/" [type] = resource type e.g. "Patient | Encounter | Composition" @recordId = unique patient id defined from source system e.g "841eaff3-18a0-42d9-a62c-91a3cbb6bcec" @patientIdentifier = patient identifier such as mykad number or MRN e.g "HIE-00000003"
Sample Description | Sample Body | API Method | API |
---|---|---|---|
Create/Update VC Appointment | PUT | [base]/Appointment/@recordId | |
Update Encounter | PUT | [base]/Encounter/@recordId | |
Create/Update Schedule |
1.VCI Schedule, |
PUT | [base]/Schedule/@recordId |
Create/Update Slot |
1.VCI Slot, 2.VCE Slot |
PUT | [base]/Slot/@recordId |
Bundle Create/Update Schedule & Slot | PUT | [base] |
Jitsi API is covered under Jitsi team. Refer Jitsi documentation for details.
The primary resource required to initiate a VC session are Appointment, Schedule, Slot and Encounter.
status
serviceCategory:encounterClass.coding.code:"VR"
serviceType:"VCI"
or
Appointment.serviceType:"VCE"
specialty
participant.actor
participant.status
status
identifier.value
where
identifier.system="http://fhir.hie.moh.gov.my/sid/vc-token"
class:"VR"
serviceType:"VCI"
or
serviceType:"VCE"
subject
period.start
serviceProvider
participant.individual
, need to include the role
participant.type
serviceCategory:encounterClass.coding.code:"VR"
serviceType:"VCI"
or
Appointment.serviceType:"VCE"
specialty
actor
extension.url=http://fhir.hie.moh.gov.my/StructureDefinition/schedule-type-my-core
schedule
status
start
end
Jitsi API is covered under Jitsi team. Refer Jitsi documentation for details.
This section covers the integration point overview for VCI and VCE. The Source System is expected to be able to integrate with HIE API, Jitsi API and Notification API to be able to host their own video conferencing via HIE.
For VCI, the Jitsi token session is stored in the encounter. Once, a patient check in their
appointments in RekodSaya, HIE will initiate the Jitsi API and store it in
Encounter.identifier
. The source system will then be required to activate the token and
also call a notification API to notify the patient/customer using RekodSaya that the session has
started.
It is optional for a VCI appointment to refer to a Slot. However, should a source system wish to send scheduling records, the integration points and flow for scheduling is covered under
Diagram below shows the concept flow related to enable source system integration of VCI through HIE:
CREATE
VCI Schedule and Slot in HIE.CREATE
Appointment record in HIE.CREATE
a session token.CREATE
Encounter and Jitsi token is stored in
Encounter.identifier.value
where
Encounter.identifier.system="http://fhir.hie.moh.gov.my/sid/vc-token"
GET
Encounter record from Kafka together with the Jitsi token
stored within Encounter.GET
Jitsi token to start session for their practitioner.POST
HIE notification API to notify the patient/customer in
RekodSaya that the session can beginGET
Jitsi token for patient to join using RekodSaya.UPDATE
HIE of the Encounter status to
Encounter.status=finished
.
UPDATE
Jitsi record to end session.For VCE, the source system will have to first call the Jitsi API to obtain a session token. For each
appointment related to the same VCE session, it is required for source system to mention the token
identifier in
Appointment.identifier.where (system = 'http://fhir.hie.moh.gov.my/sid/vc-token').value
.
Patient/customer using RekodSaya will then check in and HIE will create an encounter with the Jtsi token from appointment stored inside. Source system will then retrieve the encounter through Kafka, call Jitsi API to activate the session and call HIE notification API to notify patient/customer in HIE that the session has started.
Diagram below shows the concept flow related to enable source system integration of VCE through HIE:
CREATE
a session token.CREATE
VCE schedule and slot in HIE and store token in the
Schedule.identifier.value
where
Schedule.identifier.system="http://fhir.hie.moh.gov.my/sid/vc-token"
CREATE
Appointment record in HIE and store token in the
Appointment.identifier.value
where
Appointment.identifier.system="http://fhir.hie.moh.gov.my/sid/vc-token"
CREATE
Encounter and Jitsi token is stored in
Encounter.identifier.value
(from Appointment.identifier.value
) where
Encounter.identifier.system="http://fhir.hie.moh.gov.my/sid/vc-token"
GET
encounter record from Kafka together with the Jitsi token
stored within Encounter.GET
Jitsi token to start session for their practitioner.POST
HIE notification API to notify the patient/customer in
RekodSaya that the session can beginGET
Jitsi token for patient to join using RekodSaya.UPDATE
HIE of the Encounter status to
Encounter.status=finished
.
UPDATE
Jitsi record to end session.
IG © 2024+ Example Publisher. Package
fhir.example#0.1.0
based on FHIR
4.0.1. Generated
2024-12-23
Links: Table of
Contents |
QA Report