--- type: "fhir-fhirpath-function" title: "FHIR FHIRPath Function: subsumedBy" source: "source/fhirpath.html" --- # FHIR FHIRPath Function: subsumedBy This page is part of **FHIR FHIRPath** (FHIR-specific extensions). Base spec lives at [FHIRPath](/fhirpath). `subsumedBy(code: Coding | CodeableConcept) : Boolean` When invoked on a Coding-valued element and the given `code` is Coding-valued, returns true if the source code is equivalent to the given code, or if the source code is subsumed by the given code (i.e., the given code is an ancestor of the source code in a subsumption hierarchy), and false otherwise. If the Codings are from different code systems, the relationships between the code systems must be well-defined or a run-time error is thrown. When the source or given elements are CodeableConcepts, returns true if any Coding in the source or given elements is equivalent to or subsumed by the given code. If either the input or the code parameter are not single value collections, the return value is empty. Note that implementations are encouraged to make use of a terminology service to provide this functionality. * * * [Back to FHIR FHIRPath](/fhir-fhirpath)