medal-data-integration-details
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| medal-data-integration-details [2022/01/10 10:52] – arnaud_poletto | medal-data-integration-details [2022/01/10 14:56] (current) – removed arnaud_poletto | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== medAL-data Integration details ====== | ||
| - | In this section we summarize the components that have been integrated into medAL-data' | ||
| - | |||
| - | ===== Back-end Changes ===== | ||
| - | |||
| - | The back-end changes consists of the following additions: | ||
| - | - Model and Controller for Health Facilities and Devices | ||
| - | - '' | ||
| - | - New service classes to perform the business logic for: | ||
| - | - Algorithms | ||
| - | - Devices | ||
| - | - Health Facilities | ||
| - | - '' | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Passport Installation ===== | ||
| - | |||
| - | In order to install passport, we had to make slight changes to the laravel version currently used by this server. Originally, the '' | ||
| - | |||
| - | < | ||
| - | " | ||
| - | ... | ||
| - | " | ||
| - | ... | ||
| - | }, | ||
| - | </ | ||
| - | Which we changed to: | ||
| - | < | ||
| - | " | ||
| - | .... | ||
| - | " | ||
| - | ... | ||
| - | }, | ||
| - | </ | ||
| - | for the passport installation to work properly. | ||
| - | |||
| - | After changing the '' | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Database Migrations ===== | ||
| - | |||
| - | The new migrations are the following: | ||
| - | - New nullable columns are added to the pre-existing health_facilities table that are used to manage health facilities. Moreover, a name column has been added (as the pre-existing was unconventionally called facility_name). | ||
| - | - The devices table and device_types table have been created to store device information. | ||
| - | - The health_facility_accesses table has been created to store all the algorithm versions metadata that have been assigned to health facilities. | ||
| - | - The version_jsons table has been created to store the version' | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Services ===== | ||
| - | |||
| - | The '' | ||
| - | The '' | ||
| - | The '' | ||
| - | For more information, | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Controllers ===== | ||
| - | The newly controllers are the following: | ||
| - | - The '' | ||
| - | - The '' | ||
| - | - The '' | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Middlewares and Policies ===== | ||
| - | |||
| - | The '' | ||
| - | - middleware (only users with the Logistician role hold these permissions). Additionally, | ||
| - | |||
| - | ===== Requests and Resources ===== | ||
| - | For creating and editing devices and health facilities, custom request classes have been created to validate the request. Moreover, when returning device models to the front-end it is first converted to a Device resource which omits some fields and translates others for the user. | ||
| - | |||
| - | ===== Roles ===== | ||
| - | The Logistician role has been added with has permissions to reset its own password, view its user information, | ||
| - | |||
| - | ===== Front-end Changes ===== | ||
| - | The existing front-end has been extended with two new dashboard accessible to logistician users, Devices and Health Facilities. Both dashboard are made of reactive vue components. | ||
| - | |||
| - | ===== Upgrade Laravel-Mix ===== | ||
| - | The version of Laravel mix previously declared in package.json was making the node compilation failed (on heroku) so it has been changed to : " | ||
| - | |||
| - | after which the command npm install is run to update the dependencies. | ||
medal-data-integration-details.1641808368.txt.gz · Last modified: 2022/01/10 10:52 by arnaud_poletto
                
                