What is FHIRPath and how is it used?
masterFHIRPath is a path-based extraction language optimized for FHIR resources. Unlike XPath, which operates on XML/JSON representations, FHIRPath operates on the logical content of resources. All operations result in a collection of Elements.
Common use cases include:
- Search parameter paths: Defining what content a parameter refers to.
- Slicing discriminators: Indicating elements that define uniqueness.
- Invariants in ElementDefinition: Applying co-occurrence and other rules.
- Error message locations: Specifying locations in
OperationOutcome. - URL templates: Used in Smart on FHIR's
cds-hooks.