-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(chore) O3-4011 - refactor patient banner to have patient identifiers… #1159
Conversation
… component be reuseable
Size Change: -141 kB (-2.4%) Total Size: 5.72 MB
ℹ️ View Unchanged
|
@chibongho can we have a screenshot, preferrably in the main patient banner, as I think this functionality extends beyond the Ward 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.
LGTM, also fyi @denniskigen and @ibacher
No UI changes in this PR. but there will be in upcoming ones. Specifically, the patient identifier still gets incorrectly shown with the label (and not the number) in a tag: Desired behavior: the tag should enclose both the label and the identifier number, but only when multiple ones are present. The tag should be applied to the preferred identifier in that case. Mockup: link: https://app.zeplin.io/project/60d59321e8100b0324762e05/screen/66d83967b50d0e2f15927f84 |
Didn't get round to having a look at this, sorry. Thanks for getting it off the mark, @chibongho! |
… component be reuseable (openmrs#1159)
… component be reuseable
Requirements
feat
,fix
, orchore
, among others). See existing PR titles for inspiration.For changes to apps
If applicable
Summary
This is motivated from a discussion on how the patient identifiers should show in the patient card in the ward app:
The above was said in regards to the patient banner, but should also apply to the ward patient card. This PR refactors the Patient Identifiers as a separate re-useable component, so we can reuse the same logic and configurations for patient banner and have them applied in the ward patient card (and elsewhere).
Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-4011
Other
patient-chart
toesm-styleguide
a while ago, but there are some remnants of theexcludePatientIdentifierCodeTypes
config value still present inpatient-chart
, mostly used when the patient chart needs to display the patient identifiers outside of the patient banner. This change should help to with completely removing theexcludePatientIdentifierCodeTypes
from the patient-chart.