Class SearchParameter

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

    public class SearchParameter
    extends MetadataResource
    A search parameter that defines a named search item that can be used to search/filter on a resource.
    See Also:
    Serialized Form
    • Field Detail

      • derivedFrom

        protected CanonicalType derivedFrom
        Where this search parameter is originally defined. If a derivedFrom is provided, then the details in the search parameter must be consistent with the definition from which it is defined. i.e. the parameter should have the same meaning, and (usually) the functionality should be a proper subset of the underlying search parameter.
      • purpose

        protected MarkdownType purpose
        Explanation of why this search parameter is needed and why it has been designed as it has.
      • code

        protected CodeType code
        The code used in the URL or the parameter name in a parameters resource for this search parameter.
      • base

        protected List<CodeType> base
        The base resource type(s) that this search parameter can be used against.
      • expression

        protected StringType expression
        A FHIRPath expression that returns a set of elements for the search parameter.
      • xpath

        protected StringType xpath
        An XPath expression that returns a set of elements for the search parameter.
      • target

        protected List<CodeType> target
        Types of resource (if a resource is referenced).
      • multipleOr

        protected BooleanType multipleOr
        Whether multiple values are allowed for each time the parameter exists. Values are separated by commas, and the parameter matches if any of the values match.
      • multipleAnd

        protected BooleanType multipleAnd
        Whether multiple parameters are allowed - e.g. more than one parameter with the same name. The search matches if all the parameters match.
      • chain

        protected List<StringType> chain
        Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from SearchParameter.code for a parameter on the target resource type.
      • SP_DATE

        public static final String SP_DATE
        Search parameter: date

        Description: The search parameter publication date
        Type: date
        Path: SearchParameter.date

        See Also:
        Constant Field Values
      • DATE

        public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
        Fluent Client search parameter constant for date

        Description: The search parameter publication date
        Type: date
        Path: SearchParameter.date

      • CODE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
        Fluent Client search parameter constant for code

        Description: Code used in URL
        Type: token
        Path: SearchParameter.code

      • CONTEXT_TYPE_VALUE

        public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam,​ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE
        Fluent Client search parameter constant for context-type-value

        Description: A use context type and value assigned to the search parameter
        Type: composite
        Path:

      • SP_JURISDICTION

        public static final String SP_JURISDICTION
        Search parameter: jurisdiction

        Description: Intended jurisdiction for the search parameter
        Type: token
        Path: SearchParameter.jurisdiction

        See Also:
        Constant Field Values
      • JURISDICTION

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION
        Fluent Client search parameter constant for jurisdiction

        Description: Intended jurisdiction for the search parameter
        Type: token
        Path: SearchParameter.jurisdiction

      • SP_DESCRIPTION

        public static final String SP_DESCRIPTION
        Search parameter: description

        Description: The description of the search parameter
        Type: string
        Path: SearchParameter.description

        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION
        Fluent Client search parameter constant for description

        Description: The description of the search parameter
        Type: string
        Path: SearchParameter.description

      • SP_DERIVED_FROM

        public static final String SP_DERIVED_FROM
        Search parameter: derived-from

        Description: Original definition for the search parameter
        Type: reference
        Path: SearchParameter.derivedFrom

        See Also:
        Constant Field Values
      • DERIVED_FROM

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM
        Fluent Client search parameter constant for derived-from

        Description: Original definition for the search parameter
        Type: reference
        Path: SearchParameter.derivedFrom

      • INCLUDE_DERIVED_FROM

        public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM
        Constant for fluent queries to be used to add include statements. Specifies the path value of "SearchParameter:derived-from".
      • SP_CONTEXT_TYPE

        public static final String SP_CONTEXT_TYPE
        Search parameter: context-type

        Description: A type of use context assigned to the search parameter
        Type: token
        Path: SearchParameter.useContext.code

        See Also:
        Constant Field Values
      • CONTEXT_TYPE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE
        Fluent Client search parameter constant for context-type

        Description: A type of use context assigned to the search parameter
        Type: token
        Path: SearchParameter.useContext.code

      • SP_TYPE

        public static final String SP_TYPE
        Search parameter: type

        Description: number | date | string | token | reference | composite | quantity | uri | special
        Type: token
        Path: SearchParameter.type

        See Also:
        Constant Field Values
      • TYPE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
        Fluent Client search parameter constant for type

        Description: number | date | string | token | reference | composite | quantity | uri | special
        Type: token
        Path: SearchParameter.type

      • SP_VERSION

        public static final String SP_VERSION
        Search parameter: version

        Description: The business version of the search parameter
        Type: token
        Path: SearchParameter.version

        See Also:
        Constant Field Values
      • VERSION

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION
        Fluent Client search parameter constant for version

        Description: The business version of the search parameter
        Type: token
        Path: SearchParameter.version

      • SP_URL

        public static final String SP_URL
        Search parameter: url

        Description: The uri that identifies the search parameter
        Type: uri
        Path: SearchParameter.url

        See Also:
        Constant Field Values
      • URL

        public static final ca.uhn.fhir.rest.gclient.UriClientParam URL
        Fluent Client search parameter constant for url

        Description: The uri that identifies the search parameter
        Type: uri
        Path: SearchParameter.url

      • SP_TARGET

        public static final String SP_TARGET
        Search parameter: target

        Description: Types of resource (if a resource reference)
        Type: token
        Path: SearchParameter.target

        See Also:
        Constant Field Values
      • TARGET

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET
        Fluent Client search parameter constant for target

        Description: Types of resource (if a resource reference)
        Type: token
        Path: SearchParameter.target

      • SP_CONTEXT_QUANTITY

        public static final String SP_CONTEXT_QUANTITY
        Search parameter: context-quantity

        Description: A quantity- or range-valued use context assigned to the search parameter
        Type: quantity
        Path: SearchParameter.useContext.valueQuantity, SearchParameter.useContext.valueRange

        See Also:
        Constant Field Values
      • CONTEXT_QUANTITY

        public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY
        Fluent Client search parameter constant for context-quantity

        Description: A quantity- or range-valued use context assigned to the search parameter
        Type: quantity
        Path: SearchParameter.useContext.valueQuantity, SearchParameter.useContext.valueRange

      • SP_COMPONENT

        public static final String SP_COMPONENT
        Search parameter: component

        Description: Defines how the part works
        Type: reference
        Path: SearchParameter.component.definition

        See Also:
        Constant Field Values
      • COMPONENT

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPONENT
        Fluent Client search parameter constant for component

        Description: Defines how the part works
        Type: reference
        Path: SearchParameter.component.definition

      • INCLUDE_COMPONENT

        public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPONENT
        Constant for fluent queries to be used to add include statements. Specifies the path value of "SearchParameter:component".
      • SP_NAME

        public static final String SP_NAME
        Search parameter: name

        Description: Computationally friendly name of the search parameter
        Type: string
        Path: SearchParameter.name

        See Also:
        Constant Field Values
      • NAME

        public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME
        Fluent Client search parameter constant for name

        Description: Computationally friendly name of the search parameter
        Type: string
        Path: SearchParameter.name

      • SP_CONTEXT

        public static final String SP_CONTEXT
        Search parameter: context

        Description: A use context assigned to the search parameter
        Type: token
        Path: SearchParameter.useContext.valueCodeableConcept

        See Also:
        Constant Field Values
      • CONTEXT

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT
        Fluent Client search parameter constant for context

        Description: A use context assigned to the search parameter
        Type: token
        Path: SearchParameter.useContext.valueCodeableConcept

      • SP_PUBLISHER

        public static final String SP_PUBLISHER
        Search parameter: publisher

        Description: Name of the publisher of the search parameter
        Type: string
        Path: SearchParameter.publisher

        See Also:
        Constant Field Values
      • PUBLISHER

        public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER
        Fluent Client search parameter constant for publisher

        Description: Name of the publisher of the search parameter
        Type: string
        Path: SearchParameter.publisher

      • SP_CONTEXT_TYPE_QUANTITY

        public static final String SP_CONTEXT_TYPE_QUANTITY
        Search parameter: context-type-quantity

        Description: A use context type and quantity- or range-based value assigned to the search parameter
        Type: composite
        Path:

        See Also:
        Constant Field Values
      • CONTEXT_TYPE_QUANTITY

        public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam,​ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY
        Fluent Client search parameter constant for context-type-quantity

        Description: A use context type and quantity- or range-based value assigned to the search parameter
        Type: composite
        Path:

      • SP_STATUS

        public static final String SP_STATUS
        Search parameter: status

        Description: The current status of the search parameter
        Type: token
        Path: SearchParameter.status

        See Also:
        Constant Field Values
      • STATUS

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
        Fluent Client search parameter constant for status

        Description: The current status of the search parameter
        Type: token
        Path: SearchParameter.status

      • SP_BASE

        public static final String SP_BASE
        Search parameter: base

        Description: The resource type(s) this search parameter applies to
        Type: token
        Path: SearchParameter.base

        See Also:
        Constant Field Values
      • BASE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam BASE
        Fluent Client search parameter constant for base

        Description: The resource type(s) this search parameter applies to
        Type: token
        Path: SearchParameter.base