🎓
Run Inferno ONC tests against Aidbox locally
How to setup Aidbox and Inferno ONC locally to pass the tests

Install Devbox

Follow Step 1, Step 2 and Step 3 of the instruction to install Devbox

Extend .env file

In addition of the Step 3 of the instruction define following values in the .env file.
1
# Define aidbox parameters
2
# (https://docs.aidbox.app/getting-started/installation/setup-aidbox.dev#install-devbox)
3
AIDBOX_BASE_URL=http://host.docker.internal:8888
4
AIDBOX_CREATED_AT_URL=http://example.com/createdat
5
AIDBOX_PORT=8888
6
AIDBOX_FHIR_VERSION=4.0.1
7
AIDBOX_COMPLIANCE=enabled
8
9
# Define zen project
10
BOX_PROJECT_GIT_PROTOCOL=https
11
BOX_PROJECT_GIT_URL=https://github.com/Aidbox/aidbox-project-samples.git
12
BOX_PROJECT_GIT_SUB__PATH=aidbox-project-samples
13
BOX_PROJECT_ENTRYPOINT=smartbox.portal/box
14
15
# Define access to you the bucket (https://docs.aidbox.app/api-1/bulk-api-1/usdexport#setup-storage)
16
box_bulk__storage_backend=
17
box_bulk__storage_gcp_service__account=
18
box_bulk__storage_gcp_bucket=
Copied!

Run Devbox

Execute the command bellow to run Devbox.
1
docker-compose up -d
Copied!

Data samples for ONC certification

On startup Aidbox populates necessary resources Inferno validates across the tests:
  • Patient
  • AllergyIntolerance
  • CarePlan
  • CareTeam
  • Condition
  • Device
  • DiagnosticReport
  • DocumentReference
  • Goal
  • Encounter
  • Immunization
  • MedicationRequest
  • Observation
  • Organization
  • Practitioner
  • Procedure
  • Provenance
  • Location

Configure Aidbox

To let Inferno connect to the Aidbox we should add Application (Client in terms of Aidbox).

Login to Aidbox

  1. 1.
    Open Aidbox UI in your web-browser http://localhost:8888
  2. 2.
    Enter login and password being defined in AIDBOX_ADMIN_ID and AIDBOX_ADMIN_PASSWORD
  3. 3.
    Get to the REST Console

Create Client resource

In the REST Console run the command to create the Client.
1
PUT /Client/inferno-g10-client
2
3
id: inferno-g10-client
4
resourceType: Client
5
auth:
6
authorization_code:
7
pkce: false
8
audience:ml
9
- http://host.docker.internal:8888/smart
10
redirect_uri: http://localhost/custom/smart/redirect
11
refresh_token: true
12
secret_required: false
13
access_token_expiration: 36000
14
smart:
15
launch_uri: http://localhost/custom/smart/launch
16
secret: inferno-secret
17
grant_types:
18
- authorization_code
19
- basic
Copied!

Launch Inferno

Follow this instruction to install and run Inferno locally.
In the Inferno UI (http://localhost) select ONC Certification (g)(10) Standardized API test suite and launch the tests.