en:dev:modules:core:draft
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dev:modules:core:draft [2017/10/24 23:57] – [User management] nerdoc | en:dev:modules:core:draft [2018/07/22 19:19] (current) – move datapacks into own module nerdoc | ||
|---|---|---|---|
| Line 90: | Line 90: | ||
| * State/ | * State/ | ||
| - | All of these database tables should be updatable | + | All of these database tables should be upgradable |
| Considerations: | Considerations: | ||
| - | ==== DataPacks ==== | ||
| - | Provides a central format for downloading/ | ||
| - | E.g. as source | + | ==== Audits ==== |
| - | A possible datapack | + | Every action that any module takes must have an audit trail. The core module should provide a central API for logging actions, and log actions automatically wherever possible. |
| - | Datapack { | + | This could be either implemented as a simple function like: |
| - | uid: „5c87644a-5082-426c-ae4a-39e4a245ecf9“ | + | |
| - | label: „zipcodes“ | + | |
| - | description: | + | |
| - | license: „CC-BY-SA“ | + | |
| - | version: „1.0“ | + | |
| - | created: „2014-03-02 23: | + | |
| - | lastUpdated: | + | |
| - | resource: „medux.masterdata.zipcodes“ | + | |
| - | data: { | + | |
| - | {5020, „Salzburg“}, | + | |
| - | {8010, „Graz“} | + | |
| - | // ... | + | |
| - | } | + | |
| - | } | + | |
| - | The format should be able to handle diffs, so that incremental updates are possible to reduce download and database update time: | + | '' |
| - | DataPackDiff { | + | |
| - | uid: " | + | |
| - | datapackUid: | + | |
| - | label: „zipcodes update 2014-04“ | + | |
| - | description: | + | |
| - | license: „CC-BY-SA“ | + | |
| - | version: „1.0“ | + | |
| - | created: „2014-04-01 20: | + | |
| - | lastUpdated: | + | |
| - | resource: „medux.masterdata.zipcodes“ | + | |
| - | addedData: { | + | |
| - | {8020, „Graz“} | + | |
| - | } | + | |
| - | changedData: | + | |
| - | deletedData { | + | |
| - | {" | + | |
| - | } | + | |
| - | } | + | |
| - | Consider: Strings in datapacks should be translateable: | ||
| - | * separate files per language | ||
| - | * add .po files | ||
| - | * add languages in one JSON/XML DataPack | ||
| - | * | ||
| - | ==== Audit ==== | ||
| - | Every action that any module takes must have an audit trail. The core module should provide a central API for logging actions, and log actions automatically wherever possible. | ||
| - | This could be a simple function like: | ||
| - | medux.core.audit.auditLog(user, | ||
| A timestamp should be added automatically. | A timestamp should be added automatically. | ||
| - | Considerations: | + | This should happen on the server. The client (CAVE: open source!) should have no influence on audit trails - and must not be able to switch them off or bypass them. |
| + | |||
| + | FIXME: | ||
| ==== CAVE entries ==== | ==== CAVE entries ==== | ||
| - | The CAVE entry functionality should be provided by the core module, as it is mandatory for all patients. It must somehow work together with the diagnoses module - this could be done by the diagnoses module itself, as the core module does not know anything about " | + | The CAVE entry functionality should be provided by the core module, as it is mandatory for all patients. |
| * Allergies | * Allergies | ||
| * Intolerances | * Intolerances | ||
| - | There are some data to add to the Cave objects: | + | There are some data to add to the CAVE objects: |
| * Evidence of the data: | * Evidence of the data: | ||
| * patient told us he has an allergy | * patient told us he has an allergy | ||
| Line 160: | Line 119: | ||
| * Last updated state (timestamp) | * Last updated state (timestamp) | ||
| - | Considerations: | + | FIXME: |
| ==== Substance abuse ==== | ==== Substance abuse ==== | ||
| Another issue to be discussed whether it should be in Core or in [[en: | Another issue to be discussed whether it should be in Core or in [[en: | ||
| - | ==== Tools ==== | + | ===== Tools ===== |
| ==== Merge Patients ==== | ==== Merge Patients ==== | ||
| It must be able to merge patients. This functionality must expose a plugin API for other modules that need to merge data as well. | It must be able to merge patients. This functionality must expose a plugin API for other modules that need to merge data as well. | ||
en/dev/modules/core/draft.1508882226.txt.gz · Last modified: 2017/10/24 23:57 by nerdoc