Skip to main content

core.getimagesrc

Home > @medplum/core > getImageSrc

getImageSrc() function

Returns an image URL for the resource, if one is available.

Signature:

export declare function getImageSrc(resource: Resource): string | undefined;

Parameters

Parameter

Type

Description

resource

Resource

The input resource.

Returns:

string | undefined

The image URL for the resource or undefined.