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
HealthcareApiClientcreateHL7v2Store in interface HealthcareApiClientdataset - 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 HealthcareApiClientjava.io.IOExceptionpublic 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 HealthcareApiClientjava.io.IOExceptionpublic com.google.api.services.healthcare.v1beta1.model.Empty deleteHL7v2Store(java.lang.String name) throws java.io.IOException
HealthcareApiClientdeleteHL7v2Store in interface HealthcareApiClientname - 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 HealthcareApiClientjava.io.IOExceptionpublic Instant getEarliestHL7v2SendTime(java.lang.String hl7v2Store, @Nullable java.lang.String filter) throws java.io.IOException
HealthcareApiClientgetEarliestHL7v2SendTime in interface HealthcareApiClienthl7v2Store - 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 HealthcareApiClientjava.io.IOExceptionpublic 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
HealthcareApiClientmakeSendTimeBoundHL7v2ListRequest in interface HealthcareApiClienthl7v2Store - 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
HealthcareApiClientmakeHL7v2ListRequest in interface HealthcareApiClienthl7v2Store - 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 HealthcareApiClientmsgName - 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
HealthcareApiClientdeleteHL7v2Message in interface HealthcareApiClientmsgName - 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 HealthcareApiClientstoreName - 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
HealthcareApiClientingestHL7v2Message in interface HealthcareApiClienthl7v2Store - 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
HealthcareApiClientcreateHL7v2Message in interface HealthcareApiClienthl7v2Store - 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 HealthcareApiClientjava.io.IOExceptionpublic 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 HealthcareApiClientjava.lang.InterruptedExceptionjava.io.IOExceptionpublic com.google.api.services.healthcare.v1beta1.model.HttpBody executeFhirBundle(java.lang.String fhirStore, java.lang.String bundle) throws java.io.IOException, HttpHealthcareApiClient.HealthcareHttpException
HealthcareApiClientexecuteFhirBundle in interface HealthcareApiClientfhirStore - the fhir storebundle - the bundlejava.io.IOException - the io exceptionHttpHealthcareApiClient.HealthcareHttpExceptionpublic com.google.api.services.healthcare.v1beta1.model.HttpBody readFhirResource(java.lang.String resourceId) throws java.io.IOException
HealthcareApiClientreadFhirResource in interface HealthcareApiClientresourceId - the resourcejava.io.IOException - the io exception