|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComplexObsHandler
Interface for handling complex obs. Implementing classes are responsible for the storage and
retrieval of ComplexData associated with an Obs that is complex -- where Obs.isComplex() returns
true.
These handler classes are delegated to by the ObsService and should never be called directly.
Use case:
Obs complexObs = Context.getObsService().getComplexObs(123, OpenmrsConstants.RAW_VIEW); ComplexData complexData = complexObs.getComplexData(); Object largeStoredObject = complexData.getData();
Method Summary | |
---|---|
Obs |
getObs(Obs obs,
java.lang.String view)
Fetches the ComplexData from the location indicated from Obs.value_complex, attaches ComplexData onto the Obs and returns the Obs. |
boolean |
purgeComplexData(Obs obs)
Completely removes the ComplexData Object from its storage location. |
Obs |
saveObs(Obs obs)
Save a complex obs. |
Method Detail |
---|
Obs saveObs(Obs obs) throws APIException
obs
-
APIException
Obs getObs(Obs obs, java.lang.String view)
obs
- an obs without complex data filled inview
- nullable view type. This is defined by the ui and view/handler
OpenmrsConstants
boolean purgeComplexData(Obs obs)
obs
-
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |