knowing/Medmon — Issue #5: IPatientService Interface + Implementation
Author: muuki88
Created: 2011-11-03 22:00:14+00:00
State: open

IPatientService has the following functionality:

The database acts only as a cache for
- raw data
- train data
- datamining results

The IPatientService works the following way:

[1] binds IEntityManagerService to access the database
[2] creates/controls medmon-patient directory ( {user.home}/.medmon/patient )
-> first implementation does this statically, next version may use OSGi-Preferences service to change application directory

The _locate_ methods return Java 7 NIO Path to handle the directories directly

The _store_, _load_, _remove_, _merge_ methods return Input/Outputstreams as
the underlying implementation is unrelevant (file, url, bundle-ressource).

All methods throw IOExceptions, e.g database and filesystem are out of sync.
Maybe a _sync_ method should be added, too, if you want to check filesystem-database
integrity.