Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoldenResource remains when target resource is deleted #5037

Open
jdar8 opened this issue Jun 27, 2023 · 0 comments · Fixed by #5038
Open

GoldenResource remains when target resource is deleted #5037

jdar8 opened this issue Jun 27, 2023 · 0 comments · Fixed by #5038

Comments

@jdar8
Copy link
Collaborator

jdar8 commented Jun 27, 2023

Describe the bug
When soft or hard deleting the source resource of a golden resource, the golden resource is left orphaned.

To Reproduce
Steps to reproduce the behavior:

  1. Set up MDM
  2. Post patient to create golden record
  3. You will have say xxx1 as golden record and xxx2 as another record in under xxx1 golden record
  4. Delete xxx2 record from golden record xxx1 using delete. Now you will have xxx1 golden record with no records under it
  5. Post same patient again it will create another golden record say xxx3 and it wont go under previous empty golden record xxx1

Expected behavior
If there are no more MATCH links to a GR, the GR should be deleted to prevent orphaning.

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 a pull request may close this issue.

1 participant