From c87e14b328bb714cd89510a60180e795dd942116 Mon Sep 17 00:00:00 2001 From: anikamk1828 <71610304+anikamk1828@users.noreply.github.com> Date: Fri, 26 Apr 2024 18:40:02 -0400 Subject: [PATCH] added feature #1326, middle name in patients.csv --- src/main/java/org/mitre/synthea/export/CSVExporter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/mitre/synthea/export/CSVExporter.java b/src/main/java/org/mitre/synthea/export/CSVExporter.java index 9cd3c70ca8..9dc336001e 100644 --- a/src/main/java/org/mitre/synthea/export/CSVExporter.java +++ b/src/main/java/org/mitre/synthea/export/CSVExporter.java @@ -297,7 +297,7 @@ private static List 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); @@ -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, @@ -2021,4 +2022,4 @@ private OutputStreamWriter getWriter(Path outputDirectory, String filename, bool append = append && file.exists(); return new OutputStreamWriter(new FileOutputStream(file, append), charset); } -} \ No newline at end of file +}