Skip to content

Commit

Permalink
U4X-313 : Add either a button or link to the patient summary chart to…
Browse files Browse the repository at this point in the history
… avoid the back and forth to the data table when sending to the next service point (#169)

* add move patient to next service point setup

* add pr template

* update completed notification message

* remove unnneccessary code

* move patient to next service point
  • Loading branch information
jabahum authored Feb 21, 2024
1 parent 273f0c0 commit d2c6e76
Show file tree
Hide file tree
Showing 9 changed files with 645 additions and 23 deletions.
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Requirements
- [ ] This PR has a title that briefly describes the work done including a [conventional commit](https://o3-docs.openmrs.org/#/getting_started/contributing?id=your-pr-title-should-indicate-the-type-of-change-it-is) type prefix and a Jira ticket number if applicable. See existing PR titles for inspiration.

#### For changes to apps
- [ ] My work conforms to the [**OpenMRS 3.0 Styleguide**](https://om.rs/styleguide) and [**design documentation**](https://zeroheight.com/23a080e38/p/880723-introduction).

#### If applicable
- [ ] My work includes tests or is validated by existing tests.

## Summary
<!-- Please describe what problems your PR addresses. -->
<!-- *None* -->

## Screenshots
<!-- Required if you are making UI changes. -->
<!-- *None* -->

## Related Issue
<!-- Paste the link to the Jira ticket here if one exists. -->
<!-- https://issues.openmrs.org/browse/O3- -->
<!-- *None* -->

## Other
<!-- Anything not covered above -->
<!-- *None* -->
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ const ChangeStatus: React.FC<ChangeStatusDialogProps> = ({ queueEntry, currentEn
() => {
showToast({
critical: true,
title: t('endVisit', 'End Vist'),
title: t('completePatient', 'Completed Patient'),
kind: 'success',
description: t('endVisitSuccessfully', 'You have successfully ended patient visit'),
description: t('endVisitSuccessfully', 'You have successfully completed working on the pa'),
});
closeModal();
mutate();
Expand Down Expand Up @@ -374,23 +374,25 @@ const ChangeStatus: React.FC<ChangeStatusDialogProps> = ({ queueEntry, currentEn
</section>
)}

<section className={styles.section}>
<Select
labelText={t('selectProvider', 'Select a provider')}
id="providers-list"
name="providers-list"
invalidText="Required"
value={selectedProvider}
onChange={(event) => setSelectedProvider(event.target.value)}
>
{!selectedProvider ? <SelectItem text={t('selectProvider', 'Select a provider')} value="" /> : null}
{filteredProviders.map((provider) => (
<SelectItem key={provider.uuid} text={provider.display} value={provider.uuid}>
{provider.display}
</SelectItem>
))}
</Select>
</section>
{status === 'completed' && (
<section className={styles.section}>
<Select
labelText={t('selectProvider', 'Select a provider')}
id="providers-list"
name="providers-list"
invalidText="Required"
value={selectedProvider}
onChange={(event) => setSelectedProvider(event.target.value)}
>
{!selectedProvider ? <SelectItem text={t('selectProvider', 'Select a provider')} value="" /> : null}
{filteredProviders.map((provider) => (
<SelectItem key={provider.uuid} text={provider.display} value={provider.uuid}>
{provider.display}
</SelectItem>
))}
</Select>
</section>
)}

{status === 'completed' && (
<section className={styles.section}>
Expand Down
Loading

0 comments on commit d2c6e76

Please sign in to comment.