core.accesspolicysupportsinteraction
Home > @medplum/core > accessPolicySupportsInteraction
accessPolicySupportsInteraction() function
Shallow check that an interaction is permitted by the AccessPolicy on a given resource type, at least for some resources. A more in-depth check for the specific resource(s) being accessed is required in addition to this one.
Signature:
export declare function accessPolicySupportsInteraction(accessPolicy: AccessPolicy, interaction: AccessPolicyInteraction, resourceType: ResourceType): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
accessPolicy | AccessPolicy | The AccessPolicy to check against. |
interaction | The FHIR interaction being performed. | |
resourceType | ResourceType | The type of resource being interacted with. |
Returns:
boolean
True when the interaction is provisionally permitted by the AccessPolicy.