public class HttpHealthcareApiClient extends java.lang.Object implements HealthcareApiClient, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
HttpHealthcareApiClient.AuthenticatedRetryInitializer |
static class |
HttpHealthcareApiClient.HealthcareHttpException
Wraps
HttpResponse in an exception with a statusCode field for use with HealthcareIOError . |
static class |
HttpHealthcareApiClient.HL7v2MessagePages |
Constructor and Description |
---|
HttpHealthcareApiClient()
Instantiates a new Http healthcare api client.
|
HttpHealthcareApiClient(com.google.api.services.healthcare.v1beta1.CloudHealthcare client)
Instantiates a new Http healthcare api client.
|
public HttpHealthcareApiClient() throws java.io.IOException
java.io.IOException
- the io exceptionpublic HttpHealthcareApiClient(com.google.api.services.healthcare.v1beta1.CloudHealthcare client) throws java.io.IOException
client
- the clientjava.io.IOException
- the io exceptionpublic JsonFactory getJsonFactory()
public com.google.api.services.healthcare.v1beta1.model.Hl7V2Store createHL7v2Store(java.lang.String dataset, java.lang.String name) throws java.io.IOException
HealthcareApiClient
createHL7v2Store
in interface HealthcareApiClient
dataset
- the datasetname
- the namejava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.FhirStore createFhirStore(java.lang.String dataset, java.lang.String name, java.lang.String version) throws java.io.IOException
createFhirStore
in interface HealthcareApiClient
java.io.IOException
public com.google.api.services.healthcare.v1beta1.model.FhirStore createFhirStore(java.lang.String dataset, java.lang.String name, java.lang.String version, @Nullable java.lang.String pubsubTopic) throws java.io.IOException
createFhirStore
in interface HealthcareApiClient
java.io.IOException
public com.google.api.services.healthcare.v1beta1.model.Empty deleteHL7v2Store(java.lang.String name) throws java.io.IOException
HealthcareApiClient
deleteHL7v2Store
in interface HealthcareApiClient
name
- the storejava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.Empty deleteFhirStore(java.lang.String name) throws java.io.IOException
deleteFhirStore
in interface HealthcareApiClient
java.io.IOException
public Instant getEarliestHL7v2SendTime(java.lang.String hl7v2Store, @Nullable java.lang.String filter) throws java.io.IOException
HealthcareApiClient
getEarliestHL7v2SendTime
in interface HealthcareApiClient
hl7v2Store
- the hl 7 v 2 storefilter
- the filterjava.io.IOException
- the io exceptionpublic Instant getLatestHL7v2SendTime(java.lang.String hl7v2Store, @Nullable java.lang.String filter) throws java.io.IOException
getLatestHL7v2SendTime
in interface HealthcareApiClient
java.io.IOException
public com.google.api.services.healthcare.v1beta1.model.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
HealthcareApiClient
makeSendTimeBoundHL7v2ListRequest
in interface HealthcareApiClient
hl7v2Store
- the hl 7 v 2 storestart
- the startend
- the endotherFilter
- the other filterorderBy
- the order bypageToken
- the page tokenjava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.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
HealthcareApiClient
makeHL7v2ListRequest
in interface HealthcareApiClient
hl7v2Store
- the hl 7 v 2 storefilter
- the filterorderBy
- the order bypageToken
- the page tokenjava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.Message getHL7v2Message(java.lang.String msgName) throws java.io.IOException
getHL7v2Message
in interface HealthcareApiClient
msgName
- the msg namejava.io.IOException
- the io exceptionjava.text.ParseException
- the parse exceptionpublic com.google.api.services.healthcare.v1beta1.model.Empty deleteHL7v2Message(java.lang.String msgName) throws java.io.IOException
HealthcareApiClient
deleteHL7v2Message
in interface HealthcareApiClient
msgName
- the msg namejava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.Hl7V2Store getHL7v2Store(java.lang.String storeName) throws java.io.IOException
getHL7v2Store
in interface HealthcareApiClient
storeName
- the store namejava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.IngestMessageResponse ingestHL7v2Message(java.lang.String hl7v2Store, com.google.api.services.healthcare.v1beta1.model.Message msg) throws java.io.IOException
HealthcareApiClient
ingestHL7v2Message
in interface HealthcareApiClient
hl7v2Store
- the hl 7 v 2 storemsg
- the msgjava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.Message createHL7v2Message(java.lang.String hl7v2Store, com.google.api.services.healthcare.v1beta1.model.Message msg) throws java.io.IOException
HealthcareApiClient
createHL7v2Message
in interface HealthcareApiClient
hl7v2Store
- the hl 7 v 2 storemsg
- the msgjava.io.IOException
- the io exceptionpublic com.google.api.services.healthcare.v1beta1.model.Operation importFhirResource(java.lang.String fhirStore, java.lang.String gcsSourcePath, @Nullable java.lang.String contentStructure) throws java.io.IOException
importFhirResource
in interface HealthcareApiClient
java.io.IOException
public com.google.api.services.healthcare.v1beta1.model.Operation pollOperation(com.google.api.services.healthcare.v1beta1.model.Operation operation, java.lang.Long sleepMs) throws java.lang.InterruptedException, java.io.IOException
pollOperation
in interface HealthcareApiClient
java.lang.InterruptedException
java.io.IOException
public com.google.api.services.healthcare.v1beta1.model.HttpBody executeFhirBundle(java.lang.String fhirStore, java.lang.String bundle) throws java.io.IOException, HttpHealthcareApiClient.HealthcareHttpException
HealthcareApiClient
executeFhirBundle
in interface HealthcareApiClient
fhirStore
- the fhir storebundle
- the bundlejava.io.IOException
- the io exceptionHttpHealthcareApiClient.HealthcareHttpException
public com.google.api.services.healthcare.v1beta1.model.HttpBody readFhirResource(java.lang.String resourceId) throws java.io.IOException
HealthcareApiClient
readFhirResource
in interface HealthcareApiClient
resourceId
- the resourcejava.io.IOException
- the io exception