Package org.cqframework.fhir.api.stu3
Interface FhirDal
- All Superinterfaces:
FhirDal
This interface is a minimal Fhir CRUD API. It's based on the
FHIR HTTP API, but constrained to provide only the
operations necessary for the cql-evaluator modules to function.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(org.hl7.fhir.dstu3.model.Resource resource) Creates theIBaseResource.voiddelete(org.hl7.fhir.instance.model.api.IIdType id) Deletes anIBaseResourcebyid.org.hl7.fhir.dstu3.model.Resourceread(org.hl7.fhir.instance.model.api.IIdType id) Fetches anResourcebyid.org.hl7.fhir.dstu3.model.Bundlesearch(String resourceType, Map<String, List<List<ca.uhn.fhir.model.api.IQueryParameterType>>> searchParameters) Returns anIterable<IBaseResource>of all the resources of typeresourceType.voidupdate(org.hl7.fhir.dstu3.model.Resource resource) Updates theIBaseResource.
-
Method Details
-
read
org.hl7.fhir.dstu3.model.Resource read(org.hl7.fhir.instance.model.api.IIdType id) Fetches anResourcebyid. TheIIdTypemust have the resourceType defined. Returns null if no resource is found. -
create
void create(org.hl7.fhir.dstu3.model.Resource resource) Creates theIBaseResource. Default behavior is to overwrite the resource if it already exists.- Parameters:
resource- the resource
-
update
void update(org.hl7.fhir.dstu3.model.Resource resource) Updates theIBaseResource. Default behavior is to create the resource if it does not exist.- Parameters:
resource- the resource
-
delete
void delete(org.hl7.fhir.instance.model.api.IIdType id) Deletes anIBaseResourcebyid. TheIIdTypemust have the resourceType defined. Default behavior is no-op if the resource does not exist. -
search
org.hl7.fhir.dstu3.model.Bundle search(String resourceType, Map<String, List<List<ca.uhn.fhir.model.api.IQueryParameterType>>> searchParameters) Returns anIterable<IBaseResource>of all the resources of typeresourceType. Default behavior is to return null if no resources are found.
-