O3 Framework / setCurrentVisit
setCurrentVisit(
patientUuid,visitUuid):void
Defined in: packages/framework/esm-emr-api/src/visit-utils.ts:95
Sets the current visit for a patient in the global visit store. This is used to manually specify which visit should be considered “active” for the given patient.
string
The UUID of the patient.
string
The UUID of the visit to set as the current visit.
void
import { setCurrentVisit } from '@openmrs/esm-framework';
setCurrentVisit('patient-uuid', 'visit-uuid');