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

ParameterTypeDescription
resourceResourceThe input resource.

Returns:

string | undefined

The image URL for the resource or undefined.