Skip to content

Commit

Permalink
added feature synthetichealth#1326, middle name in patients.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
anikamk1828 committed Apr 26, 2024
1 parent 2e587be commit c87e14b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/mitre/synthea/export/CSVExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private static List<String> propStringToList(String fileListString) {
*/
private void writeCSVHeaders() throws IOException {
patients.write("Id,BIRTHDATE,DEATHDATE,SSN,DRIVERS,PASSPORT,"
+ "PREFIX,FIRST,LAST,SUFFIX,MAIDEN,MARITAL,RACE,ETHNICITY,GENDER,BIRTHPLACE,"
+ "PREFIX,FIRST,MIDDLE,LAST,SUFFIX,MAIDEN,MARITAL,RACE,ETHNICITY,GENDER,BIRTHPLACE,"
+ "ADDRESS,CITY,STATE,COUNTY,FIPS,ZIP,LAT,LON,"
+ "HEALTHCARE_EXPENSES,HEALTHCARE_COVERAGE,INCOME");
patients.write(NEWLINE);
Expand Down Expand Up @@ -625,6 +625,7 @@ private String patient(Person person, long time) throws IOException {
Person.IDENTIFIER_PASSPORT,
Person.NAME_PREFIX,
Person.FIRST_NAME,
Person.MIDDLE_NAME,
Person.LAST_NAME,
Person.NAME_SUFFIX,
Person.MAIDEN_NAME,
Expand Down Expand Up @@ -2021,4 +2022,4 @@ private OutputStreamWriter getWriter(Path outputDirectory, String filename, bool
append = append && file.exists();
return new OutputStreamWriter(new FileOutputStream(file, append), charset);
}
}
}

0 comments on commit c87e14b

Please sign in to comment.