Class FhirSearchParameter<T>
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.healthcare.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 forFhirIO.Search.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object o)java.lang.StringgetKey()@Nullable java.util.Map<java.lang.String,T>getQueries()java.lang.StringgetResourceType()inthashCode()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.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-