public interface HealthcareApiClient
| Modifier and Type | Method and Description | 
|---|---|
DicomStore | 
createDicomStore(java.lang.String dataset,
                java.lang.String name)
Create a DicomStore. 
 | 
DicomStore | 
createDicomStore(java.lang.String dataset,
                java.lang.String name,
                java.lang.String pubsubTopic)
Create a DicomStore with a PubSub listener. 
 | 
FhirStore | 
createFhirStore(java.lang.String dataset,
               java.lang.String name,
               java.lang.String version)
Create FHIR Store. 
 | 
FhirStore | 
createFhirStore(java.lang.String dataset,
               java.lang.String name,
               java.lang.String version,
               java.lang.String pubsubTopic)
Create FHIR Store with a PubSub topic listener. 
 | 
Message | 
createHL7v2Message(java.lang.String hl7v2Store,
                  Message msg)
Creates an HL7v2 message. 
 | 
Hl7V2Store | 
createHL7v2Store(java.lang.String dataset,
                java.lang.String name)
Create hl 7 v 2 store hl 7 v 2 store. 
 | 
Operation | 
deidentifyFhirStore(java.lang.String sourceFhirStore,
                   java.lang.String destinationFhirStore,
                   DeidentifyConfig deidConfig)
Deidentify a GCP FHIR Store and write the result into a new FHIR Store. 
 | 
Empty | 
deleteDicomStore(java.lang.String name)
Delete a Dicom Store. 
 | 
Empty | 
deleteFhirStore(java.lang.String store)
Delete Fhir store. 
 | 
Empty | 
deleteHL7v2Message(java.lang.String msgName)
Deletes an HL7v2 message. 
 | 
Empty | 
deleteHL7v2Store(java.lang.String store)
Deletes an HL7v2 store. 
 | 
HttpBody | 
executeFhirBundle(java.lang.String fhirStore,
                 java.lang.String bundle)
Execute fhir bundle http body. 
 | 
Operation | 
exportFhirResourceToBigQuery(java.lang.String fhirStore,
                            java.lang.String bigQueryDatasetUri)
Export a FHIR Resource to BigQuery. 
 | 
Operation | 
exportFhirResourceToGcs(java.lang.String fhirStore,
                       java.lang.String gcsDestinationPrefix)
Export a FHIR Resource to GCS. 
 | 
Instant | 
getEarliestHL7v2SendTime(java.lang.String hl7v2Store,
                        @Nullable java.lang.String filter)
Gets the earliest HL7v2 send time. 
 | 
Message | 
getHL7v2Message(java.lang.String msgName)
Gets a Hl7v2 message by its name from a Hl7v2 store. 
 | 
Hl7V2Store | 
getHL7v2Store(java.lang.String storeName)
Gets an HL7v2 store. 
 | 
Instant | 
getLatestHL7v2SendTime(java.lang.String hl7v2Store,
                      @Nullable java.lang.String filter)
Gets the latest HL7v2 send time. 
 | 
HttpBody | 
getPatientEverything(java.lang.String resourceName,
                    @Nullable java.util.Map<java.lang.String,java.lang.Object> filters,
                    java.lang.String pageToken)
Fhir get patient everything http body. 
 | 
Operation | 
importFhirResource(java.lang.String fhirStore,
                  java.lang.String gcsSourcePath,
                  @Nullable java.lang.String contentStructure)
Importing a FHIR resource from GCS. 
 | 
IngestMessageResponse | 
ingestHL7v2Message(java.lang.String hl7v2Store,
                  Message msg)
Ingest an HL7v2 message. 
 | 
java.util.List<FhirStore> | 
listAllFhirStores(java.lang.String dataset)
List all FHIR stores in a dataset. 
 | 
ListMessagesResponse | 
makeHL7v2ListRequest(java.lang.String hl7v2Store,
                    @Nullable java.lang.String filter,
                    @Nullable java.lang.String orderBy,
                    @Nullable java.lang.String pageToken)
Make hl 7 v 2 list request list messages response. 
 | 
ListMessagesResponse | 
makeSendTimeBoundHL7v2ListRequest(java.lang.String hl7v2Store,
                                 Instant start,
                                 @Nullable Instant end,
                                 @Nullable java.lang.String otherFilter,
                                 @Nullable java.lang.String orderBy,
                                 @Nullable java.lang.String pageToken)
Time Bound HL7v2 list request. 
 | 
Operation | 
pollOperation(Operation operation,
             java.lang.Long sleepMs)
Poll operation. 
 | 
HttpBody | 
readFhirResource(java.lang.String resourceName)
Read fhir resource http body. 
 | 
java.lang.String | 
retrieveDicomStudyMetadata(java.lang.String dicomWebPath)
Retrieve DicomStudyMetadata. 
 | 
HttpBody | 
searchFhirResource(java.lang.String fhirStore,
                  java.lang.String resourceType,
                  @Nullable java.util.Map<java.lang.String,java.lang.Object> parameters,
                  java.lang.String pageToken)
Search fhir resource http body. 
 | 
Empty | 
uploadToDicomStore(java.lang.String webPath,
                  java.lang.String filePath)
Upload to a Dicom Store. 
 | 
Message getHL7v2Message(java.lang.String msgName) throws java.io.IOException, java.text.ParseException
msgName - The message name to be retrieved.java.io.IOException - The IO Exception.java.text.ParseException - The Parse Exception.Empty deleteHL7v2Message(java.lang.String msgName) throws java.io.IOException
msgName - The message name to be deleted.java.io.IOException - The IO Exception.Hl7V2Store getHL7v2Store(java.lang.String storeName) throws java.io.IOException
storeName - The store name to be retrieved.java.io.IOException - The IO Exception.Instant getEarliestHL7v2SendTime(java.lang.String hl7v2Store, @Nullable java.lang.String filter) throws java.io.IOException
hl7v2Store - The HL7v2 store.filter - the filter to be matched on.java.io.IOException - The IO Exception.Instant getLatestHL7v2SendTime(java.lang.String hl7v2Store, @Nullable java.lang.String filter) throws java.io.IOException
hl7v2Store - The HL7v2 store.filter - The filter to be matched on.java.io.IOException - The IO Exception.ListMessagesResponse makeSendTimeBoundHL7v2ListRequest(java.lang.String hl7v2Store, Instant start, @Nullable Instant end, @Nullable java.lang.String otherFilter, @Nullable java.lang.String orderBy, @Nullable java.lang.String pageToken) throws java.io.IOException
hl7v2Store - The HL7v2 store.start - Start time.end - End time.otherFilter - The filter outside of the sendTime.orderBy - Order by.pageToken - The page token.java.io.IOException - The IO Exception.ListMessagesResponse makeHL7v2ListRequest(java.lang.String hl7v2Store, @Nullable java.lang.String filter, @Nullable java.lang.String orderBy, @Nullable java.lang.String pageToken) throws java.io.IOException
hl7v2Store - The HL7v2 Store.filter - The Filter.orderBy - Order by.pageToken - The Page Token.java.io.IOException - The IO Exception.IngestMessageResponse ingestHL7v2Message(java.lang.String hl7v2Store, Message msg) throws java.io.IOException
hl7v2Store - The HL7v2 store of the message.msg - The message.java.io.IOException - The IO Exception.Message createHL7v2Message(java.lang.String hl7v2Store, Message msg) throws java.io.IOException
hl7v2Store - The HL7v2 store to create a message in.msg - The message to create.java.io.IOException - The IO Exception.Empty deleteHL7v2Store(java.lang.String store) throws java.io.IOException
store - The HL7v2 store to be deleted.java.io.IOException - The IO Exception.Operation importFhirResource(java.lang.String fhirStore, java.lang.String gcsSourcePath, @Nullable java.lang.String contentStructure) throws java.io.IOException
fhirStore - the FhirStore to import into.gcsSourcePath - the GCS Path of resource.contentStructure - The content structure.java.io.IOException - the io exceptionOperation exportFhirResourceToGcs(java.lang.String fhirStore, java.lang.String gcsDestinationPrefix) throws java.io.IOException
fhirStore - the FhirStore of the resource.gcsDestinationPrefix - GCS Destination Prefix to export to.java.io.IOException - The IO Exception.Operation exportFhirResourceToBigQuery(java.lang.String fhirStore, java.lang.String bigQueryDatasetUri) throws java.io.IOException
fhirStore - the FhirStore of the resource.bigQueryDatasetUri - The BQ Dataset URI to export to.java.io.IOException - The IO Exception.Operation deidentifyFhirStore(java.lang.String sourceFhirStore, java.lang.String destinationFhirStore, DeidentifyConfig deidConfig) throws java.io.IOException
sourceFhirStore - the FhirStore to be deidentified.destinationFhirStore - the FhirStore that the deidentified data will be written to.deidConfig - the deidCongig specifying form of deidentification.java.io.IOException - The IO Exception.Operation pollOperation(Operation operation, java.lang.Long sleepMs) throws java.lang.InterruptedException, java.io.IOException
operation - to be polled.sleepMs - length of time to wait between requests.java.io.IOException - The IO Exception.java.lang.InterruptedExceptionHttpBody executeFhirBundle(java.lang.String fhirStore, java.lang.String bundle) throws java.io.IOException, HttpHealthcareApiClient.HealthcareHttpException
fhirStore - the fhir storebundle - the bundlejava.io.IOException - The IO Exception.HttpHealthcareApiClient.HealthcareHttpExceptionHttpBody readFhirResource(java.lang.String resourceName) throws java.io.IOException
resourceName - the resource name, in format
     projects/{p}/locations/{l}/datasets/{d}/fhirStores/{f}/fhir/{resourceType}/{id}java.io.IOException - The IO Exception.HttpBody searchFhirResource(java.lang.String fhirStore, java.lang.String resourceType, @Nullable java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String pageToken) throws java.io.IOException
fhirStore - the fhir storeresourceType - the resource typeparameters - The parameters (in the form of key-value pairs).java.io.IOException - The IO Exception.HttpBody getPatientEverything(java.lang.String resourceName, @Nullable java.util.Map<java.lang.String,java.lang.Object> filters, java.lang.String pageToken) throws java.io.IOException
resourceName - the resource name, in format
     projects/{p}/locations/{l}/datasets/{d}/fhirStores/{f}/fhir/{resourceType}/{id}filters - optional request filters (in key value pairs).java.io.IOException - The IO Exception.Hl7V2Store createHL7v2Store(java.lang.String dataset, java.lang.String name) throws java.io.IOException
dataset - The dataset to create the HL7v2 store in.name - The name of the store to be created.java.io.IOException - The IO Exception.FhirStore createFhirStore(java.lang.String dataset, java.lang.String name, java.lang.String version, java.lang.String pubsubTopic) throws java.io.IOException
dataset - The name of Dataset for the FHIR store to be created in.name - The name of the FHIR store.version - The version of the FHIR store (DSTU2, STU3, R4).pubsubTopic - The pubsub topic listening to the FHIR store.java.io.IOException - The IO Exception.FhirStore createFhirStore(java.lang.String dataset, java.lang.String name, java.lang.String version) throws java.io.IOException
dataset - The name of the Dataset for the FHIR store to be created in.name - The name of the FHIR store.version - The version of the FHIR store (DSTU2, STU3, R4).java.io.IOException - The IO Exception.java.util.List<FhirStore> listAllFhirStores(java.lang.String dataset) throws java.io.IOException
dataset - The dataset, in the format:
     projects/project_id/locations/location_id/datasets/dataset_idjava.io.IOException - The IO Exception.Empty deleteFhirStore(java.lang.String store) throws java.io.IOException
store - The FHIR store to be deleted.java.io.IOException - The IO Exception.java.lang.String retrieveDicomStudyMetadata(java.lang.String dicomWebPath)
                                     throws java.io.IOException
dicomWebPath - The Dicom Web Path to retrieve the metadata from.java.io.IOException - The IO Exception.DicomStore createDicomStore(java.lang.String dataset, java.lang.String name) throws java.io.IOException
dataset - The dataset that the Dicom Store should be in, in the format:
     projects/project_id/locations/location_id/datasets/dataset_id.name - The name of the Dicom Store to be created.java.io.IOException - The IO Exception.DicomStore createDicomStore(java.lang.String dataset, java.lang.String name, java.lang.String pubsubTopic) throws java.io.IOException
dataset - The dataset that the Dicom Store should be in, in the format:
     projects/project_id/locations/location_id/datasets/dataset_idname - The name of the Dicom Store to be created.pubsubTopic - Name of PubSub topic connected with the Dicom store.java.io.IOException - The IO Exception.Empty deleteDicomStore(java.lang.String name) throws java.io.IOException
name - The name of the Dicom Store to be deleted.java.io.IOException - The IO Exception.Empty uploadToDicomStore(java.lang.String webPath, java.lang.String filePath) throws java.io.IOException, java.net.URISyntaxException
webPath - String format of webPath to upload into.filePath - filePath of file to upload.java.io.IOException - The IO Exception.java.net.URISyntaxException