$import & /fhir/$import
$importis an implementation of the upcoming FHIR Bulk Import API. This is an asynchronous Operation, which returns url to monitor progress. There are two versions of this operation -
/fhir/$importaccepts data in FHIR format,
/$importworks with Aidbox format.
Keep in mind that $import does not validate inserted resources for the sake of performance. Pay attention to the structure of data you insert and use the correct URL for your data format, i.e.: use /fhir prefix for FHIR data.
- resourceType: Encounter
- resourceType: Organization
- resourceType: Patient
You can monitor progress by using
idyou provided in request body.
If you didn't provide
idin request body, you can use
content-locationin response header.
Identifier of the import
Resources to import
Update history for updated resources (false by default)
For performance reasons
$importdoes raw upsert into resource table without history update. If you want to store the previous version of resources in history, please set
update = true
With this flag Aidbox will update history for updated resources. For each resource:
- if resource was not present in DB before the import, the import time will be the same.
- if resource was present in DB before and it's updated during the import, it will double the time importing this resource because of additional insert operation into