Bulk Data Access IG, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 4.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/bulk-data/ and changes regularly. See the Directory of published versions
| Page standards status: Trial-use | Maturity Level: 2 |
{
"resourceType" : "OperationDefinition",
"id" : "bulk-submit",
"language" : "en",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition bulk-submit</b></p><a name=\"bulk-submit\"> </a><a name=\"hcbulk-submit\"> </a><p>URL: [base]/$bulk-submit</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>submitter</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td/><td><div><p>The submitter SHALL match a system and value specified by the Data Consumer (coordinated out-of-band or in an implementation guide specific to a use case).</p>\n</div></td></tr><tr><td>IN</td><td>submissionId</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The value SHALL be unique for the <code>submitter</code>.</p>\n</div></td></tr><tr><td>IN</td><td>submissionStatus</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td><a href=\"ValueSet-submission-status.html\">Submission Status Value Set</a> (Required)</td><td><div><p>System of <code>http://hl7.org/fhir/event-status</code>, code of <code>in-progress</code> (default if parameter is omitted), <code>completed</code> or <code>stopped</code>. Once a request has been submitted with a <code>submissionStatus</code> of <code>stopped</code> or <code>completed</code>, additional requests SHALL NOT be submitted for that <code>submitter</code> and <code>submissionId</code> combination. At least one of the <code>submissionStatus</code> and <code>manifestUrl</code> parameters SHALL be populated.</p>\n</div></td></tr><tr><td>IN</td><td>manifestUrl</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#url\">url</a></td><td/><td><div><p>Url pointing to a <a href=\"StructureDefinition-BulkDataManifest.html\">Bulk Data Manifest</a> with a pre-coordinated FHIR data set. Files in multiple submitted manifests with the same <code>submitter</code> and <code>submissionId</code> SHALL be treated by the Data Consumer as if they were submitted in a single manifest. This parameter MAY be omitted when the operation is being called to set the <code>submissionStatus</code> to <code>completed</code> or <code>stopped</code>, or to remove a previously submitted manifest using <code>replacesManifestUrl</code>. The value SHALL be unique for all manifests that share a <code>submitter</code> and <code>submissionId</code> combination. At least one of the <code>submissionStatus</code> and <code>manifestUrl</code> parameters SHALL be populated. When this parameter is populated, the <code>fhirBaseUrl</code> parameter SHALL also be populated.</p>\n</div></td></tr><tr><td>IN</td><td>replacesManifestUrl</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#url\">url</a></td><td/><td><div><p>The url of a previously submitted manifest that has the same <code>submissionId</code> and <code>submitter</code> as this request. When provided, the Data Consumer SHALL discard the data from the referenced manifest and, when <code>manifestUrl</code> is also populated, replace it with the data in that manifest. If the url is invalid or the Data Consumer is unable to replace the data, it SHALL return an error response as described in <a href=\"submit.html#response---error\">Response - Error</a>.</p>\n</div></td></tr><tr><td>IN</td><td>outputFormat</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The format for the Bulk Data files in the manifest. The MIME-type MAY include a MIME-type parameter of <code>fhirVersion</code> as described in the <a href=\"https://hl7.org/fhir/http.html#version-parameter\">FHIR specification</a> to indicate which version of FHIR the resources in the Bulk Data files are based on. A Data Consumer that does not support the indicated <code>fhirVersion</code> SHOULD reject the request with an HTTP <code>4XX</code> status and an OperationOutcome. When <code>outputFormat</code> is omitted, it defaults to <code>application/fhir+ndjson</code> (Newline Delimited JSON). When the <code>fhirVersion</code> MIME-type parameter is omitted, the FHIR version SHALL be pre-coordinated between the Data Provider and Data Consumer. All of the resources in a submission SHALL use the same version of FHIR.</p>\n</div></td></tr><tr><td>IN</td><td>fhirBaseUrl</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#url\">url</a></td><td/><td><div><p>Base URL to be used by the Data Consumer when resolving relative references in the submitted resources. The URL does not need to identify an operational FHIR REST endpoint or be dereferenceable by the Data Consumer. When the <code>manifestUrl</code> parameter is populated, this parameter SHALL be populated.</p>\n</div></td></tr><tr><td>IN</td><td>fileRequestHeader</td><td/><td>0..*</td><td/><td/><td><div><p>HTTP headers that the Data Consumer SHALL use when requesting the OAuth metadata, the manifest(s), and the files they reference.</p>\n</div></td></tr><tr><td>IN</td><td>fileRequestHeader.headerName</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>IN</td><td>fileRequestHeader.headerValue</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>IN</td><td>oauthMetadataUrl</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#url\">url</a></td><td/><td><div><p>Location that a Data Consumer can use to obtain the information needed to retrieve files protected using OAuth 2.0. The url SHALL be the path to a <a href=\"https://hl7.org/fhir/smart-app-launch/conformance.html#using-well-known\">FHIR Authorization Endpoint and Capabilities Discovery file</a> or another <a href=\"https://datatracker.ietf.org/doc/rfc9728/\">OAuth 2.0 Protected Resource Metadata file</a> that is registered in the <a href=\"https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml\">IANA Well-Known URIs Registry</a>.</p>\n</div></td></tr><tr><td>IN</td><td>metadata</td><td/><td>0..*</td><td/><td/><td><div><p>Pre-coordinated data relevant to the submission, passed from the Data Provider to the Data Consumer. Each <code>metadata</code> parameter contains a <code>parameterUrl</code> part with an absolute URL identifying the metadata item and a <code>parameterValue</code> part with its value. This parameter MAY be repeated. Specific <code>parameterUrl</code> values are defined in implementation guides for particular use cases.</p>\n</div></td></tr><tr><td>IN</td><td>metadata.parameterUrl</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#uri\">uri</a></td><td/><td><div><p>An absolute URL identifying this metadata parameter.</p>\n</div></td></tr><tr><td>IN</td><td>metadata.parameterValue</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The value for this metadata parameter.</p>\n</div></td></tr><tr><td>IN</td><td>import</td><td/><td>0..*</td><td/><td/><td><div><p>Pre-coordinated options relevant to how the data will be processed, passed from the Data Provider to the Data Consumer. For example, a Data Consumer might allow the Data Provider to specify whether or not existing data should be replaced with the data in the submission. Each <code>import</code> parameter contains a <code>parameterUrl</code> part with an absolute URL identifying the option and a <code>parameterValue</code> part with its value. This parameter MAY be repeated. Specific <code>parameterUrl</code> values are defined in implementation guides for particular use cases.</p>\n</div></td></tr><tr><td>IN</td><td>import.parameterUrl</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#uri\">uri</a></td><td/><td><div><p>An absolute URL identifying this import parameter.</p>\n</div></td></tr><tr><td>IN</td><td>import.parameterValue</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The value for this import parameter.</p>\n</div></td></tr></table></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 2
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "trial-use",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/uv/bulkdata/ImplementationGuide/hl7.fhir.uv.bulkdata"
}
]
}
}
],
"url" : "http://hl7.org/fhir/uv/bulkdata/OperationDefinition/bulk-submit",
"version" : "4.0.0",
"name" : "BulkSubmit",
"title" : "FHIR Bulk Data Submit",
"status" : "active",
"kind" : "operation",
"date" : "2025-01-27",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"name" : "HL7 International / FHIR Infrastructure",
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
},
{
"system" : "email",
"value" : "fhir@lists.HL7.org"
}
]
}
],
"description" : "FHIR Operation through which an authenticated and authorized Data Provider submits Bulk FHIR Data to a Data Consumer and receives status information regarding the Data Consumer's receipt and processing of the data. The Data Provider provides one or more manifest URLs pointing to pre-coordinated FHIR data sets, along with metadata needed for the Data Consumer to retrieve and process the files.",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"affectsState" : true,
"code" : "bulk-submit",
"system" : true,
"type" : false,
"instance" : false,
"parameter" : [
{
"name" : "submitter",
"use" : "in",
"min" : 1,
"max" : "1",
"documentation" : "The submitter SHALL match a system and value specified by the Data Consumer (coordinated out-of-band or in an implementation guide specific to a use case).",
"type" : "Identifier"
},
{
"name" : "submissionId",
"use" : "in",
"min" : 1,
"max" : "1",
"documentation" : "The value SHALL be unique for the `submitter`.",
"type" : "string"
},
{
"name" : "submissionStatus",
"use" : "in",
"min" : 0,
"max" : "1",
"documentation" : "System of `http://hl7.org/fhir/event-status`, code of `in-progress` (default if parameter is omitted), `completed` or `stopped`. Once a request has been submitted with a `submissionStatus` of `stopped` or `completed`, additional requests SHALL NOT be submitted for that `submitter` and `submissionId` combination. At least one of the `submissionStatus` and `manifestUrl` parameters SHALL be populated.",
"type" : "Coding",
"binding" : {
"strength" : "required",
"valueSet" : "http://hl7.org/fhir/uv/bulkdata/ValueSet/submission-status"
}
},
{
"name" : "manifestUrl",
"use" : "in",
"min" : 0,
"max" : "1",
"documentation" : "Url pointing to a [Bulk Data Manifest](StructureDefinition-BulkDataManifest.html) with a pre-coordinated FHIR data set. Files in multiple submitted manifests with the same `submitter` and `submissionId` SHALL be treated by the Data Consumer as if they were submitted in a single manifest. This parameter MAY be omitted when the operation is being called to set the `submissionStatus` to `completed` or `stopped`, or to remove a previously submitted manifest using `replacesManifestUrl`. The value SHALL be unique for all manifests that share a `submitter` and `submissionId` combination. At least one of the `submissionStatus` and `manifestUrl` parameters SHALL be populated. When this parameter is populated, the `fhirBaseUrl` parameter SHALL also be populated.",
"type" : "url"
},
{
"name" : "replacesManifestUrl",
"use" : "in",
"min" : 0,
"max" : "1",
"documentation" : "The url of a previously submitted manifest that has the same `submissionId` and `submitter` as this request. When provided, the Data Consumer SHALL discard the data from the referenced manifest and, when `manifestUrl` is also populated, replace it with the data in that manifest. If the url is invalid or the Data Consumer is unable to replace the data, it SHALL return an error response as described in [Response - Error](submit.html#response---error).",
"type" : "url"
},
{
"name" : "outputFormat",
"use" : "in",
"min" : 0,
"max" : "1",
"documentation" : "The format for the Bulk Data files in the manifest. The MIME-type MAY include a MIME-type parameter of `fhirVersion` as described in the [FHIR specification](https://hl7.org/fhir/http.html#version-parameter) to indicate which version of FHIR the resources in the Bulk Data files are based on. A Data Consumer that does not support the indicated `fhirVersion` SHOULD reject the request with an HTTP `4XX` status and an OperationOutcome. When `outputFormat` is omitted, it defaults to `application/fhir+ndjson` (Newline Delimited JSON). When the `fhirVersion` MIME-type parameter is omitted, the FHIR version SHALL be pre-coordinated between the Data Provider and Data Consumer. All of the resources in a submission SHALL use the same version of FHIR.",
"type" : "string"
},
{
"name" : "fhirBaseUrl",
"use" : "in",
"min" : 0,
"max" : "1",
"documentation" : "Base URL to be used by the Data Consumer when resolving relative references in the submitted resources. The URL does not need to identify an operational FHIR REST endpoint or be dereferenceable by the Data Consumer. When the `manifestUrl` parameter is populated, this parameter SHALL be populated.",
"type" : "url"
},
{
"name" : "fileRequestHeader",
"use" : "in",
"min" : 0,
"max" : "*",
"documentation" : "HTTP headers that the Data Consumer SHALL use when requesting the OAuth metadata, the manifest(s), and the files they reference.",
"part" : [
{
"name" : "headerName",
"use" : "in",
"min" : 1,
"max" : "1",
"type" : "string"
},
{
"name" : "headerValue",
"use" : "in",
"min" : 1,
"max" : "1",
"type" : "string"
}
]
},
{
"name" : "oauthMetadataUrl",
"use" : "in",
"min" : 0,
"max" : "1",
"documentation" : "Location that a Data Consumer can use to obtain the information needed to retrieve files protected using OAuth 2.0. The url SHALL be the path to a [FHIR Authorization Endpoint and Capabilities Discovery file](https://hl7.org/fhir/smart-app-launch/conformance.html#using-well-known) or another [OAuth 2.0 Protected Resource Metadata file](https://datatracker.ietf.org/doc/rfc9728/) that is registered in the [IANA Well-Known URIs Registry](https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml).",
"type" : "url"
},
{
"name" : "metadata",
"use" : "in",
"min" : 0,
"max" : "*",
"documentation" : "Pre-coordinated data relevant to the submission, passed from the Data Provider to the Data Consumer. Each `metadata` parameter contains a `parameterUrl` part with an absolute URL identifying the metadata item and a `parameterValue` part with its value. This parameter MAY be repeated. Specific `parameterUrl` values are defined in implementation guides for particular use cases.",
"part" : [
{
"name" : "parameterUrl",
"use" : "in",
"min" : 1,
"max" : "1",
"documentation" : "An absolute URL identifying this metadata parameter.",
"type" : "uri"
},
{
"name" : "parameterValue",
"use" : "in",
"min" : 1,
"max" : "1",
"documentation" : "The value for this metadata parameter.",
"type" : "string"
}
]
},
{
"name" : "import",
"use" : "in",
"min" : 0,
"max" : "*",
"documentation" : "Pre-coordinated options relevant to how the data will be processed, passed from the Data Provider to the Data Consumer. For example, a Data Consumer might allow the Data Provider to specify whether or not existing data should be replaced with the data in the submission. Each `import` parameter contains a `parameterUrl` part with an absolute URL identifying the option and a `parameterValue` part with its value. This parameter MAY be repeated. Specific `parameterUrl` values are defined in implementation guides for particular use cases.",
"part" : [
{
"name" : "parameterUrl",
"use" : "in",
"min" : 1,
"max" : "1",
"documentation" : "An absolute URL identifying this import parameter.",
"type" : "uri"
},
{
"name" : "parameterValue",
"use" : "in",
"min" : 1,
"max" : "1",
"documentation" : "The value for this import parameter.",
"type" : "string"
}
]
}
]
}