Skip to content

Commit

Permalink
(feat) O3-4338 Ward App - make Ward Patient Banner into an extension (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chibongho authored Jan 13, 2025
1 parent 9c3e90a commit 8bcc74b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/esm-ward-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const createAdmissionEncounterWorkspaceSideRailIcon = getAsyncLifecycle(
export const createAdmissionEncounterWorkspace = getAsyncLifecycle(
() => import('./ward-workspace/create-admission-encounter/create-admission-encounter.workspace'),
options,
)
);

export const defaultWardView = getAsyncLifecycle(
() => import('./ward-view/default-ward/default-ward-view.component'),
Expand All @@ -123,6 +123,11 @@ export const maternalWardView = getAsyncLifecycle(
options,
);

export const wardPatientWorkspaceBanner = getAsyncLifecycle(
() => import('./ward-workspace/patient-banner/patient-banner.component'),
options,
);

export function startupApp() {
registerBreadcrumbs([]);
defineConfigSchema(moduleName, configSchema);
Expand Down
5 changes: 5 additions & 0 deletions packages/esm-ward-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
"component": "maternalWardView",
"name": "maternal-ward",
"slot": "maternal-ward"
},
{
"component": "wardPatientWorkspaceBanner",
"name": "ward-patient-workspace-banner",
"slot": "ward-workspace-patient-banner-slot"
}
],
"workspaces": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ const WardPatientIdentifier: React.FC<WardPatientIdentifierProps> = ({ id, patie
}));

return (
<PatientBannerPatientIdentifiers identifiers={fhirIdentifiers} showIdentifierLabel={config?.showIdentifierLabel} />
<div>
<PatientBannerPatientIdentifiers
identifiers={fhirIdentifiers}
showIdentifierLabel={config?.showIdentifierLabel}
/>
</div>
);
};

Expand Down

0 comments on commit 8bcc74b

Please sign in to comment.