hapi-fhir
hapi-fhir copied to clipboard
[Bug] HAPI RuleBuilder ignoring filter on second matching permissions
Issue
Currently, the RuleBuilder is ignoring filters on matching permissions.
Eg. FHIR_READ_ALL_IN_COMPARTMENT/Patient/lob1patient?code=foo and FHIR_READ_ALL_IN_COMPARTMENT/Patient/lob2patient?code=bar get merged into one and RuleBuilder just ignores the second filter.
Use Case
For multi-lob we need redaction to happen per lob i.e. filter should work for multiple permissions.
See https://github.com/hapifhir/hapi-fhir/pull/3916