You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/healthcare-apis/fhir/import-data.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.author: kesheth
11
11
12
12
# Import FHIR data
13
13
14
-
The `import` operation allows you to ingest FHIR® data into the FHIR server with high throughput.
14
+
You can use the `import` operation to ingest FHIR data into the FHIR server with high throughput.
15
15
16
16
## Import operation modes
17
17
@@ -33,7 +33,7 @@ The `import` operation supports two modes: initial and incremental. Each mode ha
33
33
34
34
- If import files have resources with duplicate `version` and `lastUpdated` field values, only one resource is randomly ingested in the FHIR service.
35
35
36
-
- Allows you to ingest soft-deleted resources. This capability is beneficial when you migrate from the Azure API for FHIR to the FHIR service in Azure Health Data Services.
36
+
- Allows you to ingest soft-deleted resources. This capability is beneficial when you migrate from Azure API for FHIR to the FHIR service in Azure Health Data Services.
37
37
38
38
> [!IMPORTANT]
39
39
> The `import` operation doesn't support conditional references in resources.
@@ -54,19 +54,19 @@ To achieve the best performance with the `import` operation, consider these fact
54
54
55
55
### Prerequisites
56
56
57
-
-You need the **FHIR Data Importer** role on the FHIR server to use the `import` operation.
57
+
-To use the `import` operation, you need the **FHIR Data Importer** role on the FHIR server.
58
58
59
59
- Configure the FHIR server. The FHIR data must be stored in resource-specific files in FHIR NDJSON format on the Azure blob store. For more information, see [Configure import settings](configure-import-data.md).
60
60
61
-
- All the resources in a file must be the same type. You can have multiple files per resource type.
61
+
- All the resources in a file must be the same type. You can have multiple files for each resource type.
62
62
63
63
- The data must be in the same tenant as the FHIR service.
64
64
65
-
- The maximum number of files allowed per`import` operation is 10,000.
65
+
- The maximum number of files allowed for each`import` operation is 10,000.
66
66
67
-
### Call $import
67
+
### Make a call
68
68
69
-
Make a `POST` call to `<<FHIR service base URL>>/$import` with the request header and body shown.
69
+
Make a `POST` call to `<<FHIR service base URL>>/$import` with the following request header and body.
|`inputFormat`| String that represents the name of the data source format. Only FHIR NDJSON files are supported. | 1..1 |`application/fhir+ndjson`|
83
-
|`mode`| Import mode value. | 1..1 | For an initial-mode import, use the `InitialLoad` mode value. For incremental-mode import, use the `IncrementalLoad` mode value. If no mode value is provided, the `IncrementalLoad` mode value is used by default. |
83
+
|`mode`| Import mode value. | 1..1 | For an initial-mode import, use the `InitialLoad` mode value. For incremental-mode import, use the `IncrementalLoad` mode value. If you don't provide a mode value, the `IncrementalLoad` mode value is used by default. |
84
84
|`input`| Details of the input files. | 1..*| A JSON array with the three parts described in the following table. |
85
85
86
86
| Input part name | Description | Cardinality | Accepted values |
After you start an `import` operation, an empty response body with a `callback` link is returned in the `Content-location` header of the response, together with an `202 Accepted` status code. Store the callback link to check the import status.
141
141
142
-
Regration of the `import` operation is implemented as an idempotent call. The same registration payload yields the same registration, which affects the ability to reprocess files with the same name. Refrain from updating files in place. Instead, we suggest that you use a different file name for updated data. Or, if an in-place update with same file name is unavoidable, add ETags in the registration payload.
142
+
Registration of the `import` operation is implemented as an idempotent call. The same registration payload yields the same registration, which affects the ability to reprocess files with the same name. Refrain from updating files in place. Instead, we suggest that you use a different file name for updated data. Or, if an in-place update with same file name is unavoidable, add ETags in the registration payload.
143
143
144
-
To check import status, make the REST call with the `GET` method to the `callback` link returned in the previous step.
144
+
To check the import status, make the REST call with the `GET` method to the `callback` link returned in the previous step.
145
145
146
146
Interpret the response by using this table:
147
147
@@ -212,7 +212,7 @@ If you don't know the ID of the resource, do a history search on the resource ty
212
212
213
213
## Troubleshoot the import operation
214
214
215
-
Here are the error messages that occur if the `import` operation fails, along with recommended actions to take to resolve the problem.
215
+
Here are the error messages that occur if the `import` operation fails, along with recommended actions to resolve the problems.
216
216
217
217
#### 200 OK, but there's an error with the URL in the response
218
218
@@ -225,7 +225,7 @@ Here are the error messages that occur if the `import` operation fails, along wi
225
225
{
226
226
"severity": "error",
227
227
"details": {
228
-
"text": "Given conditional reference '{0}' does'nt resolve to a resource."
228
+
"text": "Given conditional reference '{0}' doesn't resolve to a resource."
229
229
},
230
230
"diagnostics": "Failed to process resource at line: {0} with stream start offset: {1}"
231
231
}
@@ -239,7 +239,7 @@ Here are the error messages that occur if the `import` operation fails, along wi
239
239
240
240
#### 400 Bad Request
241
241
242
-
**Behavior:** The import operation failed and `400 Bad Request` is returned. The response body includes this content:
242
+
**Behavior:** The `import` operation fails and returns `400 Bad Request`. The response body includes this content:
243
243
244
244
```json
245
245
{
@@ -259,7 +259,7 @@ Here are the error messages that occur if the `import` operation fails, along wi
259
259
260
260
#### 403 Forbidden
261
261
262
-
**Behavior:** The import operation failed and `403 Forbidden` is returned. The response body contains this content:
262
+
**Behavior:** The `import` operation fails and returns `403 Forbidden`. The response body contains this content:
263
263
264
264
```json
265
265
{
@@ -281,7 +281,7 @@ Here are the error messages that occur if the `import` operation fails, along wi
281
281
282
282
#### 500 Internal Server Error
283
283
284
-
**Behavior:** The `import` operation failed and `500 Internal Server Error` is returned. The response body contains this content:
284
+
**Behavior:** The `import` operation fails and returns `500 Internal Server Error`. The response body contains this content:
0 commit comments