public class ImageHandler extends AbstractHandler implements ComplexObsHandler
ImageIO.getWriterFormatNames() then that mime type will be used to save the
image. Images are stored in the location specified by the global property: "obs.complex_obs_dir"OpenmrsConstants.GLOBAL_PROPERTY_COMPLEX_OBS_DIR| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
longfmt, nf| Constructor and Description |
|---|
ImageHandler()
Constructor initializes formats for alternative file names to protect from unintentionally
overwriting existing files.
|
| Modifier and Type | Method and Description |
|---|---|
Obs |
getObs(Obs obs,
java.lang.String view)
Currently supports all views and puts the Image file data into the ComplexData object
|
Obs |
saveObs(Obs obs)
Save a complex obs.
|
getComplexDataFile, getExtension, getOutputFileToWrite, purgeComplexDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpurgeComplexDatapublic ImageHandler()
public Obs getObs(Obs obs, java.lang.String view)
getObs in interface ComplexObsHandlergetObs in class AbstractHandlerobs - an obs without complex data filled inview - nullable view type. This is defined by the ui and view/handlerComplexObsHandler.getObs(org.openmrs.Obs, java.lang.String)public Obs saveObs(Obs obs) throws APIException
ComplexObsHandlersaveObs in interface ComplexObsHandlerAPIExceptionComplexObsHandler.saveObs(org.openmrs.Obs)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.