This module will contain a Complex Observation Handler used to store unstructured data in the form of a complex observation to any storage systems suited for the purpose. It will also provide an API for other modules to store unstructured data using a DAO that can be implemented to store this data using various storage backends. It will also provide configuration options page allowing the user to select the preferred backend that is used for storage.
Code Block | ||||
---|---|---|---|---|
| ||||
public class UnstructuredDataHandler extends AbstractHandler implements ComplexObsHandler {
DocumentHandler handler = Context.getService(UnstructuredDataService.class).getHandler();
UnstructuredDataHandler(){
handler.initialize();
}
@Override
public Obs saveObs(Obs obs) throws APIException {
return handler.saveObs(obs);
}
@Override
public boolean purgeComplexData(Obs obs) {
return handler.purgeComplexData(obs);
}
@Override
public Obs getObs(Obs obs, String view) {
return handler.getObs(obs, view);
}
} |
Status title This page is a work in progress