You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DELETEFROM role WHERE resource#>>'{links,patient,id}' = 'PATIENT_ID';
80
+
DELETEFROM patient WHERE id ='PATIENT_ID';
81
+
DELETEFROM QuestionnaireResponse WHERE resource#>>'{subject,id}' = 'PATIENT_ID';
82
+
```
83
+
84
+
### Create new coordinators
85
+
86
+
To create a coordinator, you need to add two entities to the system: User and Role.
87
+
88
+
Below, you will find links to create them in the Aidbox console, along with information about the required fields and which values you need to modify to ensure each coordinator is unique and valid.
89
+
90
+
Please note that the order of creation is important, as there are dependencies between the resources.
91
+
92
+
In this document aidbox backend reference is http://localhost:8080. You need to use correct address.
1. Use need to use a reference to your previously created User ID;
143
+
2. You can use any id or just skip it.
144
+
145
+
### Request patient's data through FHIR API
146
+
147
+
You can retrieve data for a specific user by searching for the Patient resource by ID, along with related QuestionnaireResponse resources using the _revinclude search parameter. This approach will return a Bundle of type searchset, which should contain a single Patient resource and three QuestionnaireResponse resources.
148
+
149
+
Below is an example of such a request. You can use Aidbox's REST console to execute it.
150
+
151
+
```bash
152
+
GET /fhir/Patient?_id=patient_id&_revinclude=QuestionnaireResponse:subject
0 commit comments