Script to de-identify data in Platform 1.9.7?

Hey, does anyone have an sql script or module that can take an 1.9.7 data model and produce a de-identified version? Or perhaps a module which does the same?

1 Like

We have a script and will send it.

Feel free to customize. There are varying degrees for de-identifying. The tightest one deletes all free text observations since it’s possible that a identifying information could be included. Levels of address too. You can delete country, district, down the the address. If you have special identifying fields (.person attributes), those should be added to the script.

Ellen

1 Like

https://github.com/Bhamni/bahmni-environment/blob/master/scripts/bahmni-tools/anonymise-lite/deidentify_openmrs.sql

Hope it helps. You might face issues at the end where there are some Bahmni specific statements, but the others should be generic (hopefully).

1 Like

Thanks to you both!