
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> R
invoke
(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:
read
in 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:
create
in 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:
patch
in 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:
update
in 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:
delete
in 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:
search
in 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:
link
in interfaceIRepository
-
capabilities
public <C extends org.hl7.fhir.instance.model.api.IBaseConformance> C capabilities(Class<C> theCapabilityStatementType, Map<String, String> theHeaders) - Specified by:
capabilities
in interfaceIRepository
-
transaction
public <B extends org.hl7.fhir.instance.model.api.IBaseBundle> B transaction(B theBundle, Map<String, String> theHeaders) - Specified by:
transaction
in 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:
invoke
in 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:
invoke
in 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:
invoke
in 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:
invoke
in 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:
invoke
in 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:
invoke
in 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:
history
in 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:
history
in 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:
history
in interfaceIRepository
-
fhirContext
- Specified by:
fhirContext
in interfaceIRepository
-
invoke
-