Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 664 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 664 Bytes

This section contains a set of scripts to be used to clean ANC data

FIX PATIENTS WITH MULTIPLE LMP

  • This data cleaning script will void any duplicate CURRENT PREGNANCY encounter that was recorded in the same pregnancy after the first visit
Running the script
  • on the root dir of the project, run the following script
rails r bin/fix_patients_with_dup_lmp.rb

CLEAN ORDERS WITH ZERO SP

  • This data cleaning script will update quantity of drug orders SP (3 tablets) with zero quantity from 0 to 3
Running the script
  • on the root dir of the project, run the following script
rails r bin/clean_zero_dispensed_sp.rb