aidbox.bulk data import
aidbox.bulk/* RPC operations
Overview
aidbox.bulk API uses Aidbox JSON RPC API
Features of the aidbox.bulk API:
Asynchronous validation of uploaded resources & references
Human readable validation errors
Can process Aidbox & FHIR format
RPC methods
aidbox.bulk/import-start
aidbox.bulk/import-start
Starts aidbox.bulk
import.
Object with the following structure:
format
input resources format,fhir
oraidbox
(default:fhir
)meta
meta data that will be attached to each of the imported resourceson-conflict
action to resolve id uniqueness constraint violation,update
oroverride
input
array of objectsurl
string with input source url
Resource requirements for aidbox.bulk/import-start
:
aidbox.bulk/import-start
:aidbox.bulk/import-start
Required
Required
Example
POST /rpc
content-type: text/yaml
accept: text/yaml
method: aidbox.bulk/import-start
params:
on-conflict: update
id_prefix: app1
format: fhir
meta: {source: app1}
input:
- {url: 'https://storage.googleapis.com/aidbox-public/synthea/100/corrupted-patient.ndjson.gz'}
aidbox.bulk/import-status
aidbox.bulk/import-status
Returns latest aidbox.bulk
import info
Expects no parameters
Example
POST /rpc
content-type: text/yaml
accept: text/yaml
method: aidbox.bulk/import-status
params: {}
aidbox.bulk/import-errors
aidbox.bulk/import-errors
Returns latest aidbox.bulk
import detailed errors list
Expects no parameters
Example
POST /rpc
content-type: text/yaml
accept: text/yaml
method: aidbox.bulk/import-errors
params:
omit-resources?: true
aidbox.bulk/import-cancel
aidbox.bulk/import-cancel
Cancels latest aidbox.bulk
import
Expects no parameters
Example
POST /rpc
content-type: text/yaml
accept: text/yaml
method: aidbox.bulk/import-cancel
Last updated
Was this helpful?