-
Notifications
You must be signed in to change notification settings - Fork 242
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-4400 - render queue entry status in patient banner #1497
Conversation
<div className={styles.queueEntryStatusContainer}> | ||
<span className={styles.separator}>·</span> | ||
<span>{queueEntry.queue.name}</span> | ||
<Tag |
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 hard-coding of colors / text replacement is not great, but is taken from what we currently have in the patient chart.
Size Change: -39.9 kB (-0.63%) Total Size: 6.28 MB
ℹ️ View Unchanged
|
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.
Generally LGTM... what is with the removal of all the appointments files?
I don't believe they are used. |
// See: patient-banner-patient-info.component.tsx | ||
interface PatientBannerQueueEntryStatusProps { | ||
patientUuid: string; | ||
renderedFrom: string; |
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 should probably type this renderedFrom
more strictly. Maybe as a union type of possible values rather than a generic string.
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.
It is possible for any esm to render the patient banner component though, so I think it needs to be a free-form string.
const dispose = showModal('transition-queue-entry-modal', { | ||
closeModal: () => dispose(), | ||
queueEntry, | ||
}); |
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.
nit: We should move this handler to a separate function within the component body.
Requirements
Summary
As part of the work to remove the custom visit header from the patient chart, we need to move the queue entry status indicator from the visit header to the patient banner.
See codependent PR in patient-chart: openmrs/openmrs-esm-patient-chart#2254
Note that this PR does not confirm to the mockup. It's only contains the work to move the functionality into the patient banner.
Screenshots
(The same stuff that's in the visit header will be removed in a separate PR)
Related Issue
Other