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/06/02 22:37] – gelöscht nerdoc | en:dev:modules:core:draft [2018/07/22 19:19] (current) – move datapacks into own module nerdoc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Core Module Draft ===== | ||
| + | ==== Settings API ==== | ||
| + | The Core module provides an API for other modules to register their settings (during the module installation routine). | ||
| + | Settings can have different levels: | ||
| + | * global (defaults) | ||
| + | * 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? | ||
| + | |||
| + | ==== Patients ==== | ||
| + | |||
| + | * To manage Patient identities, Gnumed has a [[http:// | ||
| + | * DOB (date of birth) | ||
| + | * COB (country of birth, 2 character ISO code) | ||
| + | * gender | ||
| + | * DOD (date of death/ | ||
| + | * title | ||
| + | * emergency_contact + link to another person | ||
| + | |||
| + | ==== User management ==== | ||
| + | FIXME 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 (for 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/ | ||
| + | * ZIP codes <-> Cities | ||
| + | * Given names -> sex | ||
| + | * sex -> salutation | ||
| + | |||
| + | E.g.: | ||
| + | * if a new patient is created, and " | ||
| + | * If " | ||
| + | * State/ | ||
| + | |||
| + | All of these database tables should be upgradable via [[en: | ||
| + | |||
| + | Considerations: | ||
| + | |||
| + | |||
| + | ==== 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. | ||
| + | This could be either implemented as a simple function like: | ||
| + | |||
| + | '' | ||
| + | |||
| + | A timestamp should be added automatically. | ||
| + | |||
| + | 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: Considerations: | ||
| + | |||
| + | ==== CAVE entries ==== | ||
| + | |||
| + | The CAVE entry functionality should be provided by the core module, as it is mandatory for all patients. | ||
| + | * 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) | ||
| + | |||
| + | FIXME: 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. | ||
en/dev/modules/core/draft.1496435833.txt.gz · Last modified: 2017/06/02 22:37 by nerdoc