Skip to main content

core.canreadresourcetype

Home > @medplum/core > canReadResourceType

canReadResourceType() function

Determines if the current user can read the specified resource type.

Signature:

export declare function canReadResourceType(accessPolicy: AccessPolicy, resourceType: ResourceType): boolean;

Parameters

ParameterTypeDescription
accessPolicyAccessPolicyThe access policy.
resourceTypeResourceTypeThe resource type.

Returns:

boolean

True if the current user can read the specified resource type.