Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle Name added to patients.csv #1451

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
}
Loading