Filters
There are several filters that you can use to select to which files in your project a rule should apply. These filter properties are applicable to most rules, but not all. These are the most common filters:
- FhirPath Filter: filter: filters resources using a fhirpath predicate
- File filters: filters on file name and path pattern(s) with wildcards
- New item: filters on a category of resources.
Multiple filters
You can specify more than one filter, per rule. Only files (resources) that fall in both filters will be part of the rule evaluation.
Example
This example will filter in all examples that have a profile:
- action: validate
files: examples/*-example.xml
filter: meta.profile