Class FhirSearchParameter<T>

java.lang.Object
org.apache.beam.sdk.io.gcp.healthcare.FhirSearchParameter<T>

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

    • of

      public static <T> FhirSearchParameter<T> of(String resourceType, @Nullable String key, @Nullable Map<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(String resourceType, @Nullable Map<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 String getResourceType()
    • getKey

      public String getKey()
    • getQueries

      public @Nullable Map<String,T> getQueries()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object