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

Starts aidbox.bulk import.

Object with the following structure:

  • format input resources format, fhir or aidbox (default: fhir)

  • meta meta data that will be attached to each of the imported resources

  • on-conflict action to resolve id uniqueness constraint violation, update or override

  • input array of objects

    • url string with input source url

Resource requirements for aidbox.bulk/import-start:

OperationidresourceType

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

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

Returns latest aidbox.bulk import detailed errors list

Object with the following structure:

  • omit-resources? (default: false)

Example

POST /rpc
content-type: text/yaml
accept: text/yaml

method: aidbox.bulk/import-errors
params:
  omit-resources?: true

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