Class ImmunizationsJpaSectionSearchStrategy

java.lang.Object
ca.uhn.fhir.jpa.ips.jpa.JpaSectionSearchStrategy<org.hl7.fhir.r4.model.Immunization>
ca.uhn.fhir.jpa.ips.jpa.section.ImmunizationsJpaSectionSearchStrategy
All Implemented Interfaces:
IJpaSectionSearchStrategy<org.hl7.fhir.r4.model.Immunization>

public class ImmunizationsJpaSectionSearchStrategy extends JpaSectionSearchStrategy<org.hl7.fhir.r4.model.Immunization>
  • Constructor Details

  • Method Details

    • massageResourceSearch

      public void massageResourceSearch(@Nonnull IpsSectionContext<org.hl7.fhir.r4.model.Immunization> theIpsSectionContext, @Nonnull ca.uhn.fhir.jpa.searchparam.SearchParameterMap theSearchParameterMap)
      Description copied from interface: IJpaSectionSearchStrategy
      This method can manipulate the SearchParameterMap that will be used to find candidate resources for the given IPS section. The map will already have a subject/patient parameter added to it. The map provided in theSearchParameterMap will contain a subject/patient reference (e.g. ?patient=Patient/123), but no other parameters. This method can add other parameters. The default implementation of this interface performs no action.

      For example, for a Vital Signs section, the implementation might add a parameter indicating the parameter category=vital-signs.

      Parameters:
      theIpsSectionContext - The context, which indicates the IPS section and the resource type being searched for.
      theSearchParameterMap - The map to manipulate.
    • shouldInclude

      public boolean shouldInclude(@Nonnull IpsSectionContext<org.hl7.fhir.r4.model.Immunization> theIpsSectionContext, @Nonnull org.hl7.fhir.r4.model.Immunization theCandidate)
      Description copied from interface: IJpaSectionSearchStrategy
      This method will be called for each found resource candidate for inclusion in the IPS document. The strategy can decide whether to include it or not. Note that the default implementation will always return true.

      This method is called once for every resource that is being considered for inclusion in an IPS section.