Commit 7571f4e6 authored by R.W.Majeed's avatar R.W.Majeed

allow retrieval of patient and visit table names

parent af643c90
......@@ -82,6 +82,12 @@ public class CSVWriter implements ExportWriter{
public void setPatientTableName(String tableName){
this.patientTableName = tableName;
}
public String getPatientTableName(){
return this.patientTableName;
}
public String getVisitTableName(){
return this.visitTableName;
}
/**
* Escape data before it is written to the output file.
* <p>
......@@ -97,12 +103,12 @@ public class CSVWriter implements ExportWriter{
}
@Override
public TableWriter openPatientTable() throws IOException {
return new Table(this, fileNameForTable(patientTableName));
return new Table(this, fileNameForTable(getPatientTableName()));
}
@Override
public TableWriter openVisitTable() throws IOException {
return new Table(this, fileNameForTable(visitTableName));
return new Table(this, fileNameForTable(getVisitTableName()));
}
@Override
......
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