Name: openmrs-contrib-deidentifier
Owner: eSaude
Description: Tool to anonymize an OpenMRS database.
Created: 2016-04-15 23:38:41.0
Updated: 2016-04-15 23:38:41.0
Pushed: 2016-04-25 10:38:36.0
Homepage: null
Size: 6
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Tool for removing identifiable information from an OpenMRS database
Sometimes you need to share a database containing patient data in order to debug an issue. Databases containing data that can be used to identify patients should NEVER be shared. Instead, use the script in this repository to remove any identifiable information first.
:warning: Do not run this on a production database :warning:
First make sure you have a database backup, since this script will make irreversible changes to your database:
ldump -u <USER> -p openmrs > openmrs-backup-`date +%d-%m-%y_%Hh%Mm%Ss`.sql
Replace <USER>
with your database username and openmrs
with your database name if you are using a custom database name.
Run the script in the MySQL console or some other way:
l> source de-id-patients.sql
given_name
middle_name
family_name
family_name2
address1
city_village
county_district
concept_id=2927
concept_id=2928
concept_id=2298
concept_id=2299
identifier
name
description
address2
state_province
country
county_district
address6
name
description