Class EverythingOperation

  • All Implemented Interfaces:
    FHIROperation

    public class EverythingOperation
    extends AbstractOperation
    This class implements the $everything operation which is used to return all the information related to one or more patients described in the resource or context on which this operation is invoked.
    • Field Detail

      • STARTING_FROM

        protected static final java.lang.String STARTING_FROM
        The prefix used to indicate the start date for the $everything resources
      • UP_UNTIL

        protected static final java.lang.String UP_UNTIL
        The prefix used to indicate the end date for the $everything resources
      • DATE_QUERY_PARAMETER

        protected static final java.lang.String DATE_QUERY_PARAMETER
        The "date" query parameter used in the underlying search operation.
        See Also:
        Constant Field Values
      • LAST_UPDATED_QUERY_PARAMETER

        protected static final java.lang.String LAST_UPDATED_QUERY_PARAMETER
        The "_lastUpdated" query parameter used in the underlying search operation.
        See Also:
        Constant Field Values
      • START_QUERY_PARAMETER

        protected static final java.lang.String START_QUERY_PARAMETER
        The query parameter to indicate a start date for the $everything operation
        See Also:
        Constant Field Values
      • END_QUERY_PARAMETER

        protected static final java.lang.String END_QUERY_PARAMETER
        The query parameter to indicate a stop date for the $everything operation
        See Also:
        Constant Field Values
      • SINCE_QUERY_PARAMETER

        protected static final java.lang.String SINCE_QUERY_PARAMETER
        The query parameter to only return resources last update since a date for the $everything operation
        See Also:
        Constant Field Values
    • Constructor Detail

      • EverythingOperation

        public EverythingOperation()
    • Method Detail

      • parseQueryParameters

        protected javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> parseQueryParameters​(Parameters parameters,
                                                                                                                int maxPageSize)
        Parse the parameters and turn them into a MultivaluedMap to pass to the search service
        Parameters:
        parameters - the operation parameters
        maxPageSize - the max page size
        Returns:
        the MultivaluedMap for the search service built from the parameters
      • getOverridenIncludedResourceTypes

        protected java.util.List<java.lang.String> getOverridenIncludedResourceTypes​(Parameters parameters,
                                                                                     java.util.List<java.lang.String> defaultResourceTypes)
                                                                              throws FHIRSearchException
        Get the list of resource types requested by the user via the _type parameter
        Parameters:
        parameters - the Parameters object
        Returns:
        the list of patient subresources that will be included in the $everything operation, as provided by the user
        Throws:
        FHIRSearchException