Skip to content

Commit

Permalink
Mutate the vitals and biometrics data when vitals O3 form is submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
vasharma05 committed Dec 2, 2024
1 parent 1d717fa commit f03d262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/esm-patient-vitals-app/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { type Visit } from '@openmrs/esm-framework';
import { launchPatientWorkspace, launchStartVisitPrompt } from '@openmrs/esm-patient-common-lib';
import { type ConfigObject } from './config-schema';
import { patientVitalsBiometricsFormWorkspace } from './constants';
import { invalidateCachedVitalsAndBiometrics } from './common';

/**
* Launches the for entry workspace with the custom form
Expand All @@ -14,6 +15,7 @@ export function launchFormEntry(formUuid: string, encounterUuid?: string, formNa
launchPatientWorkspace('patient-form-entry-workspace', {
workspaceTitle: formName,
formInfo: { formUuid, encounterUuid },
mutateForm: invalidateCachedVitalsAndBiometrics,
});
}

Expand Down

0 comments on commit f03d262

Please sign in to comment.