Class SearchParametersTransport
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.index.SearchParametersTransport
-
public class SearchParametersTransport extends java.lang.Object
Represents a collection of search parameters extracted from a FHIR resource held in a form that is easy to serialize/deserialize to a wire format (e.g. JSON) for sending to a remote/async indexing service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchParametersTransport.Builder
A builder to make it easier to construct aSearchParametersTransport
-
Constructor Summary
Constructors Constructor Description SearchParametersTransport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchParametersTransport.Builder
builder()
Factory method to create aSearchParametersTransport.Builder
instancejava.util.List<DateParameter>
getDateValues()
java.time.Instant
getLastUpdated()
java.time.Instant
getLastUpdatedInstant()
Convenience function to get the lastUpdated time as an Instant.java.util.List<LocationParameter>
getLocationValues()
java.lang.String
getLogicalId()
long
getLogicalResourceId()
java.util.List<NumberParameter>
getNumberValues()
java.lang.String
getParameterHash()
java.util.List<ProfileParameter>
getProfileValues()
java.util.List<QuantityParameter>
getQuantityValues()
java.util.List<ReferenceParameter>
getRefValues()
java.lang.String
getRequestShard()
java.lang.String
getResourceType()
java.util.List<SecurityParameter>
getSecurityValues()
java.util.List<StringParameter>
getStringValues()
java.util.List<TagParameter>
getTagValues()
java.util.List<TokenParameter>
getTokenValues()
int
getVersionId()
void
setDateValues(java.util.List<DateParameter> dateValues)
void
setLastUpdated(java.time.Instant lastUpdated)
void
setLocationValues(java.util.List<LocationParameter> locationValues)
void
setLogicalId(java.lang.String logicalId)
void
setLogicalResourceId(long logicalResourceId)
void
setNumberValues(java.util.List<NumberParameter> numberValues)
void
setParameterHash(java.lang.String parameterHash)
void
setProfileValues(java.util.List<ProfileParameter> profileValues)
void
setQuantityValues(java.util.List<QuantityParameter> quantityValues)
void
setRefValues(java.util.List<ReferenceParameter> refValues)
void
setRequestShard(java.lang.String shardValue)
void
setResourceType(java.lang.String resourceType)
void
setSecurityValues(java.util.List<SecurityParameter> securityValues)
void
setStringValues(java.util.List<StringParameter> stringValues)
void
setTagValues(java.util.List<TagParameter> tagValues)
void
setTokenValues(java.util.List<TokenParameter> tokenValues)
void
setVersionId(int versionId)
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static SearchParametersTransport.Builder builder()
Factory method to create aSearchParametersTransport.Builder
instance- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getResourceType
public java.lang.String getResourceType()
- Returns:
- the resourceType
-
setResourceType
public void setResourceType(java.lang.String resourceType)
- Parameters:
resourceType
- the resourceType to set
-
getLogicalId
public java.lang.String getLogicalId()
- Returns:
- the logicalId
-
setLogicalId
public void setLogicalId(java.lang.String logicalId)
- Parameters:
logicalId
- the logicalId to set
-
getLogicalResourceId
public long getLogicalResourceId()
- Returns:
- the logicalResourceId
-
setLogicalResourceId
public void setLogicalResourceId(long logicalResourceId)
- Parameters:
logicalResourceId
- the logicalResourceId to set
-
getStringValues
public java.util.List<StringParameter> getStringValues()
- Returns:
- the stringValues
-
setStringValues
public void setStringValues(java.util.List<StringParameter> stringValues)
- Parameters:
stringValues
- the stringValues to set
-
getNumberValues
public java.util.List<NumberParameter> getNumberValues()
- Returns:
- the numberValues
-
setNumberValues
public void setNumberValues(java.util.List<NumberParameter> numberValues)
- Parameters:
numberValues
- the numberValues to set
-
getQuantityValues
public java.util.List<QuantityParameter> getQuantityValues()
- Returns:
- the quantityValues
-
setQuantityValues
public void setQuantityValues(java.util.List<QuantityParameter> quantityValues)
- Parameters:
quantityValues
- the quantityValues to set
-
getTokenValues
public java.util.List<TokenParameter> getTokenValues()
- Returns:
- the tokenValues
-
setTokenValues
public void setTokenValues(java.util.List<TokenParameter> tokenValues)
- Parameters:
tokenValues
- the tokenValues to set
-
getDateValues
public java.util.List<DateParameter> getDateValues()
- Returns:
- the dateValues
-
setDateValues
public void setDateValues(java.util.List<DateParameter> dateValues)
- Parameters:
dateValues
- the dateValues to set
-
getLocationValues
public java.util.List<LocationParameter> getLocationValues()
- Returns:
- the locationValues
-
setLocationValues
public void setLocationValues(java.util.List<LocationParameter> locationValues)
- Parameters:
locationValues
- the locationValues to set
-
getRequestShard
public java.lang.String getRequestShard()
- Returns:
- the requestShard
-
setRequestShard
public void setRequestShard(java.lang.String shardValue)
- Parameters:
shardValue
- the request shard value to set
-
getTagValues
public java.util.List<TagParameter> getTagValues()
- Returns:
- the tagValues
-
setTagValues
public void setTagValues(java.util.List<TagParameter> tagValues)
- Parameters:
tagValues
- the tagValues to set
-
getProfileValues
public java.util.List<ProfileParameter> getProfileValues()
- Returns:
- the profileValues
-
setProfileValues
public void setProfileValues(java.util.List<ProfileParameter> profileValues)
- Parameters:
profileValues
- the profileValues to set
-
getSecurityValues
public java.util.List<SecurityParameter> getSecurityValues()
- Returns:
- the securityValues
-
setSecurityValues
public void setSecurityValues(java.util.List<SecurityParameter> securityValues)
- Parameters:
profileValues
- the profileValues to set
-
getVersionId
public int getVersionId()
- Returns:
- the versionId
-
setVersionId
public void setVersionId(int versionId)
- Parameters:
versionId
- the versionId to set
-
getParameterHash
public java.lang.String getParameterHash()
- Returns:
- the parameterHash
-
setParameterHash
public void setParameterHash(java.lang.String parameterHash)
- Parameters:
parameterHash
- the parameterHash to set
-
getLastUpdated
public java.time.Instant getLastUpdated()
- Returns:
- the lastUpdated (UTC)
-
setLastUpdated
public void setLastUpdated(java.time.Instant lastUpdated)
- Parameters:
lastUpdated
- the lastUpdated to set.
-
getLastUpdatedInstant
public java.time.Instant getLastUpdatedInstant()
Convenience function to get the lastUpdated time as an Instant. All our times are always UTC.- Returns:
-
getRefValues
public java.util.List<ReferenceParameter> getRefValues()
- Returns:
- the refValues
-
setRefValues
public void setRefValues(java.util.List<ReferenceParameter> refValues)
- Parameters:
refValues
- the refValues to set
-
-