public abstract class AbstractFhirSession extends Object implements FhirSession
| Modifier and Type | Field and Description |
|---|---|
protected AccessToken |
accessToken |
protected AccessTokenProvider |
accessTokenProvider |
protected ca.uhn.fhir.rest.client.IGenericClient |
client |
protected ca.uhn.fhir.rest.client.IClientInterceptor |
clientInterceptor |
protected ca.uhn.fhir.context.FhirContext |
hapiFhirContext |
protected AccessTokenRequest |
refreshTokenRequest |
protected String |
tokenEndpoint |
protected UserInfo |
userInfo |
| Constructor and Description |
|---|
AbstractFhirSession(ca.uhn.fhir.context.FhirContext hapiFhirContext,
String fhirServiceApi,
AccessToken accessToken,
UserInfo userInfo,
AccessTokenRequest refreshTokenRequest,
String tokenEndpoint) |
| Modifier and Type | Method and Description |
|---|---|
ca.uhn.fhir.model.base.resource.BaseConformance |
conformance() |
ca.uhn.fhir.rest.gclient.ICreate |
create() |
ca.uhn.fhir.rest.api.MethodOutcome |
create(org.hl7.fhir.instance.model.api.IBaseResource theResource)
Deprecated.
|
ca.uhn.fhir.rest.gclient.IDelete |
delete() |
ca.uhn.fhir.rest.api.MethodOutcome |
delete(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType,
ca.uhn.fhir.model.primitive.IdDt theId)
Deprecated.
|
ca.uhn.fhir.rest.api.MethodOutcome |
delete(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType,
String theId)
Deprecated.
|
ca.uhn.fhir.rest.gclient.IFetchConformanceUntyped |
fetchConformance() |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
fetchResourceFromUrl(Class<T> aClass,
String s) |
void |
forceConformanceCheck() |
AccessToken |
getAccessToken() |
ca.uhn.fhir.context.FhirContext |
getFhirContext() |
org.apache.http.client.HttpClient |
getHttpClient() |
String |
getIdTokenProfileClaim() |
String |
getServerBase() |
ca.uhn.fhir.rest.gclient.IGetTags |
getTags() |
ca.uhn.fhir.rest.gclient.IHistory |
history() |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
history(Class<T> theType,
ca.uhn.fhir.model.primitive.IdDt theId,
ca.uhn.fhir.model.primitive.DateTimeDt theSince,
Integer theLimit)
Deprecated.
|
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
history(Class<T> theType,
String theId,
ca.uhn.fhir.model.primitive.DateTimeDt theSince,
Integer theLimit)
Deprecated.
|
ca.uhn.fhir.rest.gclient.IGetPage |
loadPage() |
ca.uhn.fhir.rest.gclient.IMeta |
meta() |
ca.uhn.fhir.rest.gclient.IOperation |
operation() |
ca.uhn.fhir.rest.gclient.IRead |
read() |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
read(Class<T> tClass,
String s) |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
read(Class<T> tClass,
ca.uhn.fhir.model.primitive.UriDt uriDt) |
org.hl7.fhir.instance.model.api.IBaseResource |
read(ca.uhn.fhir.model.primitive.UriDt uriDt) |
void |
registerInterceptor(ca.uhn.fhir.rest.client.IClientInterceptor iClientInterceptor) |
ca.uhn.fhir.rest.gclient.IUntypedQuery |
search() |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
search(Class<T> tClass,
Map<String,List<ca.uhn.fhir.model.api.IQueryParameterType>> stringListMap) |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
search(Class<T> tClass,
ca.uhn.fhir.model.primitive.UriDt uriDt) |
ca.uhn.fhir.model.api.Bundle |
search(ca.uhn.fhir.model.primitive.UriDt uriDt) |
void |
setAccessTokenProvider(JsonAccessTokenProvider accessTokenProvider) |
void |
setEncoding(ca.uhn.fhir.rest.server.EncodingEnum encodingEnum) |
void |
setLogRequestAndResponse(boolean b) |
void |
setPrettyPrint(Boolean aBoolean) |
ca.uhn.fhir.rest.gclient.ITransaction |
transaction() |
List<org.hl7.fhir.instance.model.api.IBaseResource> |
transaction(List<org.hl7.fhir.instance.model.api.IBaseResource> iBaseResources) |
void |
unregisterInterceptor(ca.uhn.fhir.rest.client.IClientInterceptor iClientInterceptor) |
ca.uhn.fhir.rest.gclient.IUpdate |
update() |
ca.uhn.fhir.rest.api.MethodOutcome |
update(ca.uhn.fhir.model.primitive.IdDt theId,
org.hl7.fhir.instance.model.api.IBaseResource theResource) |
ca.uhn.fhir.rest.api.MethodOutcome |
update(String theId,
org.hl7.fhir.instance.model.api.IBaseResource theResource) |
ca.uhn.fhir.rest.gclient.IValidate |
validate() |
ca.uhn.fhir.rest.api.MethodOutcome |
validate(org.hl7.fhir.instance.model.api.IBaseResource theResource) |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
vread(Class<T> tClass,
ca.uhn.fhir.model.primitive.IdDt idDt) |
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
vread(Class<T> theType,
ca.uhn.fhir.model.primitive.IdDt theId,
ca.uhn.fhir.model.primitive.IdDt theVersionId)
Deprecated.
|
<T extends org.hl7.fhir.instance.model.api.IBaseResource> |
vread(Class<T> tClass,
String s,
String s1) |
protected final ca.uhn.fhir.context.FhirContext hapiFhirContext
protected final ca.uhn.fhir.rest.client.IGenericClient client
protected AccessToken accessToken
protected final AccessTokenRequest refreshTokenRequest
protected final String tokenEndpoint
protected final UserInfo userInfo
protected ca.uhn.fhir.rest.client.IClientInterceptor clientInterceptor
protected AccessTokenProvider accessTokenProvider
public AbstractFhirSession(ca.uhn.fhir.context.FhirContext hapiFhirContext,
String fhirServiceApi,
AccessToken accessToken,
UserInfo userInfo,
AccessTokenRequest refreshTokenRequest,
String tokenEndpoint)
public void setAccessTokenProvider(JsonAccessTokenProvider accessTokenProvider)
public AccessToken getAccessToken()
getAccessToken in interface FhirSessionpublic String getIdTokenProfileClaim()
getIdTokenProfileClaim in interface FhirSessionpublic ca.uhn.fhir.context.FhirContext getFhirContext()
getFhirContext in interface ca.uhn.fhir.rest.client.api.IRestfulClientpublic org.apache.http.client.HttpClient getHttpClient()
getHttpClient in interface ca.uhn.fhir.rest.client.api.IRestfulClientpublic void setEncoding(ca.uhn.fhir.rest.server.EncodingEnum encodingEnum)
setEncoding in interface ca.uhn.fhir.rest.client.api.IRestfulClientpublic void setPrettyPrint(Boolean aBoolean)
setPrettyPrint in interface ca.uhn.fhir.rest.client.api.IRestfulClientpublic String getServerBase()
getServerBase in interface ca.uhn.fhir.rest.client.api.IRestfulClientpublic ca.uhn.fhir.model.base.resource.BaseConformance conformance()
conformance in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IFetchConformanceUntyped fetchConformance()
fetchConformance in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.ICreate create()
create in interface ca.uhn.fhir.rest.client.IGenericClient@Deprecated public ca.uhn.fhir.rest.api.MethodOutcome create(org.hl7.fhir.instance.model.api.IBaseResource theResource)
create in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IDelete delete()
delete in interface ca.uhn.fhir.rest.client.IGenericClient@Deprecated public ca.uhn.fhir.rest.api.MethodOutcome delete(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType, ca.uhn.fhir.model.primitive.IdDt theId)
delete in interface ca.uhn.fhir.rest.client.IGenericClient@Deprecated public ca.uhn.fhir.rest.api.MethodOutcome delete(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theType, String theId)
delete in interface ca.uhn.fhir.rest.client.IGenericClientpublic void forceConformanceCheck()
throws ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException
forceConformanceCheck in interface ca.uhn.fhir.rest.client.IGenericClientca.uhn.fhir.rest.client.exceptions.FhirClientConnectionExceptionpublic ca.uhn.fhir.rest.gclient.IGetTags getTags()
getTags in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IHistory history()
history in interface ca.uhn.fhir.rest.client.IGenericClient@Deprecated public <T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.model.api.Bundle history(Class<T> theType, ca.uhn.fhir.model.primitive.IdDt theId, ca.uhn.fhir.model.primitive.DateTimeDt theSince, Integer theLimit)
history in interface ca.uhn.fhir.rest.client.IGenericClient@Deprecated public <T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.model.api.Bundle history(Class<T> theType, String theId, ca.uhn.fhir.model.primitive.DateTimeDt theSince, Integer theLimit)
history in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IGetPage loadPage()
loadPage in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IOperation operation()
operation in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IRead read()
read in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> T read(Class<T> tClass, String s)
read in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> T read(Class<T> tClass, ca.uhn.fhir.model.primitive.UriDt uriDt)
read in interface ca.uhn.fhir.rest.client.IGenericClientpublic org.hl7.fhir.instance.model.api.IBaseResource read(ca.uhn.fhir.model.primitive.UriDt uriDt)
read in interface ca.uhn.fhir.rest.client.IGenericClientpublic void registerInterceptor(ca.uhn.fhir.rest.client.IClientInterceptor iClientInterceptor)
registerInterceptor in interface ca.uhn.fhir.rest.client.api.IRestfulClientregisterInterceptor in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IUntypedQuery search()
search in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.model.api.Bundle search(Class<T> tClass, Map<String,List<ca.uhn.fhir.model.api.IQueryParameterType>> stringListMap)
search in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.model.api.Bundle search(Class<T> tClass, ca.uhn.fhir.model.primitive.UriDt uriDt)
search in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.model.api.Bundle search(ca.uhn.fhir.model.primitive.UriDt uriDt)
search in interface ca.uhn.fhir.rest.client.IGenericClientpublic void setLogRequestAndResponse(boolean b)
setLogRequestAndResponse in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.ITransaction transaction()
transaction in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IValidate validate()
validate in interface ca.uhn.fhir.rest.client.IGenericClientpublic List<org.hl7.fhir.instance.model.api.IBaseResource> transaction(List<org.hl7.fhir.instance.model.api.IBaseResource> iBaseResources)
transaction in interface ca.uhn.fhir.rest.client.IGenericClientpublic void unregisterInterceptor(ca.uhn.fhir.rest.client.IClientInterceptor iClientInterceptor)
unregisterInterceptor in interface ca.uhn.fhir.rest.client.api.IRestfulClientunregisterInterceptor in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.gclient.IUpdate update()
update in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.api.MethodOutcome update(ca.uhn.fhir.model.primitive.IdDt theId,
org.hl7.fhir.instance.model.api.IBaseResource theResource)
update in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.api.MethodOutcome update(String theId, org.hl7.fhir.instance.model.api.IBaseResource theResource)
update in interface ca.uhn.fhir.rest.client.IGenericClientpublic ca.uhn.fhir.rest.api.MethodOutcome validate(org.hl7.fhir.instance.model.api.IBaseResource theResource)
validate in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> tClass, ca.uhn.fhir.model.primitive.IdDt idDt)
vread in interface ca.uhn.fhir.rest.client.IGenericClient@Deprecated public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> theType, ca.uhn.fhir.model.primitive.IdDt theId, ca.uhn.fhir.model.primitive.IdDt theVersionId)
vread in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> tClass, String s, String s1)
vread in interface ca.uhn.fhir.rest.client.IGenericClientpublic <T extends org.hl7.fhir.instance.model.api.IBaseResource> T fetchResourceFromUrl(Class<T> aClass, String s)
fetchResourceFromUrl in interface ca.uhn.fhir.rest.client.api.IRestfulClientpublic ca.uhn.fhir.rest.gclient.IMeta meta()
meta in interface ca.uhn.fhir.rest.client.IGenericClientCopyright © 2014–2016 Healthcare Services Platform Consortium. All rights reserved.