Class ParametersMap
- java.lang.Object
-
- org.linuxforhealth.fhir.search.parameters.ParametersMap
-
public class ParametersMap extends java.lang.Object
A multi-key map that indexes a set of search parameters by SearchParameter.code and SearchParameter.url / canonical (url + "|" + version)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MISSING_EXPRESSION_WARNING
-
Constructor Summary
Constructors Constructor Description ParametersMap()
Construct a ParametersMap from a Bundle of SearchParameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.String,SearchParameter>>
canonicalEntries()
java.util.Set<java.util.Map.Entry<java.lang.String,SearchParameter>>
codeEntries()
java.util.Set<java.lang.String>
getCodes()
Get the set of SearchParameter codes that have been added to this map.SearchParameter
getInclusionParam(java.lang.String searchParameterCode)
Get a SearchParameter that has been added to this map as an inclusion parameter by its code.java.util.Collection<SearchParameter>
inclusionValues()
void
insert(java.lang.String code, SearchParameter parameter)
void
insertInclusionParam(java.lang.String code, SearchParameter parameter)
SearchParameter
lookupByCanonical(java.lang.String searchParameterCanonical)
Look up a search parameter that has been added to this map by its canonical URL.SearchParameter
lookupByCode(java.lang.String searchParameterCode)
Look up a search parameter that has been added to this map by its code.java.util.Collection<SearchParameter>
values()
-
-
-
Field Detail
-
MISSING_EXPRESSION_WARNING
public static final java.lang.String MISSING_EXPRESSION_WARNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
insert
public void insert(java.lang.String code, SearchParameter parameter)
- Parameters:
code
-parameter
-
-
insertInclusionParam
public void insertInclusionParam(java.lang.String code, SearchParameter parameter)
- Parameters:
code
-parameter
-
-
getCodes
public java.util.Set<java.lang.String> getCodes()
Get the set of SearchParameter codes that have been added to this map.- Returns:
-
lookupByCode
public SearchParameter lookupByCode(java.lang.String searchParameterCode)
Look up a search parameter that has been added to this map by its code.- Parameters:
searchParameterCode
-- Returns:
- null if it doesn't exist
-
lookupByCanonical
public SearchParameter lookupByCanonical(java.lang.String searchParameterCanonical)
Look up a search parameter that has been added to this map by its canonical URL.- Parameters:
searchParameterCanonical
-- Returns:
- null if it doesn't exist
-
getInclusionParam
public SearchParameter getInclusionParam(java.lang.String searchParameterCode)
Get a SearchParameter that has been added to this map as an inclusion parameter by its code.- Parameters:
searchParameterCode
-- Returns:
- null if it doesn't exist
-
values
public java.util.Collection<SearchParameter> values()
- Returns:
- the set of search parameters added to this map
-
codeEntries
public java.util.Set<java.util.Map.Entry<java.lang.String,SearchParameter>> codeEntries()
- Returns:
- the set of search parameters in the map, indexed by code
-
inclusionValues
public java.util.Collection<SearchParameter> inclusionValues()
- Returns:
- the set of compartment inclusion criteria parameter values
-
canonicalEntries
public java.util.Set<java.util.Map.Entry<java.lang.String,SearchParameter>> canonicalEntries()
-
-