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

feat(caregoal): add care goals to patient #2360

Merged
merged 10 commits into from Sep 7, 2020

Conversation

rsousaj
Copy link
Contributor

@rsousaj rsousaj commented Sep 2, 2020

Fixes #2080 .

Changes proposed in this pull request:

  • Add ability to define care goals for a patient

@gitpod-io
Copy link

gitpod-io bot commented Sep 2, 2020

@jackcmeyer jackcmeyer added patients issue/pull request that interacts with patients module 🚀enhancement an issue/pull request that adds a feature to the application labels Sep 2, 2020
@jackcmeyer jackcmeyer added this to In progress in Version 2.0 via automation Sep 2, 2020
@jackcmeyer jackcmeyer added this to the v2.0 milestone Sep 2, 2020
@vercel
Copy link

vercel bot commented Sep 2, 2020

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

🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/pdo7y54br
✅ Preview: https://hospitalrun-front-git-fork-rsousaj-issue-2080-patient-ca-94454b.hospitalrun.vercel.app

@@ -131,7 +131,7 @@ describe('ViewPatient', () => {
const tabs = tabsHeader.find(Tab)
expect(tabsHeader).toHaveLength(1)

expect(tabs).toHaveLength(9)
expect(tabs).toHaveLength(10)
Copy link
Member

Choose a reason for hiding this comment

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

should also and a test to make sure it marks the tab as active when clicked

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, tks

expect(descriptionInput.prop('feedback')).toEqual(expectedError.description)

expect(prioritySelector.prop('isInvalid')).toBeTruthy()
// expect(prioritySelector.prop('feedback')).toEqual(expectedError.priority)
Copy link
Member

Choose a reason for hiding this comment

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

I think this commented out code should be tested. We should un-comment it and make sure the tests pass.

Copy link
Contributor Author

@rsousaj rsousaj Sep 2, 2020

Choose a reason for hiding this comment

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

I think there is no feedback prop on SelectWithLabelFormGroup component. Also has a coment there: "todo: add feedback in next round"


wrapper.update()

return { wrapper }
Copy link
Member

Choose a reason for hiding this comment

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

Change to return { wrapper: wrapper as ReactWrapper } so we can get type support

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

careGoal: Omit<CareGoal, 'id' | 'createdOn'>
}

async function addCareGoal(request: AddCareGoalRequest): Promise<CareGoal[]> {
Copy link
Member

Choose a reason for hiding this comment

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

there should be tests for this hook

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'd forgotten and then I did it on the lastest commit.

Copy link
Member

@jackcmeyer jackcmeyer left a comment

Choose a reason for hiding this comment

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

typing in the note field does not seem to work

@morrme
Copy link
Member

morrme commented Sep 2, 2020

typing in the note field does not seem to work

confirmed--doesn't work for me either

@rsousaj
Copy link
Contributor Author

rsousaj commented Sep 2, 2020

Tks guys. I'll make those changes.

Copy link
Member

@fox1t fox1t left a comment

Choose a reason for hiding this comment

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

LGTM.
@jackcmeyer and @morrme are all comments addressed now?

@jackcmeyer jackcmeyer merged commit 8eb8f6f into HospitalRun:master Sep 7, 2020
Version 2.0 automation moved this from In progress to Done Sep 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚀enhancement an issue/pull request that adds a feature to the application patients issue/pull request that interacts with patients module
Projects
Version 2.0
  
Done
Development

Successfully merging this pull request may close these issues.

Patient Care Goal
4 participants