ACED-IDP / submission

Submit FHIR based data into a Gen3 Commons
1 stars 0 forks source link

Row level data deletion using dataframer #30

Open matthewpeterkort opened 3 weeks ago

matthewpeterkort commented 3 weeks ago

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 commented 3 weeks ago

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