forked from openmrs/openmrs-esm-patient-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) O3-3660: Show trend results view in a modal (openmrs#1948)
* O3-3660: Show trend results view in a modal * code review * Fixup --------- Co-authored-by: Dennis Kigen <kigen.work@gmail.com>
- Loading branch information
1 parent
1d1e39c
commit 3ca484a
Showing
10 changed files
with
96 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const basePath = '/patient/:patientUuid/chart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/esm-patient-labs-app/src/test-results/panel-timeline/timeline-results.modal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { ModalHeader, ModalBody } from '@carbon/react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { basePath } from '../../constants'; | ||
import Trendline from '../trendline/trendline.component'; | ||
|
||
interface TimelineResultsModalProps { | ||
closeDeleteModal: () => void; | ||
patientUuid: string; | ||
testUuid: string; | ||
title: string; | ||
} | ||
|
||
const TimelineResultsModal: React.FC<TimelineResultsModalProps> = ({ closeDeleteModal, patientUuid, testUuid }) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div> | ||
<ModalHeader title={t('trendline', 'Trendline')} closeModal={closeDeleteModal} /> | ||
<ModalBody> | ||
<Trendline basePath={basePath} conceptUuid={testUuid} patientUuid={patientUuid} /> | ||
</ModalBody> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TimelineResultsModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters