-
Notifications
You must be signed in to change notification settings - Fork 248
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-2485: Allow view only field for visit location in the start visit form #1403
Conversation
Size Change: +517 B (0%) Total Size: 9.1 MB ℹ️ View Unchanged
|
…ient-chart into feat/view-only-visit-location-field
…hub.com/openmrs/openmrs-esm-patient-chart into feat/view-only-visit-location-field
…ient-chart into feat/view-only-visit-location-field
@@ -10,6 +10,7 @@ | |||
"editFlags": "Editar banderas", | |||
"enabledFlag": "Bandera activada", | |||
"enablingFlag": "Activando bandera...", | |||
"flagCountfalsemany": "{count} risk flag{plural}", |
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.
Does #1413 solve the issue of this specific translation randomly showing up in unrelated diffs? Perhaps rebasing against main
might fix it?
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 actually is the wrong key, instead of false, it should be _
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.
I'LL fix this asap
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 with a few pedantic concerns.
…ient-chart into feat/view-only-visit-location-field
…hub.com/openmrs/openmrs-esm-patient-chart into feat/view-only-visit-location-field
packages/esm-patient-chart-app/src/visit/visit-form/location-selection.component.tsx
Outdated
Show resolved
Hide resolved
/> | ||
)} | ||
/> | ||
{!viewOnlyVisitLocationField ? ( |
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 @brandones !
I see that the config prop was renamed but it wasn't updated in here.
I'll create a new PR for this.
Thank you for the changes and review @brandones @denniskigen !
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.
Oh no, I'm sorry I missed that. My bad. Thank you Vineet.
Requirements
Summary
This PR adds a new configuration point to the Patient Chart's configuration schema. This property determines whether the
Visit location
field in the Start Visit form is editable or read-only. By default, the value of the field gets resolved to the value of the logged-in user'ssessionLocation
property.Sample configuration (set to
false
so the input is editable by default):Screenshots
Design was confirmed with Ciaran in the slack thread here
Related Issue
https://issues.openmrs.org/projects/O3/issues/O3-2485
Other
None