public class TableExport extends Object
ExportDescriptor.| Constructor and Description |
|---|
TableExport(ExportDescriptor desc) |
| Modifier and Type | Method and Description |
|---|---|
ExportSummary |
export(ObservationSupplier supplier,
ExportWriter writer)
Export all observations by the given supplier to the specified
ExportWriter. |
int |
getPatientCount() |
int |
getVisitCount() |
void |
setErrorHandler(Consumer<ObservationException> handler)
Specify an error handler to handle ObservationException during
the
export(ObservationSupplier, ExportWriter) operation. |
public TableExport(ExportDescriptor desc)
public void setErrorHandler(Consumer<ObservationException> handler)
export(ObservationSupplier, ExportWriter) operation.
If the ObservationException is caused by an ExportException or
an IOException, the cause is unwrapped and rethrown during
export(ObservationSupplier, ExportWriter).
handler - error handlerpublic ExportSummary export(ObservationSupplier supplier, ExportWriter writer) throws ExportException, IOException
ExportWriter.
Errors which are not ExportException and IOException (these two
are usually unrecoverable) that occur during observation processing can be
handled via setErrorHandler(Consumer).
supplier - observation supplierwriter - export writerExportException - export exceptionIOException - IO exceptionpublic int getPatientCount()
public int getVisitCount()
Copyright © 2013–2017 R.W.Majeed. All rights reserved.