Interface IElasticsearchSvc

    • Method Detail

      • executeLastN

        List<StringexecuteLastN​(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:
      • 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.