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

Row level data deletion using dataframer #30

Open
matthewpeterkort opened this issue Aug 19, 2024 · 1 comment
Open

Row level data deletion using dataframer #30

matthewpeterkort opened this issue Aug 19, 2024 · 1 comment

Comments

@matthewpeterkort
Copy link
Collaborator

matthewpeterkort commented Aug 19, 2024

If the the researcher or person with FHIR data wants to remove a certain FHIR row or set of FHIR rows from their "dataframed" dataset, how can they?

How can this operation be done considering that the data framer does not create a 1-1 mapping of FHIR ids, and some new ids are generated given the pivot operation that also occurs in the data framer.

Row level deletion applies directly to Bundle DELETE operations in the Fhir_server

@bwalsh
Copy link
Collaborator

bwalsh commented Aug 21, 2024

Simplest solution would be to delete all items from the data frame with that project_id via an elastic search
delete by query
where auth_resource_path = f"/programs/{program}/projects/{project}" - then load the new data in

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

No branches or pull requests

2 participants