Open AlthafGit opened 4 weeks ago
Actually I tried with to added the rule based on specific param in the builder as below. Its not working and allowed to give all categories.
AdditionalCompartmentSearchParameters params = new AdditionalCompartmentSearchParameters(); params.addSearchParameters("Condition:category=encounter-diagnosis");
builder.allow().read().resourcesOfType(requestResource).inCompartmentWithAdditionalSearchParams("Patient", userIdPatientId, params) // Allow only the specified category .forTenantIds(accountId) .andThen().denyAll().build();
Actually I tried with to added the rule based on specific param in the builder as below. Its not working and allowed to give all categories.
AdditionalCompartmentSearchParameters params = new AdditionalCompartmentSearchParameters(); params.addSearchParameters("Condition:category=encounter-diagnosis");