Commit 8c017829 authored by R.W.Majeed's avatar R.W.Majeed
Browse files


parent 38f1d41e
......@@ -27,6 +27,13 @@ import de.sekmi.histream.impl.Meta;
import de.sekmi.histream.impl.ObservationFactoryImpl;
import de.sekmi.histream.impl.ObservationImpl;
* Read grouped observations from XML
* @see GroupedXMLWriter
* @author Raphael
public class GroupedXMLReader implements ObservationSupplier {
static final String DOCUMENT_ROOT = "eav-data";
static final String PATIENT_ELEMENT = "patient";
......@@ -39,22 +46,19 @@ public class GroupedXMLReader implements ObservationSupplier {
private Patient currentPatient;
private Visit currentVisit;
private Meta meta;
private Unmarshaller unmarshaller;
private XMLStreamReader reader;
// patient data
private String patientId;
private Map<String,String> patientData;
// encounter data
private String encounterId;
private DateTimeAccuracy encounterStart;
private DateTimeAccuracy encounterEnd;
private Map<String,String> visitData;
public GroupedXMLReader(ObservationFactory factory, InputStream input)throws JAXBException, XMLStreamException, FactoryConfigurationError{
this(factory, XMLInputFactory.newInstance().createXMLStreamReader(input));
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