Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d88f113

Browse files
committedFeb 25, 2025
feat(healthcare): update the api
#### healthcare:v1 The following keys were added: - resources.projects.resources.locations.resources.datasets.resources.fhirStores.methods.bulk-export-group (Total Keys: 19) - resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.fhir.methods.bulk-export (Total Keys: 17) - resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.operations.methods.delete-fhir-operation (Total Keys: 11) - resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.operations.methods.get-fhir-operation-status (Total Keys: 11) - schemas.BulkExportGcsDestination (Total Keys: 3) - schemas.FhirStore.properties.bulkExportGcsDestination.$ref (Total Keys: 1) #### healthcare:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.datasets.resources.fhirStores.methods.bulk-export-group (Total Keys: 19) - resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.fhir.methods.bulk-export (Total Keys: 17) - resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.operations.methods.delete-fhir-operation (Total Keys: 11) - resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.operations.methods.get-fhir-operation-status (Total Keys: 11) - schemas.BulkExportGcsDestination (Total Keys: 3) - schemas.FhirStore.properties.bulkExportGcsDestination.$ref (Total Keys: 1)
1 parent 6871ed6 commit d88f113

8 files changed

+774
-2
lines changed
 

‎docs/dyn/healthcare_v1.projects.locations.datasets.fhirStores.fhir.html

+31
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ <h2>Instance Methods</h2>
101101
<p class="toc_element">
102102
<code><a href="#Resource_validate">Resource_validate(parent, type, body=None, profile=None, x__xgafv=None)</a></code></p>
103103
<p class="firstline">Validates an input FHIR resource's conformance to its profiles and the profiles configured on the FHIR store. Implements the FHIR extended operation $validate ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resource-operations.html#validate), [STU3](http://hl7.org/implement/standards/fhir/STU3/resource-operations.html#validate), or [R4](http://hl7.org/implement/standards/fhir/R4/resource-operation-validate.html)). The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The `Parameters` input syntax is not supported. The `profile` query parameter can be used to request that the resource only be validated against a specific profile. If a profile with the given URL cannot be found in the FHIR store then an error is returned. Errors generated by validation contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.</p>
104+
<p class="toc_element">
105+
<code><a href="#bulk_export">bulk_export(name, outputFormat=None, x__xgafv=None, x_since=None, x_type=None)</a></code></p>
106+
<p class="firstline">Bulk exports all resources from the FHIR store to the specified destination. Implements the FHIR implementation guide [system level $export](https://build.fhir.org/ig/HL7/bulk-data/export.html#endpoint---system-level-export. The following headers must be set in the request: * `Accept`: specifies the format of the `OperationOutcome` response. Only `application/fhir+json` is supported. * `Prefer`: specifies whether the response is immediate or asynchronous. Must be to `respond-async` because only asynchronous responses are supported. Specify the destination for the server to write result files by setting the Cloud Storage location bulk_export_gcs_destination on the FHIR store. URI of an existing Cloud Storage directory where the server writes result files, in the format gs://{bucket-id}/{path/to/destination/dir}. If there is no trailing slash, the service appends one when composing the object path. The user is responsible for creating the Cloud Storage bucket referenced. Supports the following query parameters: * `_type`: string of comma-delimited FHIR resource types. If provided, only the resources of the specified type(s) are exported. * `_since`: if provided, only the resources that are updated after the specified time are exported. * `_outputFormat`: optional, specify ndjson to export data in NDJSON format. Exported file names use the format: {export_id}_{resource_type}.ndjson. On success, the `Content-Location` header of the response is set to a URL that the user can use to query the status of the export. The URL is in the format: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/operations/{export_id}`. See get-fhir-operation-status for more information. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error.</p>
104107
<p class="toc_element">
105108
<code><a href="#capabilities">capabilities(name, x__xgafv=None)</a></code></p>
106109
<p class="firstline">Gets the FHIR capability statement ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), [R4](http://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or the [conformance statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the DSTU2 case for the store, which contains a description of functionality supported by the server. Implements the FHIR standard capabilities interaction ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or the [conformance interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in the DSTU2 case. On success, the response body contains a JSON-encoded representation of a `CapabilityStatement` resource.</p>
@@ -414,6 +417,34 @@ <h3>Method Details</h3>
414417
}</pre>
415418
</div>
416419

420+
<div class="method">
421+
<code class="details" id="bulk_export">bulk_export(name, outputFormat=None, x__xgafv=None, x_since=None, x_type=None)</code>
422+
<pre>Bulk exports all resources from the FHIR store to the specified destination. Implements the FHIR implementation guide [system level $export](https://build.fhir.org/ig/HL7/bulk-data/export.html#endpoint---system-level-export. The following headers must be set in the request: * `Accept`: specifies the format of the `OperationOutcome` response. Only `application/fhir+json` is supported. * `Prefer`: specifies whether the response is immediate or asynchronous. Must be to `respond-async` because only asynchronous responses are supported. Specify the destination for the server to write result files by setting the Cloud Storage location bulk_export_gcs_destination on the FHIR store. URI of an existing Cloud Storage directory where the server writes result files, in the format gs://{bucket-id}/{path/to/destination/dir}. If there is no trailing slash, the service appends one when composing the object path. The user is responsible for creating the Cloud Storage bucket referenced. Supports the following query parameters: * `_type`: string of comma-delimited FHIR resource types. If provided, only the resources of the specified type(s) are exported. * `_since`: if provided, only the resources that are updated after the specified time are exported. * `_outputFormat`: optional, specify ndjson to export data in NDJSON format. Exported file names use the format: {export_id}_{resource_type}.ndjson. On success, the `Content-Location` header of the response is set to a URL that the user can use to query the status of the export. The URL is in the format: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/operations/{export_id}`. See get-fhir-operation-status for more information. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error.
423+
424+
Args:
425+
name: string, Required. The name of the FHIR store to export resources from, in the format `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. (required)
426+
outputFormat: string, Optional. Output format of the export. This field is optional and only `application/fhir+ndjson` is supported.
427+
x__xgafv: string, V1 error format.
428+
Allowed values
429+
1 - v1 error format
430+
2 - v2 error format
431+
x_since: string, Optional. If provided, only resources updated after this time are exported. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
432+
x_type: string, Optional. String of comma-delimited FHIR resource types. If provided, only resources of the specified resource type(s) are exported.
433+
434+
Returns:
435+
An object of the form:
436+
437+
{ # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
438+
&quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
439+
&quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
440+
&quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
441+
{
442+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
443+
},
444+
],
445+
}</pre>
446+
</div>
447+
417448
<div class="method">
418449
<code class="details" id="capabilities">capabilities(name, x__xgafv=None)</code>
419450
<pre>Gets the FHIR capability statement ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), [R4](http://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or the [conformance statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the DSTU2 case for the store, which contains a description of functionality supported by the server. Implements the FHIR standard capabilities interaction ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or the [conformance interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in the DSTU2 case. On success, the response body contains a JSON-encoded representation of a `CapabilityStatement` resource.

0 commit comments

Comments
 (0)
Please sign in to comment.