type: fhir-fhirpath-functionsource: source/fhirpath.html
FHIR FHIRPath Function: %terminologies.expand
This page is part of FHIR FHIRPath (FHIR-specific extensions). Base spec lives at FHIRPath.
%terminologies.expand(valueSet, params) : ValueSet
This calls the Terminology Service $expand operation (formal definition).
Parameters:
- valueSet: either an actual ValueSet, or a canonical URL reference to a value set.
- params: a URL encoded string with other parameters for the expand operation (e.g., 'displayLanguage=en&activeOnly=true')
Return Value: a ValueSet with an expansion. If an error occurs, the return value is empty.