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

Incident Notes #5

Closed
wants to merge 35 commits into from
Closed

Incident Notes #5

wants to merge 35 commits into from

Conversation

DrewGregory
Copy link
Member

Fixes HospitalRun#2497.

We refactored some of the patient notes code to support adding, deleting, and editing notes for incidents.

DrewGregory and others added 30 commits November 7, 2020 00:41
Add functionality to link visit to lab, and updated the schema to have a visitId in the Lab model.

fix HospitalRun#2184
Copy link
Member

@anthonyaperez anthonyaperez left a comment

Choose a reason for hiding this comment

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

Awesome PR! Most of my comments were focused on permissions issues but other than that, I think error + edge-case handling is pretty good. Test coverage seems sufficient, but just be aware that the core contributors might ask for useAddIncidentNote.tsx and useDeleteIncidentNote.tsx tests (both handling successes and failures).

src/__tests__/incidents/view/ViewIncident.test.tsx Outdated Show resolved Hide resolved
src/__tests__/incidents/view/ViewIncident.test.tsx Outdated Show resolved Hide resolved
src/__tests__/incidents/view/ViewIncident.test.tsx Outdated Show resolved Hide resolved
src/__tests__/incidents/view/ViewIncident.test.tsx Outdated Show resolved Hide resolved
src/__tests__/incidents/view/ViewIncident.test.tsx Outdated Show resolved Hide resolved
src/incidents/view/ViewIncident.tsx Outdated Show resolved Hide resolved
src/patients/notes/NoteTab.tsx Outdated Show resolved Hide resolved
src/shared/notes/NewNoteModal.tsx Show resolved Hide resolved
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.

Incidents: add the ability to document notes on a reported incident
4 participants