
Package ca.uhn.fhir.jpa.repository
Class HapiFhirRepository
java.lang.Object
ca.uhn.fhir.jpa.repository.HapiFhirRepository
- All Implemented Interfaces:
IRepository
This class leverages DaoRegistry from Hapi-fhir to implement CRUD FHIR API operations constrained to provide only the operations necessary for the cql-evaluator modules to function.
-
Constructor Summary
ConstructorsConstructorDescriptionHapiFhirRepository(DaoRegistry theDaoRegistry, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.server.RestfulServer theRestfulServer) -
Method Summary
Modifier and TypeMethodDescription<C extends org.hl7.fhir.instance.model.api.IBaseConformance>
Ccapabilities(Class<C> theCapabilityStatementType, Map<String, String> theHeaders) <T extends org.hl7.fhir.instance.model.api.IBaseResource>
ca.uhn.fhir.rest.api.MethodOutcome<T extends org.hl7.fhir.instance.model.api.IBaseResource,I extends org.hl7.fhir.instance.model.api.IIdType>
ca.uhn.fhir.rest.api.MethodOutcomeca.uhn.fhir.context.FhirContext<B extends org.hl7.fhir.instance.model.api.IBaseBundle,P extends org.hl7.fhir.instance.model.api.IBaseParameters, I extends org.hl7.fhir.instance.model.api.IIdType>
B<B extends org.hl7.fhir.instance.model.api.IBaseBundle,P extends org.hl7.fhir.instance.model.api.IBaseParameters, T extends org.hl7.fhir.instance.model.api.IBaseResource>
Bhistory(Class<T> theResourceType, P theParameters, Class<B> theBundleType, Map<String, String> theHeaders) <B extends org.hl7.fhir.instance.model.api.IBaseBundle,P extends org.hl7.fhir.instance.model.api.IBaseParameters>
Bprotected <R> Rinvoke(ca.uhn.fhir.rest.api.server.RequestDetails theDetails) <R extends org.hl7.fhir.instance.model.api.IBaseResource,P extends org.hl7.fhir.instance.model.api.IBaseParameters, I extends org.hl7.fhir.instance.model.api.IIdType>
Rinvoke(I theId, String theName, P theParameters, Class<R> theReturnType, Map<String, String> theHeaders) <P extends org.hl7.fhir.instance.model.api.IBaseParameters,I extends org.hl7.fhir.instance.model.api.IIdType>
ca.uhn.fhir.rest.api.MethodOutcome<R extends org.hl7.fhir.instance.model.api.IBaseResource,P extends org.hl7.fhir.instance.model.api.IBaseParameters, T extends org.hl7.fhir.instance.model.api.IBaseResource>
Rinvoke(Class<T> theResourceType, String theName, P theParameters, Class<R> theReturnType, Map<String, String> theHeaders) <P extends org.hl7.fhir.instance.model.api.IBaseParameters,T extends org.hl7.fhir.instance.model.api.IBaseResource>
ca.uhn.fhir.rest.api.MethodOutcome<R extends org.hl7.fhir.instance.model.api.IBaseResource,P extends org.hl7.fhir.instance.model.api.IBaseParameters>
R<P extends org.hl7.fhir.instance.model.api.IBaseParameters>
ca.uhn.fhir.rest.api.MethodOutcome<B extends org.hl7.fhir.instance.model.api.IBaseBundle>
B<I extends org.hl7.fhir.instance.model.api.IIdType,P extends org.hl7.fhir.instance.model.api.IBaseParameters>
ca.uhn.fhir.rest.api.MethodOutcome<T extends org.hl7.fhir.instance.model.api.IBaseResource,I extends org.hl7.fhir.instance.model.api.IIdType>
T<B extends org.hl7.fhir.instance.model.api.IBaseBundle,T extends org.hl7.fhir.instance.model.api.IBaseResource>
Bsearch(Class<B> theBundleType, Class<T> theResourceType, com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theSearchParameters, Map<String, String> theHeaders) <B extends org.hl7.fhir.instance.model.api.IBaseBundle>
Btransaction(B theBundle, Map<String, String> theHeaders) <T extends org.hl7.fhir.instance.model.api.IBaseResource>
ca.uhn.fhir.rest.api.MethodOutcome
-
Constructor Details
-
HapiFhirRepository
public HapiFhirRepository(DaoRegistry theDaoRegistry, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.server.RestfulServer theRestfulServer)
-
-
Method Details
-
read
public <T extends org.hl7.fhir.instance.model.api.IBaseResource,I extends org.hl7.fhir.instance.model.api.IIdType> T read(Class<T> theResourceType, I theId, Map<String, String> theHeaders) - Specified by:
readin interfaceIRepository
-
create
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.rest.api.MethodOutcome create(T theResource, Map<String, String> theHeaders) - Specified by:
createin interfaceIRepository
-
patch
public <I extends org.hl7.fhir.instance.model.api.IIdType,P extends org.hl7.fhir.instance.model.api.IBaseParameters> ca.uhn.fhir.rest.api.MethodOutcome patch(I theId, P thePatchParameters, Map<String, String> theHeaders) - Specified by:
patchin interfaceIRepository
-
update
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.rest.api.MethodOutcome update(T theResource, Map<String, String> theHeaders) - Specified by:
updatein interfaceIRepository
-
delete
public <T extends org.hl7.fhir.instance.model.api.IBaseResource,I extends org.hl7.fhir.instance.model.api.IIdType> ca.uhn.fhir.rest.api.MethodOutcome delete(Class<T> theResourceType, I theId, Map<String, String> theHeaders) - Specified by:
deletein interfaceIRepository
-
search
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle,T extends org.hl7.fhir.instance.model.api.IBaseResource> B search(Class<B> theBundleType, Class<T> theResourceType, com.google.common.collect.Multimap<String, List<ca.uhn.fhir.model.api.IQueryParameterType>> theSearchParameters, Map<String, String> theHeaders) - Specified by:
searchin interfaceIRepository
-
link
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle> B link(Class<B> theBundleType, String theUrl, Map<String, String> theHeaders) - Specified by:
linkin interfaceIRepository
-
capabilities
public <C extends org.hl7.fhir.instance.model.api.IBaseConformance> C capabilities(Class<C> theCapabilityStatementType, Map<String, String> theHeaders) - Specified by:
capabilitiesin interfaceIRepository
-
transaction
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle> B transaction(B theBundle, Map<String, String> theHeaders) - Specified by:
transactionin interfaceIRepository
-
invoke
public <R extends org.hl7.fhir.instance.model.api.IBaseResource,P extends org.hl7.fhir.instance.model.api.IBaseParameters> R invoke(String theName, P theParameters, Class<R> theReturnType, Map<String, String> theHeaders) - Specified by:
invokein interfaceIRepository
-
invoke
public <P extends org.hl7.fhir.instance.model.api.IBaseParameters> ca.uhn.fhir.rest.api.MethodOutcome invoke(String theName, P theParameters, Map<String, String> theHeaders) - Specified by:
invokein interfaceIRepository
-
invoke
public <R extends org.hl7.fhir.instance.model.api.IBaseResource,P extends org.hl7.fhir.instance.model.api.IBaseParameters, R invokeT extends org.hl7.fhir.instance.model.api.IBaseResource> (Class<T> theResourceType, String theName, P theParameters, Class<R> theReturnType, Map<String, String> theHeaders) - Specified by:
invokein interfaceIRepository
-
invoke
public <P extends org.hl7.fhir.instance.model.api.IBaseParameters,T extends org.hl7.fhir.instance.model.api.IBaseResource> ca.uhn.fhir.rest.api.MethodOutcome invoke(Class<T> theResourceType, String theName, P theParameters, Map<String, String> theHeaders) - Specified by:
invokein interfaceIRepository
-
invoke
public <R extends org.hl7.fhir.instance.model.api.IBaseResource,P extends org.hl7.fhir.instance.model.api.IBaseParameters, R invokeI extends org.hl7.fhir.instance.model.api.IIdType> (I theId, String theName, P theParameters, Class<R> theReturnType, Map<String, String> theHeaders) - Specified by:
invokein interfaceIRepository
-
invoke
public <P extends org.hl7.fhir.instance.model.api.IBaseParameters,I extends org.hl7.fhir.instance.model.api.IIdType> ca.uhn.fhir.rest.api.MethodOutcome invoke(I theId, String theName, P theParameters, Map<String, String> theHeaders) - Specified by:
invokein interfaceIRepository
-
history
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle,P extends org.hl7.fhir.instance.model.api.IBaseParameters> B history(P theParameters, Class<B> theBundleType, Map<String, String> theHeaders) - Specified by:
historyin interfaceIRepository
-
history
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle,P extends org.hl7.fhir.instance.model.api.IBaseParameters, B historyT extends org.hl7.fhir.instance.model.api.IBaseResource> (Class<T> theResourceType, P theParameters, Class<B> theBundleType, Map<String, String> theHeaders) - Specified by:
historyin interfaceIRepository
-
history
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle,P extends org.hl7.fhir.instance.model.api.IBaseParameters, B historyI extends org.hl7.fhir.instance.model.api.IIdType> (I theId, P theParameters, Class<B> theBundleType, Map<String, String> theHeaders) - Specified by:
historyin interfaceIRepository
-
fhirContext
- Specified by:
fhirContextin interfaceIRepository
-
invoke
-