Skip to main content

core.crawlresource

Home > @medplum/core > crawlResource

crawlResource() function

Warning: This API is now obsolete.

  • Use crawlTypedValue instead

Crawls the resource synchronously.

Signature:

export declare function crawlResource(resource: Resource, visitor: CrawlerVisitor, schema?: InternalTypeSchema, initialPath?: string): void;

Parameters

Parameter

Type

Description

resource

Resource

The resource to crawl.

visitor

CrawlerVisitor

The visitor functions to apply while crawling.

schema

InternalTypeSchema

(Optional) The schema to use for the resource.

initialPath

string

(Optional) The path within the resource form which to start crawling.

Returns:

void