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
`git clone [email protected]:Aidbox/examples.git && cd examples/fhir-sdc`
11
+
`git clone [email protected]:Aidbox/examples.git && cd examples/fhir-sdc-api`
12
12
13
13
14
14
## 1. Run Aidbox
@@ -28,7 +28,7 @@ To fill the form, you can use Aidbox Forms UI or use FHIR SDC API from Aidbox Re
28
28
29
29
1. Open Aidbox Forms UI: [`localhost:8080/ui/sdc`](http://localhost:8080/ui/sdc)
30
30
2. Click share on the **_CVD Reference Form_** (this is the form that was imported)
31
-
3. Choose a patient
31
+
3. Choose a patient
32
32
4. Click Attach button to get the link
33
33
34
34
Now you can open the link you obtained on the last step and start filling the form.
@@ -54,14 +54,14 @@ parameter:
54
54
55
55
## 3. Extract and save resources from QuestionnaireResponse
56
56
57
-
FHIR SDC defines an operation `$extract` to retrieve resources from `QuestionnaireResponse`. However, since it’s a stateless operation, it returns a `Bundle` that you need to save by yourself.
57
+
FHIR SDC defines an operation `$extract` to retrieve resources from `QuestionnaireResponse`. However, since it’s a stateless operation, it returns a `Bundle` that you need to save by yourself.
58
58
59
59
### 3.1 Using Aidbox Forms UI
60
60
61
61
The Aidbox Forms UI has auto-save feature. That means it will save `QuestionnaireResponse` each time you
62
-
changed answers in the form.
62
+
changed answers in the form.
63
63
64
-
But after clicking **`Submit`** button it will extract resources from this QuestionnaireResponse and save it into database. So you don’t need to save extracted resources manually.
64
+
But after clicking **`Submit`** button it will extract resources from this QuestionnaireResponse and save it into database. So you don’t need to save extracted resources manually.
65
65
66
66
### 3.2 Using FHIR SDC API
67
67
@@ -81,7 +81,7 @@ parameter:
81
81
- name: return
82
82
resource:
83
83
resourceType: Bundle
84
-
entry:
84
+
entry:
85
85
— resource:
86
86
resourceType: Observation
87
87
<<< list of resources >>>
@@ -95,10 +95,10 @@ Now we need to save this `Bundle` that we get in `return` parameter using `POST
95
95
POST /
96
96
97
97
resourceType: Bundle
98
-
entry:
99
-
- resource:
98
+
entry:
99
+
- resource:
100
100
resourceType: Observation
101
-
<<< list of extracted resources >>>
101
+
<<< list of extracted resources >>>
102
102
```
103
103
104
104
## View extracted resources
@@ -107,9 +107,4 @@ entry:
107
107
GET /Observation
108
108
```
109
109
110
-
Since our form extracts only observation you should see two or three new Observations depending on your answers.
111
-
112
-
113
-
114
-
115
-
110
+
Since our form extracts only observation you should see two or three new Observations depending on your answers.
0 commit comments