-
Notifications
You must be signed in to change notification settings - Fork 246
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) O3-2859: Change Patient Appointments to use shared appointments form #1674
Conversation
… Form from Appointments ESM
… Form from Appointments ESM
… Form from Appointments ESM
Size Change: -227 kB (-2%) Total Size: 10.6 MB
ℹ️ View Unchanged
|
See: https://openmrs.atlassian.net/browse/O3-2859 This should be merged in conjunction with: |
@@ -63,57 +58,7 @@ export function useAppointments(patientUuid: string, startDate: string, abortCon | |||
}; | |||
} | |||
|
|||
export function useAppointmentService() { |
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.
All this stuff and the files deleted above are files that were previously copied to esm-appointments-app
@@ -1,47 +1 @@ | |||
export const datePickerPlaceHolder = 'dd/mm/yyyy'; |
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.
More code that is no longer used
() => import('./appointments/appointments-form/appointments-form.component'), | ||
options, | ||
); | ||
|
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.
this now gets created in the esm-appointments-app
{ | ||
"name": "appointments-form-workspace", | ||
"component": "appointmentsFormWorkspace" | ||
}, |
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.
this now gets set up in the esm-appointments-app
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.
Hi @mogoodrich!
Can you please register workspace with registerWorkspace
instead of routes.json
in the esm-appointments-app
index.ts?
Thanks!
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.
A bit tangential. I was under the impression that the workspace stuff only works in esm-patient-chart
given the nowhere in esm-patient-management
do we use registerWorkspace
and launchPatientWorkspace
as of now. I would be really happy if that's not the case.
(The above probably still works for patient chart regardless)
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.
The availability of this functionality is the result having the patient-common-lib as a peerDependency of the module (which is what implements those functions). The only advantage the patient chart has is that it will implicitly depend on the latest version.
@@ -4,62 +4,30 @@ | |||
"appointmentCancelError": "Error cancelling appointment", |
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.
so these are (assumedly) all translations that no longer used in the patient-chart... however, assumedly most/all of them have been added to the patient management app... do we have a best practice/strategy, to copy above the translations from one to the other?
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.
Nothing that isn't "manually copy them" yet. Open to suggestions though!
setIsSubmitting(true); | ||
|
||
cancelAppointment('Cancelled', appointmentUuid, abortController) |
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.
unused controller that lint pointed out that I removed
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.
LGTM
Thanks @ibacher @chibongho and @ojwanganto , merging this in! |
… Form from Appointments ESM
Requirements
Summary
Screenshots
Related Issue
Other