public interface ComplexObsHandler
Obs complexObs = Context.getObsService().getComplexObs(123, OpenmrsConstants.RAW_VIEW); ComplexData complexData = complexObs.getComplexData(); Object largeStoredObject = complexData.getData();
Modifier and Type | Field and Description |
---|---|
static String |
HTML_VIEW |
static String |
PREVIEW_VIEW |
static String |
RAW_VIEW |
static String |
TEXT_VIEW |
static String |
TITLE_VIEW |
static String |
URI_VIEW |
Modifier and Type | Method and Description |
---|---|
Obs |
getObs(Obs obs,
String view)
Fetches the ComplexData from the location indicated from Obs.value_complex, attaches
ComplexData onto the Obs and returns the Obs.
|
String[] |
getSupportedViews()
Supported views getter
|
boolean |
purgeComplexData(Obs obs)
Completely removes the ComplexData Object from its storage location.
|
Obs |
saveObs(Obs obs)
Save a complex obs.
|
boolean |
supportsView(String view)
View support check
|
static final String RAW_VIEW
static final String TITLE_VIEW
static final String TEXT_VIEW
static final String HTML_VIEW
static final String PREVIEW_VIEW
static final String URI_VIEW
Obs saveObs(Obs obs) throws APIException
obs
- APIException
Obs getObs(Obs obs, String view)
obs
- an obs without complex data filled inview
- nullable view type. This is defined by the ui and view/handlerOpenmrsConstants
boolean purgeComplexData(Obs obs)
obs
- String[] getSupportedViews()
boolean supportsView(String view)
view
- view type defined by UI and view/handlerCopyright © 2024 OpenMRS Inc.. All rights reserved.