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

Parameter

Type

Description

accessPolicy

AccessPolicy

The access policy.

resourceType

ResourceType

The resource type.

Returns:

boolean

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