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) intial UI design and population of prescribed medical supplies which are non drugs #3

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

FelixKiprotich350
Copy link
Contributor

@FelixKiprotich350 FelixKiprotich350 commented Oct 31, 2024

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • I checked for feature overlap with existing widgets.

Summary

I have done intial UI design and population of prescribed medical supplies which are non drugs

Screenshots

Screenshot from 2024-10-31 12-12-53

Related Issue

None.

Other

None.

Comment on lines +14 to +16
// const { workListEntries, isLoading, isError } = useOrdersWorklist('', '');

// console.log(workListEntries?.length);
Copy link
Contributor

Choose a reason for hiding this comment

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

we can remove this

Comment on lines +43 to +82
// 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);
Copy link
Contributor

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?

Copy link
Contributor

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.

@makombe makombe merged commit 1168846 into palladiumkenya:main Oct 31, 2024
3 checks passed
donaldkibet pushed a commit that referenced this pull request Nov 5, 2024
(feat) intial UI design and population of prescribed medical supplies which are non drugs
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