Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Feature/add notes to patients #1896

Closed
wants to merge 34 commits into from
Closed

Feature/add notes to patients #1896

wants to merge 34 commits into from

Conversation

wwbarros
Copy link
Contributor

Fixes #1771 .

Changes proposed in this pull request:

  • The ability enter notes about the patient

wwbarros and others added 5 commits March 1, 2020 18:37
Merged from HospitalRun/hospitalrun-frontend
Merge from HospitalRun/hospitalrun-frontend
Merged from HospitalRun/hospitalrun-frontend
@jsf-clabot
Copy link

jsf-clabot commented Mar 12, 2020

CLA assistant check
All committers have signed the CLA.

@vercel
Copy link

vercel bot commented Mar 12, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/hospitalrun/hospitalrun-frontend/1mddvva9w
✅ Preview: https://hospitalrun-fro-git-fork-wwbarros-feature-add-notes-to-p-4c0619.hospitalrun.now.sh

src/model/Note.ts Show resolved Hide resolved
onSave: (note: Note) => void
}

const NewNoteModal = (props: Props) => {
Copy link
Member

Choose a reason for hiding this comment

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

Need to add tests for this modal.

src/patients/notes/NewNoteModal.tsx Show resolved Hide resolved
src/patients/notes/NewNoteModal.tsx Show resolved Hide resolved
patient: Patient
}

const NoteTab = (props: Props) => {
Copy link
Member

Choose a reason for hiding this comment

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

Need to add tests for the notes tab:

  1. renders an add new button for someone with permissions
  2. doesn't render the button if no permissions
  3. renders a warning message if no notes
  4. renders a list of notes
  5. Clicking button displays modal
  6. Saving calls the update patient action
  7. On successful save, a toast appears

@vercel vercel bot temporarily deployed to Preview March 14, 2020 10:38 Inactive
@matteovivona matteovivona added the in progress indicates that issue/pull request is currently being worked on label Mar 14, 2020
@matteovivona matteovivona added this to the v2.0 milestone Mar 14, 2020
Copy link
Contributor

@matteovivona matteovivona left a comment

Choose a reason for hiding this comment

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

Hi @wwbarros. Thanks for your PR. Please, add more tests :)

@jackcmeyer
Copy link
Member

closing in favor of #1961

@jackcmeyer jackcmeyer closed this Apr 3, 2020
@wwbarros wwbarros deleted the feature/add-notes-to-patients branch August 12, 2021 06:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress indicates that issue/pull request is currently being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add notes to patients
4 participants