-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) O3-4181 Display Patient Age and Implement View/Edit Results Fu…
…nctionality for Lab Technicians (#99) * (feat) added the UI improvements * (feat) added a extension slot for completed order for lab results * (fix) fixed build failure * (refactor) revert to the old UI * (refactor) updated en.json * (feat) updated the custom representation * (chore) removed patientAge hook
- Loading branch information
1 parent
ad3bb1f
commit 2961db8
Showing
8 changed files
with
78 additions
and
12 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
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
25 changes: 25 additions & 0 deletions
25
src/lab-tabs/actions/edit-lab-request-results-action.component.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,25 @@ | ||
import React from 'react'; | ||
import { Button } from '@carbon/react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import styles from './actions.scss'; | ||
import { launchWorkspace } from '@openmrs/esm-framework'; | ||
import { Order } from '@openmrs/esm-patient-common-lib'; | ||
|
||
type EditButtonProps = { | ||
order: Order; | ||
}; | ||
|
||
const EditButton: React.FC<EditButtonProps> = ({ order }) => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<Button | ||
kind="secondary" | ||
className={styles.actionButton} | ||
onClick={() => launchWorkspace('test-results-form-workspace', { order })} | ||
> | ||
{t('editResults', 'Edit results')} | ||
</Button> | ||
); | ||
}; | ||
|
||
export default EditButton; |
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