Skip to content

Code Refactor and Document Patient-Caregiver Relationship Model#45

Open
sakshamror wants to merge 5 commits intomainfrom
saksham-pr
Open

Code Refactor and Document Patient-Caregiver Relationship Model#45
sakshamror wants to merge 5 commits intomainfrom
saksham-pr

Conversation

@sakshamror
Copy link
Collaborator

@sakshamror sakshamror commented Aug 11, 2025

Description

Added a script (scripts/find-unlinked-patients.js) to identify patients without linked caregivers, along with supporting seed data fixes and package.json updates for related scripts. This helps detect and resolve orphaned patient records in the database

Todos

  • Tested and working locally
  • Code follows the style guidelines of this project
  • I have performed a self-review of my code
  • Code changes documented
  • Requested review from >= 1 devs on the team

How to test

Pull the branch.
Run npm install.
Seed the database with sample data.
Run npm run find-orphans to check for patients without caregivers.
Verify that the script outputs the correct patient list.
Optionally run npm run fix-orphans to repair broken relationships.

Associated MS Planner Tasks

https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/planner.v1.1c7aff73-bd5d-4eaf-844f-a0f0914d35b0_p_obnY9eRGNEGXqjBUOhDWKcgAFWt1?tenantId=d02378ec-1688-46d5-8540-1c28b5f470f6&webUrl=https%3A%2F%2Ftasks.teams.microsoft.com%2Fteamsui%2FpersonalApp%2Falltasklists&context=%7B%22subEntityId%22%3A%22%2Fv1%2Fplan%2FobnY9eRGNEGXqjBUOhDWKcgAFWt1%2Fview%2Fboard%2Ftask%2F9P3oYOYLa0qn7O3nOlR33MgAP74t%22%2C%22channelId%22%3A%2219%3A02e7479536e247c5a85093cf6dcaca4c%40thread.tacv2%22%7D

@sakshamror sakshamror changed the title Saksham pr Code Refactor and Document Patient-Caregiver Relationship Model Aug 22, 2025
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.

1 participant