Skip to content

Commit

Permalink
Merge pull request #1451 from anikamk1828/patch-1
Browse files Browse the repository at this point in the history
Middle Name added to patients.csv
  • Loading branch information
jawalonoski authored Apr 29, 2024
2 parents 2e587be + c87e14b commit 9aeb325
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 9aeb325

Please sign in to comment.