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/25 00:02] – [Audit] s 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 ==== | ||
| - | FIXME This should go into a separate module. | ||
| - | Provides a central format for downloading/ | ||
| - | |||
| - | E.g. as source for ZIP codes, countries, cities etc. could be taken geonames.org which provides an excellent web api with XML output. | ||
| - | A possible datapack could be e.g.: | ||
| - | Datapack { | ||
| - | uid: „5c87644a-5082-426c-ae4a-39e4a245ecf9“ | ||
| - | label: „zipcodes“ | ||
| - | description: | ||
| - | license: „CC-BY-SA“ | ||
| - | version: „1.0“ | ||
| - | created: „2014-03-02 23:10:24“ | ||
| - | 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:12:13“ | ||
| - | lastUpdated: | ||
| - | resource: „medux.masterdata.zipcodes“ | ||
| - | addedData: { | ||
| - | {8020, „Graz“} | ||
| - | } | ||
| - | changedData: | ||
| - | deletedData { | ||
| - | {" | ||
| - | } | ||
| - | } | ||
| - | |||
| - | Consider: Strings in datapacks should be translatable: | ||
| - | * separate files per language | ||
| - | * add .po files | ||
| - | * add languages in one JSON/XML DataPack | ||
| ==== Audits ==== | ==== Audits ==== | ||
| 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. | 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. | ||
| Line 155: | Line 109: | ||
| ==== 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 165: | Line 119: | ||
| * Last updated state (timestamp) | * Last updated state (timestamp) | ||
| - | Considerations: | + | FIXME: |
| ==== Substance abuse ==== | ==== Substance abuse ==== | ||
en/dev/modules/core/draft.1508882558.txt.gz · Last modified: 2017/10/25 00:02 by nerdoc