Package ca.uhn.fhir.jpa.ips.jpa.section
Class PregnancyJpaSectionSearchStrategy
java.lang.Object
ca.uhn.fhir.jpa.ips.jpa.JpaSectionSearchStrategy<org.hl7.fhir.r4.model.Observation>
ca.uhn.fhir.jpa.ips.jpa.section.PregnancyJpaSectionSearchStrategy
- All Implemented Interfaces:
IJpaSectionSearchStrategy<org.hl7.fhir.r4.model.Observation>
public class PregnancyJpaSectionSearchStrategy
extends JpaSectionSearchStrategy<org.hl7.fhir.r4.model.Observation>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
massageResourceSearch
(IpsSectionContext<org.hl7.fhir.r4.model.Observation> theIpsSectionContext, ca.uhn.fhir.jpa.searchparam.SearchParameterMap theSearchParameterMap) This method can manipulate theSearchParameterMap
that will be used to find candidate resources for the given IPS section.boolean
shouldInclude
(IpsSectionContext<org.hl7.fhir.r4.model.Observation> theIpsSectionContext, org.hl7.fhir.r4.model.Observation theCandidate) This method will be called for each found resource candidate for inclusion in the IPS document.
-
Field Details
-
LOINC_CODE_PREGNANCY_STATUS
- See Also:
-
LOINC_CODE_NUMBER_BIRTHS_LIVE
- See Also:
-
LOINC_CODE_NUMBER_BIRTHS_PRETERM
- See Also:
-
LOINC_CODE_NUMBER_BIRTHS_STILL_LIVING
- See Also:
-
LOINC_CODE_NUMBER_BIRTHS_TERM
- See Also:
-
LOINC_CODE_NUMBER_BIRTHS_TOTAL
- See Also:
-
LOINC_CODE_NUMBER_ABORTIONS
- See Also:
-
LOINC_CODE_NUMBER_ABORTIONS_INDUCED
- See Also:
-
LOINC_CODE_NUMBER_ABORTIONS_SPONTANEOUS
- See Also:
-
LOINC_CODE_NUMBER_ECTOPIC_PREGNANCY
- See Also:
-
-
Constructor Details
-
PregnancyJpaSectionSearchStrategy
public PregnancyJpaSectionSearchStrategy()
-
-
Method Details
-
massageResourceSearch
public void massageResourceSearch(@Nonnull IpsSectionContext<org.hl7.fhir.r4.model.Observation> theIpsSectionContext, @Nonnull ca.uhn.fhir.jpa.searchparam.SearchParameterMap theSearchParameterMap) Description copied from interface:IJpaSectionSearchStrategy
This method can manipulate theSearchParameterMap
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.Observation> theIpsSectionContext, @Nonnull org.hl7.fhir.r4.model.Observation 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.
-