Code Refactor and Document Patient-Caregiver Relationship Model#45
Open
sakshamror wants to merge 5 commits intomainfrom
Open
Code Refactor and Document Patient-Caregiver Relationship Model#45sakshamror wants to merge 5 commits intomainfrom
sakshamror wants to merge 5 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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