uamuzibora/fly-south — pull request #8 by kenners (2012-07-07 11:16:17+00:00)
Title: Updates from Kakamega

A few changes from testing here in Kakamega:

1. We now toggle MySQL's `foreign_key_checks` off and on either side of our import function. If we don't have this we end up in foreign key constraint hell.

2. Updated `location_id`, `identifier_type_id` and a few other bits to accurately reflect the installation of OpenMRS here

3. Updated Patient Attribute IDs for Telephone Number and Marital Status to reflect our installation

4. When importing a patient, we now accurately import their alive/deceased status **and** if they're deceased, exit them from treatment by creating an appropriate observation record in the `obs` table.
* This bit of code is ugly and can probably be refactored into something more elegant/efficient.