esaude/openmrs-contrib-deidentifier

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OpenMRS

OpenMRS Database Deidentifier

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:

Usage
1. Backup

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.

2. Run Script

Run the script in the MySQL console or some other way:

l> source de-id-patients.sql
Status
Done
Person Name Person Address Observations
Patient Identifier
Location
Location Tag
Community

OpenMRS Talk OpenMRS IRC OpenMRS Telegram OpenMRS Wiki

License

MPL 2.0 w/ HD


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.