serenity-health / roadmap

Public roadmap for development of Serenity's apps reported by our community of users
0 stars 1 forks source link

bugfix/update related patient profile on benefactor save #51

Closed chris-dare closed 2 years ago

chris-dare commented 2 years ago

Describe the bug Can't create an organization benefactor (corporate or insurance) when patient isn't linked to user

Impact When the benefactor cannot be added, they unable to pay for services

To Reproduce Steps to reproduce the behavior:

  1. Switch to billing workspace
  2. Find a patient orphaned from user profile
  3. Add the patient to a corporate or insurance organization
  4. You'll notice that the benefactor cannot be created (error: patient matching query does not exist)

Expected behavior We should be able to reliably add an insurance or corporate benefactor

Screenshots/Screencast N/A

Desktop (please complete the following information):

Additional context N/A

chris-dare commented 2 years ago

Update: I ran a test to see that this will cause challenges since patients can no longer be identified by email or phone number The profile of the patient in question needs to be updated before they are added as a corporate employee or insurance benefactor. Starting their visit before adding them as benefactors/employees also resolves this