Index
FhirService
(interface)ConditionalDeleteResourceRequest
(message)ConditionalUpdateResourceRequest
(message)CreateResourceRequest
(message)DeleteResourceRequest
(message)ExecuteBundleRequest
(message)GetLastNObservationsRequest
(message)GetPatientEverythingRequest
(message)GetResourceRequest
(message)GetResourceVersionRequest
(message)SearchParameter
(message)SearchResourcesRequest
(message)UpdateResourceRequest
(message)ValidateResourceRequest
(message)
FhirService
gRPC service for handling FHIR resources in a FHIR store inside a healthcare dataset.
This service supports FHIR STU3 resources in the protocol buffer format as shown in https://github.com/google/fhir.
The API methods in this service are a gRPC adaptation of the FHIR REST API, and are not part of the FHIR specification. Not all of the methods in the REST API have been implemented. All gRPC and REST methods may be used interchangeably on the same FHIR store.
ConditionalDeleteResource |
---|
Deletes FHIR resources that match a search query. Implements a gRPC adaptation of the FHIR standard conditional delete interaction. If multiple resources match, all matching resources are deleted. Search terms are provided in the request following the same pattern as the Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the Note: Unless resource versioning is disabled by setting the This method requires the
|
ConditionalUpdateResource |
---|
If a resource is found based on the search criteria specified in the request, updates the entire contents of that resource. Implements a gRPC adaptation of the FHIR standard conditional update interaction. Search terms are provided in the request following the same pattern as the If the search criteria identify more than one match, the request returns a On success, the response is a This method requires the
|
CreateResource |
---|
Creates a FHIR resource. Implements a gRPC adaptation of the FHIR standard create interaction, which creates a new resource with a server-assigned resource ID. Also supports the FHIR standard conditional create interaction, specified by supplying an On success, the response is a
|
DeleteResource |
---|
Deletes a FHIR resource. Implements a gRPC adaptation of the FHIR standard delete interaction. Note: Unless resource versioning is disabled by setting the
|
ExecuteBundle |
---|
Executes all the requests in the given Bundle. Implements a gRPC adaptation of the FHIR standard batch/transaction interaction. Supports all interactions within a bundle, except search. This method accepts Bundles of type For a batch bundle or a successful transaction the response is a This method checks permissions for each request in the bundle. The You can use audit logs to view the permissions for
|
GetLastNObservations |
---|
Retrieves the N most recent Implements a gRPC adaptation of the FHIR extended operation Observation-lastn. Search terms are provided as query parameters following the same pattern as the
Any other valid Observation search parameters can also be provided. This operation accepts an additional query parameter Searches with over 1000 results are rejected. Results are counted before grouping and limiting the results with On success, the response body contains a
|
GetPatientEverything |
---|
Retrieves a Patient resource and resources related to that patient. Implements a gRPC adaptation of the FHIR extended operation Patient-everything (STU3). On success, the response body contains a The resources in scope for the response are:
|
GetResource |
---|
Gets the contents of a FHIR resource. Implements a gRPC adaptation of the FHIR standard read interaction. Also supports the FHIR standard conditional read interaction specified by supplying an On success, the response is a
|
GetResourceVersion |
---|
Gets the contents of a version (current or historical) of a FHIR resource by version ID. Implements a gRPC adaptation of the FHIR standard vread interaction. On success, the response is a
|
SearchResources |
---|
Searches for resources in the given FHIR store according to criteria specified in the request. Implements a gRPC adaptation of the FHIR standard search interaction using the search semantics described in the FHIR Search specification. On success, the response body contains a The server's capability statement, retrieved through Supported search modifiers: Supported search result parameters: The maximum number of search results returned defaults to 100, which can be overridden by the Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern
If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional
|
UpdateResource |
---|
Updates the entire contents of a resource. Implements a gRPC adaptation ofthe FHIR standard update interaction. If the specified resource does not exist and the FHIR store has On success, the response is a
|
ValidateResource |
---|
Validates a FHIR resource's conformance to its profiles and the profiles configured on the FHIR store. Implements the FHIR extended operation $validate (DSTU2, STU3, or R4). The request body must contain a JSON-encoded FHIR resource, and the request headers must contain The Errors generated by validation contain a JSON-encoded
|
ConditionalDeleteResourceRequest
Deletes a resource from the specified FHIR store that matches the conditions.
Fields | |
---|---|
parent |
The name of the FHIR store, in the form Authorization requires the following IAM permission on the specified resource
|
type |
The FHIR resource type to delete, such as Patient or Observation. For a complete list, see the FHIR Resource Index. |
conditions[] |
The search conditions identifying the resource to delete, in the form of a list of key-value pairs. |
ConditionalUpdateResourceRequest
Request to update the contents of a resource found by search criteria.
Fields | |
---|---|
parent |
The name of the FHIR store, in the form Authorization requires the following IAM permission on the specified resource
|
type |
The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index. Must match the resource type in the provided content. |
resource |
The updated contents of the resource to store. |
conditions[] |
The search conditions identifying the resource to update, in the form of a list of key-value pairs. |
CreateResourceRequest
Request to create a resource.
Fields | |
---|---|
parent |
The name of the FHIR store, in the form Authorization requires the following IAM permission on the specified resource
|
type |
The FHIR resource type to create, such as Patient or Observation. For a complete list, see the FHIR Resource Index. Must match the resource type in the provided content. |
resource |
Contents of the resource to be created. |
DeleteResourceRequest
Deletes a resource from the specified FHIR store.
Fields | |
---|---|
name |
The name of the resource to delete, in the form Authorization requires the following IAM permission on the specified resource
|
ExecuteBundleRequest
Request to execute all included operations in a Bundle.
Fields | |
---|---|
parent |
The name of the FHIR store in which this bundle will be executed, in the form Authorization requires the following IAM permission on the specified resource
|
bundle |
The bundle to execute. |
GetLastNObservationsRequest
Get N most recent observations for the subject matching the criteria, grouped by code.
Fields | |
---|---|
parent |
The name of the FHIR store, in the form Authorization requires the following IAM permission on the specified resource
|
conditions[] |
The search conditions identifying the subject, in the form of a list of key-value pairs. |
GetPatientEverythingRequest
Request all the information related to the patient.
Fields | |
---|---|
name |
The name of the patient for which the information is required, in the form Authorization requires the following IAM permission on the specified resource
|
start |
The response includes records subsequent to the start date. The date uses the format YYYY-MM-DD. If no start date is provided, all records prior to the end date are in scope. |
end |
The response includes records prior to the end date. The date uses the format YYYY-MM-DD. If no end date is provided, all records subsequent to the start date are in scope. |
page_token |
Used to retrieve the next or previous page of results when using pagination. Value should be set to the value of Omit |
count |
Maximum number of resources in a page. If not specified, 100 is used. May not be larger than 1000. |
since |
If provided, only resources updated after this time are returned. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, |
type |
String of comma-delimited FHIR resource types. If provided, only resources of the specified resource type(s) are returned. Specifying multiple |
GetResourceRequest
Gets a resource from the specified FHIR store.
Fields | |
---|---|
name |
The name of the resource to retrieve, in the form Authorization requires the following IAM permission on the specified resource
|
GetResourceVersionRequest
Gets a specific version of a resource from the specified FHIR store.
Fields | |
---|---|
name |
The name of the resource version to retrieve, in the form Authorization requires the following IAM permission on the specified resource
|
SearchParameter
Represents a search parameter or condition that would normally be passed as a query parameter in the REST API.
Fields | |
---|---|
key |
Name of the parameter. It should be unique. If multiple values are required for the same name, they can be passed using a Value array within a single SearchParameter. |
value[] |
Array of values for the given key. |
SearchResourcesRequest
Request to search the resources in the specified FHIR store.
Fields | |
---|---|
parent |
The name of the FHIR store, in the form Authorization requires the following IAM permission on the specified resource
|
resource_type |
The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index. Can be empty, which is equivalent to issuing a REST search against the FHIR store base URL. |
params[] |
The search parameters in the form of a list of key-value pairs. |
UpdateResourceRequest
Request to update the contents of a resource.
Fields | |
---|---|
name |
The name of the resource to update, in the form Authorization requires the following IAM permission on the specified resource
|
resource |
The updated contents of the resource to store. The resource type and ID must match those provided in the name. |
ValidateResourceRequest
The request to validate a resource against the profiles in a FHIR store.
Fields | |
---|---|
parent |
The name of the FHIR store that holds the profiles being used for validation. Authorization requires the following IAM permission on the specified resource
|
type |
The FHIR resource type of the resource being validated. For a complete list, see the FHIR Resource Index. Must match the resource type in the provided content. |
profile |
A profile that this resource should be validated against. |
resource |
Raw body of the request. |