SearchResult

data class SearchResult<R : Resource>(val resource: R, val included: Map<SearchParamName, List<Resource>>?, val revIncluded: Map<Pair<ResourceType, SearchParamName>, List<Resource>>?)

Represents the result of a FHIR search query, containing a matching resource and any referenced resources as specified in the query.

Parameters

R

The type of the main FHIR resource in the search result.

Constructors

Link copied to clipboard
constructor(resource: R, included: Map<SearchParamName, List<Resource>>?, revIncluded: Map<Pair<ResourceType, SearchParamName>, List<Resource>>?)

Properties

Link copied to clipboard

A map of included resources, keyed by the search parameter name used for inclusion, as per the Search.forwardIncludes criteria in the query.

Link copied to clipboard
val resource: R

The FHIR resource that matches the search criteria.

Link copied to clipboard

A map of reverse included resources, keyed by the resource type and search parameter name used for inclusion, as per the Search.revIncludes criteria in the query.