-
Notifications
You must be signed in to change notification settings - Fork 211
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-3604: Add notes history section on inpatient notes workspace #1269
Conversation
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.
Thanks @usamaidrsk , generally looks good... just one question about passing the config as a prop instead of fetching it, and adding a t() for the Note text.
@@ -29,14 +29,19 @@ const noteFormSchema = z.object({ | |||
|
|||
interface PatientNotesFormProps extends DefaultWorkspaceProps { | |||
patientUuid: PatientUuid; | |||
emrConfiguration: EmrApiConfigurationResponse; | |||
isLoadingEmrConfiguration: boolean; | |||
errorFetchingEmrConfiguration: Error; |
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.
Is there a reason you moved this from using to useEmrConfiguration to pass in as a prop? I think SWR is smart enough to cache this request instead of making it multiple times, it seems clearer to just have useEmrConfiguration each time you need that resource. @chibongho?
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.
Right, will revert this. Thanks @mogoodrich
return ( | ||
<Tile className={styles.noteTile}> | ||
<div className={styles.noteHeader}> | ||
<span className={styles.noteProviderRole}>Note</span> |
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.
Thanks for changing this to "Note". Let's use a t() here to translate this.
'encounterRole:(uuid,display),' + | ||
'provider:(uuid,person:(uuid,display))),' + | ||
'diagnoses'; | ||
const encountersApiUrl = `${restBaseUrl}/encounter?patient=${patientUuid}&encounterType=${encounterType}&v=${customRepresentation}`; |
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.
Great... I will add the "visit" limiting factor once the endpoint is ready with 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.
Looks good to me, thanks @usamaidrsk !
Merging, thanks! |
Requirements
Summary
Adds notes history section on the ward-inpatient-workspace
Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-3604
Other