Package ca.uhn.fhir.jpa.ips.jpa
Class DefaultJpaIpsGenerationStrategy
java.lang.Object
ca.uhn.fhir.jpa.ips.strategy.BaseIpsGenerationStrategy
ca.uhn.fhir.jpa.ips.jpa.DefaultJpaIpsGenerationStrategy
- All Implemented Interfaces:
IIpsGenerationStrategy
This
generation strategy
contains default rules for fetching
IPS section contents for each of the base (universal realm) IPS definition sections. It fetches contents for each
section from the JPA server repository.
This class can be used directly, but it can also be subclassed and extended if you want to
create an IPS strategy that is based on the defaults but add or change the inclusion rules or
sections. If you are subclassing this class, the typical approach is to override the
addSections()
method and replace it with your own implementation. You can include
any of the same sections that are defined in the parent class, but you can also omit any
you don't want to include, and add your own as well.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class ca.uhn.fhir.jpa.ips.strategy.BaseIpsGenerationStrategy
DEFAULT_IPS_NARRATIVES_PROPERTIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGlobalSectionCustomizer
(Function<Section, Section> theCustomizer) Subclasses may call this method to add customers that will customize every section added to the strategy.protected void
addJpaSection
(Section theSection, JpaSectionSearchStrategyCollection theSectionSearchStrategyCollection) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Add the various sections to the registry in order.org.hl7.fhir.instance.model.api.IBaseResource
fetchPatient
(ca.uhn.fhir.rest.param.TokenParam thePatientIdentifier, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Fetches and returns the patient to include in the generated IPS for the given patient identifier.org.hl7.fhir.instance.model.api.IBaseResource
fetchPatient
(org.hl7.fhir.instance.model.api.IIdType thePatientId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Fetches and returns the patient to include in the generated IPS for the given patient ID.final void
This method will be called once by the framework.void
setDaoRegistry
(ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry) void
setFhirContext
(ca.uhn.fhir.context.FhirContext theFhirContext) Methods inherited from class ca.uhn.fhir.jpa.ips.strategy.BaseIpsGenerationStrategy
addSection, createAuthor, createConfidentiality, createTitle, getBundleProfile, getNarrativePropertyFiles, getSectionResourceSupplier, getSections, massageResourceId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.ips.api.IIpsGenerationStrategy
postManipulateIpsBundle
-
Field Details
-
SECTION_CODE_ALLERGY_INTOLERANCE
- See Also:
-
SECTION_CODE_MEDICATION_SUMMARY
- See Also:
-
SECTION_CODE_PROBLEM_LIST
- See Also:
-
SECTION_CODE_IMMUNIZATIONS
- See Also:
-
SECTION_CODE_PROCEDURES
- See Also:
-
SECTION_CODE_MEDICAL_DEVICES
- See Also:
-
SECTION_CODE_DIAGNOSTIC_RESULTS
- See Also:
-
SECTION_CODE_VITAL_SIGNS
- See Also:
-
SECTION_CODE_PREGNANCY
- See Also:
-
SECTION_CODE_SOCIAL_HISTORY
- See Also:
-
SECTION_CODE_ILLNESS_HISTORY
- See Also:
-
SECTION_CODE_FUNCTIONAL_STATUS
- See Also:
-
SECTION_CODE_PLAN_OF_CARE
- See Also:
-
SECTION_CODE_ADVANCE_DIRECTIVES
- See Also:
-
SECTION_SYSTEM_LOINC
- See Also:
-
-
Constructor Details
-
DefaultJpaIpsGenerationStrategy
public DefaultJpaIpsGenerationStrategy()
-
-
Method Details
-
setDaoRegistry
-
setFhirContext
-
addGlobalSectionCustomizer
Subclasses may call this method to add customers that will customize every section added to the strategy. -
initialize
Description copied from interface:IIpsGenerationStrategy
This method will be called once by the framework. It can be used to perform any initialization. -
fetchPatient
@Nonnull public org.hl7.fhir.instance.model.api.IBaseResource fetchPatient(org.hl7.fhir.instance.model.api.IIdType thePatientId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IIpsGenerationStrategy
Fetches and returns the patient to include in the generated IPS for the given patient ID. -
fetchPatient
@Nonnull public org.hl7.fhir.instance.model.api.IBaseResource fetchPatient(ca.uhn.fhir.rest.param.TokenParam thePatientIdentifier, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IIpsGenerationStrategy
Fetches and returns the patient to include in the generated IPS for the given patient identifier. -
addSections
Add the various sections to the registry in order. This method can be overridden for customization. -
addJpaSectionAllergyIntolerance
-
addJpaSectionMedicationSummary
-
addJpaSectionProblemList
-
addJpaSectionImmunizations
-
addJpaSectionProcedures
-
addJpaSectionMedicalDevices
-
addJpaSectionDiagnosticResults
-
addJpaSectionVitalSigns
-
addJpaSectionPregnancy
-
addJpaSectionSocialHistory
-
addJpaSectionIllnessHistory
-
addJpaSectionFunctionalStatus
-
addJpaSectionPlanOfCare
-
addJpaSectionAdvanceDirectives
-
addJpaSection
protected void addJpaSection(Section theSection, JpaSectionSearchStrategyCollection theSectionSearchStrategyCollection)
-