Class TokenParam

    • Method Detail

      • getSystem

        public String getSystem()
        Returns the system for this token. Note that if a getModifier() is being used, the entire value of the parameter will be placed in value and this method will return null.

        null or "" (empty string) and that each of these have a different meaning. When a token is passed on a URL and it has no vertical bar (often meaning "return values that match the given code in any codesystem") this method will return null. When a token is passed on a URL and it has a vetical bar but nothing before the bar (often meaning "return values that match the given code but that have no codesystem) this method will return ""

      • getValue

        public String getValue()
        Returns the value for the token (generally the value to the right of the vertical bar on the URL)
      • isEmpty

        public boolean isEmpty()
      • getMissing

        public Boolean getMissing()
        If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value
        Specified by:
        getMissing in interface IQueryParameterType
      • getValueAsQueryToken

        public final String getValueAsQueryToken​(FhirContext theContext)
        Description copied from interface: IQueryParameterType
        Returns a representation of this parameter's value as it will be represented "over the wire". In other words, how it will be presented in a URL (although not URL escaped)

        See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format

        Specified by:
        getValueAsQueryToken in interface IQueryParameterType
        Parameters:
        theContext - TODO
        Returns:
        Returns a representation of this parameter's value as it will be represented "over the wire". In other words, how it will be presented in a URL (although not URL escaped)
      • isSupportsChain

        protected boolean isSupportsChain()
        Does this parameter type support chained parameters (only reference should return true for this)
      • setMissing

        public ca.uhn.fhir.rest.param.BaseParam setMissing​(Boolean theMissing)
        If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value
        Specified by:
        setMissing in interface IQueryParameterType
        Returns:
        Returns a reference to this for easier method chaining
      • setValueAsQueryToken

        public final void setValueAsQueryToken​(FhirContext theContext,
                                               String theParamName,
                                               String theQualifier,
                                               String theValue)
        Description copied from interface: IQueryParameterType
        This method is generally only called by HAPI itself, and should not need to be called from user code.

        See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format

        Specified by:
        setValueAsQueryToken in interface IQueryParameterType
        Parameters:
        theContext - TODO
        theParamName - TODO
        theQualifier - The parameter name qualifier that accompanied this value. For example, if the complete query was http://foo?name:exact=John, qualifier would be ":exact"
        theValue - The actual parameter value. For example, if the complete query was http://foo?name:exact=John, the value would be "John"