-
Notifications
You must be signed in to change notification settings - Fork 232
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
(fix) O3-3849 Ward App - make patient header appear consistently in all ward workspaces #1356
Conversation
Size Change: +1.54 kB (+0.02%) Total Size: 6.49 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 works for me, though I had a question, see comments... hopefully it makes sense and doesn't just show my lack of knowledge about the Ward app... :)
@@ -44,7 +48,7 @@ export type WardPatient = { | |||
|
|||
export interface WardPatientWorkspaceProps extends DefaultWorkspaceProps { | |||
wardPatient: WardPatient; | |||
WardPatientHeader: React.FC<WardPatient>; | |||
WardPatientHeader: WardPatientCardType; |
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.
Why is the header a card type (instead of a header type)? Or does "WardPatientCardType" a type for individual elements that can appear within a card?
is the "W" in WardPatientHeader meant to be capitalized?
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.
Both the elements and the overall card share the same type.
Yeah, the "W" is capitalized because it's a React component. It gets used as <WardPatientHeader .../>
Requirements
Summary
This PR makes all patient-specific workspaces in the ward app have a consistent patient header.
Screenshots
OpenMRS.Mozilla.Firefox.2024-10-30.10-54-33.mp4
Related Issue
https://openmrs.atlassian.net/browse/O3-3849
Other