Skip to content
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-3250: Add in-patient notes workspace #1238

Merged
merged 16 commits into from
Aug 2, 2024

Conversation

usamaidrsk
Copy link
Collaborator

@usamaidrsk usamaidrsk commented Jul 18, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR adds in-patient notes workspace

Screenshots

image

patient-note.mp4

Related Issue

Other

O3-3250

Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally looks good to me, but I am going to defer to @chibongho and @brandones who has been working with this code longer.

One thing I'm missing... where is the code that handles saving the notes?

Also fyi looks like there are some failing tests.

@usamaidrsk
Copy link
Collaborator Author

usamaidrsk commented Jul 18, 2024

One thing I'm missing... where is the code that handles saving the notes?

This is handled in the esm-patient-notes-app and the work is done in this PR. For the failing tests there is some parallel work in progress on the esm-core too, that I am completing.
cc @mogoodrich

@mogoodrich
Copy link
Member

This is handled in the esm-patient-notes-app and the work is done in this PR. For the failing tests there is some parallel work in progress on the esm-core too, that I am completing.

Ah, okay, so basically this rendered the existing visit note within the Ward context?

@usamaidrsk
Copy link
Collaborator Author

usamaidrsk commented Jul 18, 2024

Ah, okay, so basically this rendered the existing visit note within the Ward context?

I created a separate form for the ward in-patient note.

@usamaidrsk usamaidrsk force-pushed the ft-ward-patient-notes branch 2 times, most recently from 81dfc38 to 372e66e Compare July 18, 2024 21:22
@usamaidrsk usamaidrsk marked this pull request as ready for review July 23, 2024 12:35
@usamaidrsk usamaidrsk force-pushed the ft-ward-patient-notes branch 2 times, most recently from fd340b4 to 0935272 Compare July 23, 2024 13:24
Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks great @usamaidrsk , but we should fetch the configuration from the "configuration" endpoint instead of setting up a new notes config, see my comments... sorry, I should have mentioned that before, didn't think of it.

I also flagged Ian and Dennis for a few years, but this is close, thanks, I'm excited to see this working!

__mocks__/patient-note-config.mock.ts Outdated Show resolved Hide resolved
packages/esm-ward-app/src/config-schema.ts Outdated Show resolved Hide resolved
packages/esm-ward-app/src/types/index.ts Outdated Show resolved Hide resolved
packages/esm-ward-app/src/types/index.ts Show resolved Hide resolved
import type { PatientCardElementType, WardPatientCardProps } from '../../types';
import styles from './style.scss';

const WardPatientWorkspaceBanner = ({ bed, patient, visit }: WardPatientCardProps) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will defer to @chibongho when he gets back on this part...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chibongho I hope you can now take a look at this. Thanks

@mogoodrich
Copy link
Member

Oh, and also, looks like some merge errors...

Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@usamaidrsk I made a few small requests for changes, but generally LGTM, I approved.
Would be still be good to get a review from @chibongho Thanks!

packages/esm-ward-app/src/types/index.ts Outdated Show resolved Hide resolved
@vasharma05
Copy link
Member

vasharma05 commented Aug 1, 2024

Hi @usamaidrsk!
I have some suggestions for improving the code structure before merging the PR.

@mogoodrich, I have some suggestions which should go in before the changes are merged.
Thanks!

@mogoodrich
Copy link
Member

@mogoodrich, I have some suggestions which should go in before the changes are merged.
Thanks!

Thanks @vasharma05 ! Defer to you when this is ready to be merged.

Copy link
Member

@vasharma05 vasharma05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more changes. Great work @usamaidrsk!

One thing I'm wondering, the notes form is in the same app as of the Extension slot where it is being rendered, why aren't we directly importing it into the workspace?
Cc: @mogoodrich @chibongho

Copy link
Member

@vasharma05 vasharma05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @usamaidrsk!

@mogoodrich
Copy link
Member

Thanks @usamaidrsk ! Just waiting for all the checks to pass, then I will merge.

@mogoodrich mogoodrich merged commit 020cde3 into openmrs:main Aug 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants