-
Notifications
You must be signed in to change notification settings - Fork 4
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) intial UI design and population of prescribed medical supplies which are non drugs #3
Conversation
// const { workListEntries, isLoading, isError } = useOrdersWorklist('', ''); | ||
|
||
// console.log(workListEntries?.length); |
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.
we can remove this
// useEffect(() => { | ||
// const reasonForCloseOptions = []; | ||
|
||
// if (reasonForCloseValueSet?.compose?.include) { | ||
// const uuidValueSet = reasonForCloseValueSet.compose.include.find((include) => !include.system); | ||
// if (uuidValueSet) { | ||
// uuidValueSet.concept?.forEach((concept) => | ||
// reasonForCloseOptions.push({ | ||
// id: concept.code, | ||
// text: concept.display, | ||
// }), | ||
// ); | ||
// reasonForCloseOptions.sort((a, b) => a.text.localeCompare(b.text)); | ||
// } | ||
// } | ||
// setReasonsForClose(reasonForCloseOptions); | ||
// }, [reasonForCloseValueSet]); | ||
|
||
// const handleSubmit = () => { | ||
// if (!isSubmitting) { | ||
// setIsSubmitting(true); | ||
// const abortController = new AbortController(); | ||
// saveMedicationDispense(medicationDispensePayload, MedicationDispenseStatus.declined, abortController) | ||
// .then((response) => { | ||
// // only update request status when added a new dispense event, not updating | ||
// if (response.ok && !medicationDispense.id) { | ||
// return updateMedicationRequestFulfillerStatus( | ||
// getUuidFromReference( | ||
// medicationDispensePayload.authorizingPrescription[0].reference, // assumes authorizing prescription exist | ||
// ), | ||
// MedicationRequestFulfillerStatus.declined, | ||
// ); | ||
// } else { | ||
// return response; | ||
// } | ||
// }) | ||
// .then((response) => { | ||
// if (response.ok) { | ||
// closeOverlay(); | ||
// revalidate(encounterUuid); |
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.
Do we need the commented out code here, or you plan to activate it later?
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.
Thanks @FelixKiprotich350 Let me merge this in, then we can clean things in followup PRs for us to move this work forward and quickly.
(feat) intial UI design and population of prescribed medical supplies which are non drugs
Requirements
Summary
I have done intial UI design and population of prescribed medical supplies which are non drugs
Screenshots
Related Issue
None.
Other
None.