Class CompartmentUtil


  • public class CompartmentUtil
    extends Object
    The compartments are defined using FHIR R4 CompartmentDefinitions.
    The R4 CompartmentDefintions and boundaries are defined at https://www.hl7.org/fhir/compartmentdefinition.html

    CompartmentDefintion:
    • Patient - https://www.hl7.org/fhir/compartmentdefinition-patient.json
    • Encounter - https://www.hl7.org/fhir/compartmentdefinition-encounter.json
    • RelatedPerson - https://www.hl7.org/fhir/compartmentdefinition-relatedperson.json
    • Practitioner - https://www.hl7.org/fhir/compartmentdefinition-practitioner.json
    • Device - https://www.hl7.org/fhir/compartmentdefinition-device.json
    This class extracts the Compartment Logic from SearchUtil, converts the Custom Compartment logic and format into the ComponentDefintion, adds support for the the default definition.
    Load the class in the classloader to initialize static members. Call this before using the class in order to avoid a slight performance hit on first use.