medal-data-passport
Differences
This shows you the differences between two versions of the page.
medal-data-passport [2021/12/17 10:37] – created arnaud_poletto | medal-data-passport [2021/12/29 13:55] (current) – removed arnaud_poletto | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Passport Installation ==== | ||
- | In order to install // | ||
- | < | ||
- | json | ||
- | " | ||
- | ... | ||
- | " | ||
- | ... | ||
- | }, | ||
- | </ | ||
- | Which we changed to: | ||
- | < | ||
- | json | ||
- | " | ||
- | .... | ||
- | " | ||
- | ... | ||
- | }, | ||
- | </ | ||
- | for the passport installation to work properly. After changing the '' | ||
- | < | ||
- | composer update | ||
- | composer require laravel/ | ||
- | </ | ||
- | which will successfully install // | ||
- | |||
- | |||
- | |||
- | ===== Database Model ===== | ||
- | {{:: | ||
- | |||
- | |||
- | DELETEME | ||
- | |||
- | ===== Health Facility Setup & Device Registration ===== | ||
- | |||
- | In this section, we show how to use the new interface to create health facilities and assign to them devices such as medAL-// | ||
- | |||
- | |||
- | |||
- | |||
- | ==== Health Facility Creation ==== | ||
- | |||
- | FIXME: new passport feature | ||
- | |||
- | To start, login with a user which has the // | ||
- | When creating a medal-// | ||
- | |||
- | |||
- | |||
- | ==== Device Assignment ==== | ||
- | |||
- | To assign an existing device to a health facility, head to the health facility management panel and click on the '' | ||
- | |||
- | ====Algorithm Version Assignment==== | ||
- | Similarly, medAL-*creator* algorithm versions can be assigned to health facilities by clicking the `Algorithms` button on the row corresponding to the health facility. The window will show two dropdown lists where an algorithm and corresponding version can be assigned. When a version is replaced, the older versions will appear in the table below. Note that choosing a version for which a *json* has not been properly generated on the *creator* server will result in an error. | ||
- | <img src=" | ||
- | |||
- | === Device API === | ||
- | When devices and an algorithm version is assigned to a health facility, devices can request access tokens from the medAL-*data* server in order to authenticate to medAL-*data*' | ||
- | |||
- | ===Getting a Token with PKCE in Postman=== | ||
- | In order to get a token and a refresh token, the PKCE OAuth flow must be used. For the example above, this can be tested using the postman collection' | ||
- | |||
- | ===Protected Routes=== | ||
- | The protected routes allow devices to: | ||
- | - Upload medical cases (to be integrated still) | ||
- | - Fetch information from the health facility such that the pin code and hub IP | ||
- | - Upload its own device information such as mac address, os etc.. | ||
- | - Fetch the json of the algorithm version that is assigned to this health facility | ||
- | You can try out these routes using the Postman collection replacing the `token` variable with the one received using the PKCE flow. | ||
- | |||
- | DELETEME | ||
- | ==== Credentials ==== | ||
- | |||
- | * medAL-// |
medal-data-passport.1639733825.txt.gz · Last modified: 2021/12/17 10:37 by arnaud_poletto