Skip to content

Commit

Permalink
(fix) Remove direct dependency between common lib and forms apps (#1623)
Browse files Browse the repository at this point in the history
(chore) Remove direct dependency between common lib and forms apps
  • Loading branch information
denniskigen authored Jan 27, 2024
1 parent 7969e80 commit ac5f146
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/esm-patient-common-lib/src/form-entry-interop.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import { OpenmrsResource, navigate } from '@openmrs/esm-framework';
import type { HtmlFormEntryForm } from '@openmrs/esm-patient-forms-app/src/config-schema';
import { navigate } from '@openmrs/esm-framework';
import isEmpty from 'lodash-es/isEmpty';
import { launchPatientWorkspace, launchStartVisitPrompt } from '@openmrs/esm-patient-common-lib';

interface HtmlFormEntryForm {
formUuid: string;
formName: string;
formUiResource: string;
formUiPage: 'enterHtmlFormWithSimpleUi' | 'enterHtmlFormWithStandardUi';
formEditUiPage: 'editHtmlFormWithSimpleUi' | 'editHtmlFormWithStandardUi';
}

export function launchFormEntryOrHtmlForms(
htmlFormEntryForms: Array<HtmlFormEntryForm>,
patientUuid: string,
Expand Down

0 comments on commit ac5f146

Please sign in to comment.