Skip to content

Commit

Permalink
Add new field LOC_RK_CODE for shapefile match
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Oct 27, 2020
1 parent 1b65d0d commit 48ff7eb
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 15 deletions.
8 changes: 7 additions & 1 deletion db_changes/step_01_location_name_adjust.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,10 @@ UPDATE OPD SET OPD_PAT_CITY = 'Wolisso Town' WHERE OPD_PAT_CITY = 'Wolisso town'
-- Sodo Dachi Town changes
UPDATE LOCATION SET LOC_CITY = 'Sodo Dachi' WHERE LOC_CITY = 'Sodo dachi';
UPDATE PATIENT SET PAT_CITY = 'Sodo Dachi' WHERE PAT_CITY = 'Sodo dachi';
UPDATE OPD SET OPD_PAT_CITY = 'Sodo Dachi' WHERE OPD_PAT_CITY = 'Sodo dachi';
UPDATE OPD SET OPD_PAT_CITY = 'Sodo Dachi' WHERE OPD_PAT_CITY = 'Sodo dachi';

-- Chitu Town changes
UPDATE LOCATION SET LOC_ADDRESS = 'Chitu Town' WHERE (LOC_CITY = 'Wonchi') and (LOC_ADDRESS = 'Chitu town');
UPDATE PATIENT SET PAT_CITY = 'Wonchi', PAT_ADDR = 'Chitu Town' WHERE PAT_CITY = 'Wonchi' AND PAT_ADDR = 'Chitu town';
UPDATE OPD SET OPD_PAT_CITY = 'Wonchi' AND OPD_PAT_ADDR = 'Chitu Town' WHERE OPD_PAT_CITY = 'Wonchi' AND OPD_PAT_ADDR = 'Chitu town';

Loading

0 comments on commit 48ff7eb

Please sign in to comment.