Modified procedure to no longer populate the tmp_patient table. This is now done in the procedure prc_generate_anonids. Also modified inserts to dimension table to use 3 digit zipcodes.
Modified procedures to get encounter_num from the new sequence seq_encounter_anonid. Also applied the tmp_patient.dob_skew to the start and end_dates of the encounters, conditions and procedures to ensure de-identification. Added join to tmp_patient in order to get the dob_skew value for each patient.