en:dev:modules:core
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dev:modules:core [2017/10/13 23:39] – [Description] deleted half sentence nerdoc | en:dev:modules:core [2018/07/29 10:16] (current) – ==== User stories ==== nerdoc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Core module ====== | ====== Core module ====== | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The core module handles everything that is needed for accessing patient' | + | The core module handles everything that is needed for accessing patient' |
| + | It keeps a versioning scheme that directs all other modules so they can depend on "Medux Core version 2.0" to have a consistent API structure. | ||
| - | ==== Settings API ==== | + | Have a look at the [[en:dev:modules: |
| - | The Core module provides an API for other modules to register their settings (during | + | |
| - | Settings can have different levels: | + | |
| - | * global | + | |
| - | * client specific (e.g. only client " | + | |
| - | * role specific (e.g. only doctors) | + | |
| - | * user specific (e.g. only user " | + | |
| - | * device specific (e.g. a certain computer) | + | |
| - | To consider: which setting should have higher priority: user, global or group? permission or deny? | + | ==== User stories |
| - | + | ||
| - | ==== User management | + | |
| - | possibly in own module? | + | |
| - | + | ||
| - | ==== ACL system ==== | + | |
| - | MedUX must have '' | + | |
| - | * Client A (Practice Dr.Jekyll) | + | |
| - | * Dr.Jekyll | + | |
| - | * Nurse 1 | + | |
| - | * Practice helper 1 | + | |
| - | * Practice helper 2 | + | |
| - | * Client B (Practice Dr.Hyde) | + | |
| - | * Dr.Hyde | + | |
| - | * Nurse 2 | + | |
| - | * Practice helper 1 | + | |
| - | + | ||
| - | Mind that '' | + | |
| - | + | ||
| - | It must be possible that single patients (VIP, relatives, etc.) can be " | + | |
| - | + | ||
| - | Fast user switching must be possible, without having to restart the whole application (Fingerprint, | + | |
| - | + | ||
| - | Objects should be: '' | + | |
| - | + | ||
| - | ==== Plugin permissions ==== | + | |
| - | + | ||
| - | We could implement a " | + | |
| - | Therefore the plugin system must be modified so that plugin hooks are only loaded if the right permissions are granted. | + | |
| - | Plugins must *register* new permissions (like " | + | |
| - | + | ||
| - | def initialize(): | + | |
| - | register_permission(" | + | |
| - | + | ||
| - | Permissions are defined then in the Interface: | + | |
| - | + | ||
| - | def CustomPluginHook(Interface): | + | |
| - | permissions = [" | + | |
| - | + | ||
| - | The permission should be checked automatically by the plugin system, and must not be interferred with custom code during the plugin hook call. If the current user has no grant for a specific permission, the Interface/ | + | |
| - | + | ||
| - | === Links === | + | |
| - | * Role Based Access Control (RBAC): [[http:// | + | |
| - | * Context Based Access Control: [[http:// | + | |
| - | + | ||
| - | ==== Master data management ==== | + | |
| - | MedUX Core should provide easy access to central data that is used widely in the application. | + | |
| - | + | ||
| - | Generic master data: | + | |
| - | * Patients | + | |
| - | * Doctors (für referrals) | + | |
| - | * Hospitals | + | |
| - | * Hospital departments | + | |
| - | * Laboratories | + | |
| - | * Insurances: GKK, BVA, SVA etc. ([[en: | + | |
| - | * Insurance groups: employed, self-employed, | + | |
| - | * Companies (Pharma, Medical industry contacts for deliveries, etc.) | + | |
| - | * (Private persons) | + | |
| - | + | ||
| - | === Helpers === | + | |
| - | There should be database tables for auto-suggestions or auto-fill functionality: | + | |
| - | * States | + | |
| - | * Countries | + | |
| - | * Cities | + | |
| - | * ZIP codes <-> cities | + | |
| - | * Given names <-> sex | + | |
| - | * sex <-> salutation (really a db table needed?) | + | |
| - | * Languages | + | |
| - | + | ||
| - | E.g. if a new patient is created, and " | + | |
| - | + | ||
| - | All of these database tables should be updateable via [[# | + | |
| - | + | ||
| - | Considerations: | + | |
| - | + | ||
| - | ==== DataPacks ==== | + | |
| - | 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: | + | |
| - | 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. | + | |
| - | + | ||
| - | Considerations: | + | |
| - | + | ||
| - | ==== 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 " | + | |
| - | * Allergies | + | |
| - | * Intolerances | + | |
| - | + | ||
| - | There are some data to add to the Cave objects: | + | |
| - | * Evidence of the data: | + | |
| - | * patient told us he has an allergy | + | |
| - | * we have a medical report with a confirmed allergy | + | |
| - | * Last updated state (timestamp) | + | |
| - | + | ||
| - | Considerations: | + | |
| - | + | ||
| - | ==== Substance abuse ==== | + | |
| - | Another issue to be discussed whether it should be in Core or in [[en: | + | |
| - | + | ||
| - | ==== Tools ==== | + | |
| - | ==== 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. | + | |
| ===== Links ===== | ===== Links ===== | ||
en/dev/modules/core.1507930764.txt.gz · Last modified: 2017/10/13 23:39 by nerdoc