
Package ca.uhn.fhir.jpa.search.lastn
Interface IElasticsearchSvc
-
- All Known Implementing Classes:
ElasticsearchSvcImpl
public interface IElasticsearchSvc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Invoked when shutting down.Boolean
createOrUpdateObservationCodeIndex(String theCodeableConceptID, CodeJson theObservationCodeDocument)
Creates or updates index for an Observation Code.Boolean
createOrUpdateObservationIndex(String theDocumentId, ObservationJson theObservationDocument)
Creates or updates index for an Observation Resource.void
deleteObservationDocument(String theDocumentId)
Deletes index for an Observation Resource.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.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.ObservationJson
getObservationDocument(String theDocumentID)
Returns index document for a single Observation
-
-
-
Method Detail
-
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
ObservationJson getObservationDocument(String theDocumentID)
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
-
-