Commit 6667d2e7 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix Gender to sex. #29

parent 10910bc7
Pipeline #7490 passed with stage
in 1 minute and 36 seconds
......@@ -150,7 +150,7 @@ def main():
# Write out patients table
shifted_filtered = shifted_df[["MRN", "GENDER", "ETHNICITY", "RACE",
'DEATH_DATE', 'DEATH_SOURCE']]
shifted_filtered.columns = ['mrn', 'gender', 'ethnicity', 'race', 'death_date', 'death_source']
shifted_filtered.columns = ['mrn', 'sex', 'ethnicity', 'race', 'death_date', 'death_source']
shifted_filtered.to_csv(patients, index=False)
# Write out shift table
......
......@@ -157,6 +157,7 @@ def main():
# Make output files
surgery_table = os.path.join(out_path + 'surgery_table.csv')
surgery_procedure_table = os.path.join(out_path + 'surgery_procedure_table.csv')
unmapped_table = os.path.join(out_path + 'unmapped_surgery_table.csv')
# Read in files
......
mrn,gender,ethnicity,race,death_date,death_source
mrn,sex,ethnicity,race,death_date,death_source
934,Female,Hispanic,White,,
313,Female,Non-hispanic,Black,1858-01-14,UTSouthwestern Hospital
398,Female,Non-hispanic,Black,,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment