-
Notifications
You must be signed in to change notification settings - Fork 0
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
…1099-updates-to-frequency-logic-and-configuration
{ 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' }, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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}`} |
There was a problem hiding this comment.
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
There was a problem hiding this 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
Changes
Add a brief description of the changes in this PR to help give the reviewer context.
Deploys
Remember to...