Class JpaSectionResourceSupplier

java.lang.Object
ca.uhn.fhir.jpa.ips.jpa.JpaSectionResourceSupplier
All Implemented Interfaces:
ISectionResourceSupplier

  • Field Details

  • Constructor Details

  • 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 interface ISectionResourceSupplier
      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.