Commit 6b8c1201 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

extend VisitImpl

parent a1ce3fa4
package de.sekmi.histream.etl; package de.sekmi.histream.etl;
import java.time.Instant;
import de.sekmi.histream.DateTimeAccuracy;
import de.sekmi.histream.etl.config.PatientTable;
import de.sekmi.histream.ext.Patient; import de.sekmi.histream.ext.Patient;
import de.sekmi.histream.impl.PatientImpl;
/** /**
* Row of patient data * Row of patient data
...@@ -12,12 +9,9 @@ import de.sekmi.histream.ext.Patient; ...@@ -12,12 +9,9 @@ import de.sekmi.histream.ext.Patient;
* @author Raphael * @author Raphael
* *
*/ */
public class PatientRow implements Patient{ public class PatientRow extends PatientImpl{
String patid;
String firstname; String firstname;
String lastname; String lastname;
DateTimeAccuracy birthdate;
DateTimeAccuracy deathdate;
// TODO concepts // TODO concepts
...@@ -25,61 +19,4 @@ public class PatientRow implements Patient{ ...@@ -25,61 +19,4 @@ public class PatientRow implements Patient{
this.firstname = first; this.firstname = first;
this.lastname = last; this.lastname = last;
} }
public void setBirthDate(DateTimeAccuracy date){
this.birthdate = date;
}
public void setDeathDate(DateTimeAccuracy date){
this.deathdate = date;
}
public static PatientRow load(Object[] input, ColumnMap map, PatientTable table){
PatientRow row = new PatientRow();
row.patid = null; // table.patid.valueOf(input[map.findIndex(table.patid)])
return row;
}
@Override
public String getId() {
return patid;
}
@Override
public void setId(String patientId) {
this.patid = patientId;
}
@Override
public String getSourceId() {
return null;
}
@Override
public Instant getSourceTimestamp() {
return null;
}
@Override
public void setSourceId(String arg0) {
// TODO Auto-generated method stub
}
@Override
public void setSourceTimestamp(Instant arg0) {
// TODO Auto-generated method stub
}
@Override
public DateTimeAccuracy getBirthDate() {
return this.birthdate;
}
@Override
public DateTimeAccuracy getDeathDate() {
return this.deathdate;
}
@Override
public Sex getSex() {
// TODO Auto-generated method stub
return null;
}
@Override
public void setSex(Sex arg0) {
// TODO Auto-generated method stub
}
} }
Supports Markdown
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