Interface IElasticsearchSvc

All Known Implementing Classes:
ElasticsearchSvcImpl

public interface IElasticsearchSvc
  • Method Details

    • executeLastN

      List<String> executeLastN(SearchParameterMap theSearchParameterMap, ca.uhn.fhir.context.FhirContext theFhirContext, Integer theMaxResultsToFetch)
      Returns identifiers for the last most recent N observations that meet the specified criteria.
      Parameters:
      theSearchParameterMap - SearchParameterMap containing search parameters used for filtering the last N observations. Supported parameters include Subject, Patient, Code, Category and Max (the parameter used to determine N).
      theFhirContext - Current FhirContext.
      theMaxResultsToFetch - The maximum number of results to return for the purpose of paging.
      Returns:
    • getObservationDocument

      Returns index document for a single Observation
      Parameters:
      theDocumentID - Identifier of Observation resource.
      Returns:
    • getObservationCodeDocument

      CodeJson getObservationCodeDocument(String theCodeSystemHash, String theText)
      Returns index document for a single Observation Code that either has a coding that matches a specified Code value and system or that has a specified text value.
      Parameters:
      theCodeSystemHash - A hash string constructed from a Code value and Code system used to match to an Observation Code.
      theText - A text value used to match to an Observation Code.
      Returns:
    • createOrUpdateObservationIndex

      Boolean createOrUpdateObservationIndex(String theDocumentId, ObservationJson theObservationDocument)
      Creates or updates index for an Observation Resource.
      Parameters:
      theDocumentId - Identifier for Observation resource.
      theObservationDocument - Indexing document for Observation.
      Returns:
      True if Observation indexed successfully.
    • createOrUpdateObservationCodeIndex

      Boolean createOrUpdateObservationCodeIndex(String theCodeableConceptID, CodeJson theObservationCodeDocument)
      Creates or updates index for an Observation Code.
      Parameters:
      theCodeableConceptID - Identifier for Observation resource.
      theObservationCodeDocument - Indexing document for Observation.
      Returns:
      True if Observation Code indexed successfully.
    • deleteObservationDocument

      void deleteObservationDocument(String theDocumentId)
      Deletes index for an Observation Resource.
      Parameters:
      theDocumentId - Identifier for Observation resource.
    • close

      void close() throws IOException
      Invoked when shutting down.
      Throws:
      IOException
    • getObservationResources

      List<org.hl7.fhir.instance.model.api.IBaseResource> getObservationResources(Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> thePids)
      Returns inlined observation resource stored along with index mappings for matched identifiers
      Parameters:
      thePids -
      Returns:
      Resources list or empty if nothing found