Skip to main content

core.removeprofilefromresource

Home > @medplum/core > removeProfileFromResource

removeProfileFromResource() function

Removes the supplied profileUrl from the resource.meta.profile if it is present

Signature:

export declare function removeProfileFromResource<T extends Resource = Resource>(resource: T, profileUrl: string): T;

Parameters

Parameter

Type

Description

resource

T

A FHIR resource

profileUrl

string

The profile URL to remove

Returns:

T

The resource