Commit 5c32166b authored by R.W.Majeed's avatar R.W.Majeed

priorize setting source timestamp

parent 740bcafa
......@@ -260,16 +260,16 @@ public class GroupedXMLReader implements ObservationSupplier {
//reader.nextTag();
currentVisit = visitAccessor.accessStatic(encounterId, currentPatient, (ExternalSourceType)es);
currentVisit.setStartTime(encounterStart);
currentVisit.setEndTime(encounterEnd);
currentVisit.setLocationId(visitData.get("location"));
if( es != null ){
currentVisit.setSourceTimestamp(es.getSourceTimestamp());
}
currentVisit.setStartTime(encounterStart);
currentVisit.setEndTime(encounterEnd);
currentVisit.setLocationId(visitData.get("location"));
// TODO set other visit data: gender, provider, in/out status
// TODO set other visit data: provider, in/out status
visitData.get("provider");
}
......
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