Class FhirSearchParameter<T>


  • @DefaultCoder(FhirSearchParameterCoder.class)
    public class FhirSearchParameter<T>
    extends java.lang.Object
    FhirSearchParameter represents the query parameters for a FHIR search request, used as a parameter for FhirIO.Search.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(@Nullable java.lang.Object o)  
      java.lang.String getKey()  
      @Nullable java.util.Map<java.lang.String,​T> getQueries()  
      java.lang.String getResourceType()  
      int hashCode()  
      static <T> FhirSearchParameter<T> of​(java.lang.String resourceType, @Nullable java.lang.String key, @Nullable java.util.Map<java.lang.String,​T> queries)
      Creates a FhirSearchParameter of type T.
      static <T> FhirSearchParameter<T> of​(java.lang.String resourceType, @Nullable java.util.Map<java.lang.String,​T> queries)
      Creates a FhirSearchParameter of type T, without a key.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • of

        public static <T> FhirSearchParameter<T> of​(java.lang.String resourceType,
                                                    @Nullable java.lang.String key,
                                                    @Nullable java.util.Map<java.lang.String,​T> queries)
        Creates a FhirSearchParameter of type T.
        Type Parameters:
        T - The type of the search query value.
        Parameters:
        resourceType - the FHIR resource type.
        key - Key for the search query to key the results with.
        queries - The search query.
        Returns:
        The FhirSearchParameter of type T.
      • of

        public static <T> FhirSearchParameter<T> of​(java.lang.String resourceType,
                                                    @Nullable java.util.Map<java.lang.String,​T> queries)
        Creates a FhirSearchParameter of type T, without a key.
        Type Parameters:
        T - The type of the search query value.
        Parameters:
        resourceType - the FHIR resource type.
        queries - The search query.
        Returns:
        The FhirSearchParameter of type T.
      • getResourceType

        public java.lang.String getResourceType()
      • getKey

        public java.lang.String getKey()
      • getQueries

        public @Nullable java.util.Map<java.lang.String,​T> getQueries()
      • equals

        public boolean equals​(@Nullable java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object