Package ca.uhn.fhir.jpa.ips.jpa
Class JpaSectionResourceSupplier
java.lang.Object
ca.uhn.fhir.jpa.ips.jpa.JpaSectionResourceSupplier
- All Implemented Interfaces:
ISectionResourceSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.jpa.ips.api.ISectionResourceSupplier
ISectionResourceSupplier.InclusionTypeEnum, ISectionResourceSupplier.ResourceEntry
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJpaSectionResourceSupplier
(JpaSectionSearchStrategyCollection theSectionSearchStrategyCollection, ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry, ca.uhn.fhir.context.FhirContext theFhirContext) -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.instance.model.api.IBaseResource>
List<ISectionResourceSupplier.ResourceEntry> fetchResourcesForSection
(IpsContext theIpsContext, IpsSectionContext<T> theIpsSectionContext, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) This method will be called once for each section context (section and resource type combination), and will be used to supply the resources to include in the given IPS section.
-
Field Details
-
CHUNK_SIZE
- See Also:
-
-
Constructor Details
-
JpaSectionResourceSupplier
public JpaSectionResourceSupplier(@Nonnull JpaSectionSearchStrategyCollection theSectionSearchStrategyCollection, @Nonnull ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry, @Nonnull ca.uhn.fhir.context.FhirContext theFhirContext)
-
-
Method Details
-
fetchResourcesForSection
@Nullable public <T extends org.hl7.fhir.instance.model.api.IBaseResource> List<ISectionResourceSupplier.ResourceEntry> fetchResourcesForSection(IpsContext theIpsContext, IpsSectionContext<T> theIpsSectionContext, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:ISectionResourceSupplier
This method will be called once for each section context (section and resource type combination), and will be used to supply the resources to include in the given IPS section. This method can be used if you wish to fetch resources for a given section from a source other than the repository. This could mean fetching resources using a FHIR REST client to an external server, or could even mean fetching data directly from a database using JDBC or similar.- Specified by:
fetchResourcesForSection
in interfaceISectionResourceSupplier
- Parameters:
theIpsContext
- The IPS context, containing the identity of the patient whose IPS is being generated.theIpsSectionContext
- The section context, containing the section name and resource type.theRequestDetails
- The RequestDetails object associated with the HTTP request associated with this generation.- Returns:
- Returns a list of resources to add to the given section, or
null
.
-