public class BinaryStreamHandler extends AbstractHandler implements ComplexObsHandler
OpenmrsConstants.GLOBAL_PROPERTY_COMPLEX_OBS_DIR
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
longfmt, nf
Constructor and Description |
---|
BinaryStreamHandler()
Constructor initializes formats for alternative file names to protect from unintentionally
overwriting existing files.
|
Modifier and Type | Method and Description |
---|---|
Obs |
getObs(Obs obs,
String view)
Returns the same ComplexData for all views.
|
Obs |
saveObs(Obs obs)
Save a complex obs.
|
getComplexDataFile, getExtension, getOutputFileToWrite, purgeComplexData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
purgeComplexData
public BinaryStreamHandler()
public Obs getObs(Obs obs, String view)
getObs
in interface ComplexObsHandler
getObs
in class AbstractHandler
obs
- an obs without complex data filled inview
- nullable view type. This is defined by the ui and view/handlerComplexObsHandler.getObs(Obs, String)
public Obs saveObs(Obs obs) throws APIException
ComplexObsHandler
saveObs
in interface ComplexObsHandler
APIException
ComplexObsHandler.saveObs(Obs)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.