Skip to content

Commit c65f81f

Browse files
committed
Update docker-compose in fhir-sdc-api example
1 parent 637695e commit c65f81f

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

fhir-sdc-api/README.md

+11-16
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This demo shows how to use [FHIR SDC Api](https://hl7.org/fhir/uv/sdc/) in Aidbo
66

77
1. Docker
88
2. Cloned repository: [Github: Aidbox/examples](https://github.com/Aidbox/examples/tree/main)
9-
3. Working directory: `fhir-sdc`
9+
3. Working directory: `fhir-sdc-api`
1010

11-
`git clone [email protected]:Aidbox/examples.git && cd examples/fhir-sdc`
11+
`git clone [email protected]:Aidbox/examples.git && cd examples/fhir-sdc-api`
1212

1313

1414
## 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
2828

2929
1. Open Aidbox Forms UI: [`localhost:8080/ui/sdc`](http://localhost:8080/ui/sdc)
3030
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
3232
4. Click Attach button to get the link
3333

3434
Now you can open the link you obtained on the last step and start filling the form.
@@ -54,14 +54,14 @@ parameter:
5454

5555
## 3. Extract and save resources from QuestionnaireResponse
5656

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.
5858

5959
### 3.1 Using Aidbox Forms UI
6060

6161
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.
6363

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.
6565

6666
### 3.2 Using FHIR SDC API
6767

@@ -81,7 +81,7 @@ parameter:
8181
- name: return
8282
resource:
8383
resourceType: Bundle
84-
entry:
84+
entry:
8585
— resource:
8686
resourceType: Observation
8787
<<< list of resources >>>
@@ -95,10 +95,10 @@ Now we need to save this `Bundle` that we get in `return` parameter using `POST
9595
POST /
9696
9797
resourceType: Bundle
98-
entry:
99-
- resource:
98+
entry:
99+
- resource:
100100
resourceType: Observation
101-
<<< list of extracted resources >>>
101+
<<< list of extracted resources >>>
102102
```
103103

104104
## View extracted resources
@@ -107,9 +107,4 @@ entry:
107107
GET /Observation
108108
```
109109

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.

fhir-sdc-api/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
- 8080:8080
2424
environment:
2525
BOX_INIT_BUNDLE: 'file:///resources/init-bundle.json'
26-
AIDBOX_ADMIN_PASSWORD: 1tF5MdpQxY
26+
AIDBOX_ADMIN_PASSWORD: admin
2727
AIDBOX_CLIENT_SECRET: secret
2828
AIDBOX_COMPLIANCE: enabled
2929
AIDBOX_CORRECT_AIDBOX_FORMAT: true

0 commit comments

Comments
 (0)