FHIR Chat · Import using Parameters · bulk data

Stream: bulk data

Topic: Import using Parameters


view this post on Zulip Bas van den Heuvel (Sep 16 2019 at 20:07):

During the connecthaton we discussed representing the input into the $import function in a Parameter object. Below a sample STU3 OperationDefinition that shows such mapping.
{
"resourceType": "OperationDefinition",
"id": "BulkData-import",
"url": "http://hl7.org/fhir/OperationDefinition/BulkData-inport",
"name": "import",
"status": "draft",
"kind": "operation",
"publisher": "HL7 (FHIR Project)",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "https://github.com/smart-on-fhir/bulk-import/blob/master/import.md"
}
]
}
],
"description": "The import operation loads the referred ndjson file and stores them in the server.",
"code": "import",
"comment": "The result of the operation is an operation outcome.",
"system": true,
"type": false,
"instance": false,
"parameter": [
{
"name": "inputFormat",
"use": "in",
"min": 1,
"max": "1",
"documentation": "Servers SHALL support Newline Delimited JSON with a format type of application/fhir+ndjson but MAY choose to support additional input formats.",
"type": "Reference",
"profile": {
"reference": "http://hl7.org/fhir/StructureDefinition/Encounter"
}
},
{
"name": "inputSource",
"use": "in",
"min": 1,
"max": "1",
"documentation": "FHIR base URL for data source. Used by the importing system when matching references to previously imported data.",
"type": "url"
},
{
"name": "input",
"use": "in",
"min": 0,
"max": "1",
"documentation": "Array with references to data to be imported.",
"part": [
{
"name": "type",
"use": "in",
"min": 1,
"max": "1",
"documentation": "The resource type in the file.",
"type": "string"
},
{
"name": "url",
"use": "in",
"min": 1,
"max": "1",
"documentation": "The url from which the file can be downloaded",
"type": "string"
}
]
},
{
"name": "storageDetail",
"use": "in",
"min": 0,
"max": "1",
"documentation": "Defaults to type of \"https\" with no parameters specified",
"part": [
{
"name": "https",
"use": "in",
"min": 0,
"max": "1",
"part": [
{
"name": "contentEncoding",
"use": "in",
"min": 0,
"max": "*",
"documentation": "set of content encodings for https",
"type": "string"
}
]
}
]
}
]
},


Last updated: Apr 12 2022 at 19:14 UTC