How to enable patient data access API
This guide explains how safe API for Patients and their resources can be enabled
Prerequisites
Docker and Docker Compose
You should have Docker and Docker Compose installed before go further. To get it installed follow the instructions.
Aidbox license
To get the Aidbox License:
Go the Aidbox user portal https://aidbox.app
Login to the portal
Create new self-hosted Aidbox License or use the license that you already have
Create Aidbox project
Aidbox is configured by the Aidbox Configuration Projects. To create sample project run command below
More details at running Aidbox locally
Apply the license
Populate the .env
file with the Aidbox License.
Enable Patients data access API
To enable safe Patients API add necessary imports to the zrc/main.edn
file.
Add aidbox.patient-api.v1
to the import section.
Start Aidbox with Docker Compose
To start Aidbox run the command in the aidbox-project
directory.
When Aidbox starts, navigate to the http://localhost:8888 and sign in to the Aidbox UI using the credentials admin
/ password
.
Ensure Patient data access API works
Create sample resources
Use Aidbox UI Rest Console to create nested Organization resources.
You should have 2 Patients and 1 Observation resources.
Check safe Patient access API works
Patient/pt-1 sees its data
Patient/pt-2 cannot see other Patient's data
Last updated