Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(medication): EPI-1093: Add medication administration schedule to prescription form #7269

Conversation

khoi-bes
Copy link
Contributor

Changes

Add a brief description of the changes in this PR to help give the reviewer context.

Deploys

  • Deploy to Tamanu Internal

Remember to...

  • ...write or update tests
  • ...add UI screenshots and testing notes to the Linear issue
  • ...add any manual upgrade steps to the Linear issue
  • ...update the config reference, settings reference, or any relevant runbook(s)
  • ...call out additions or changes to config files for the deployment team to take note of

{ startTime: '16:00', endTime: '18:00' },
{ startTime: '18:00', endTime: '20:00', mealTime: 'dinner' },
{ startTime: '20:00', endTime: '22:00' },
{ startTime: '22:00', endTime: '24:00', mealTime: 'night' },
Copy link
Contributor

@huytranbes huytranbes Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mealTime isn't appropriate for 'Night'. Maybe use periodLabel

const handleResetToDefault = () => {
if (
values.frequency === ADMINISTRATION_FREQUENCIES.AS_DIRECTED ||
values.frequency === ADMINISTRATION_FREQUENCIES.IMMEDIATELY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put this in a constant to avoid duplication. E.g
export const NON_REPEATING_FREQUENCIES = [ADMINISTRATION_FREQUENCIES.AS_DIRECTED, ADMINISTRATION_FREQUENCIES.IMMEDIATELY]

borderRadius="3px"
width="187px"
height="fit-content"
border={`1px solid ${checked ? Colors.primary : Colors.outline}`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: Please use styled-component for better readability

Copy link
Contributor

@huytranbes huytranbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you put the wrong task? It should be https://linear.app/bes/issue/EPI-1093/add-medication-administration-schedule-to-prescription-form
Approved but please fix the above issues before merging

…ration schedule discrepancy (#7270)

feat(medication): EPI-1098: Validation message for frequency/administration schedule discrepancy
@khoi-bes khoi-bes changed the title feat(medication): EPI-1099: Updates to Frequency logic and configuration feat(medication): EPI-1093: Add medication administration schedule to prescription form Feb 26, 2025
@khoi-bes khoi-bes closed this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants