Skip to main content

core.matchdiscriminant

Home > @medplum/core > matchDiscriminant

matchDiscriminant() function

Signature:

export declare function matchDiscriminant(value: TypedValue | TypedValue[] | undefined, discriminator: SliceDiscriminator, slice: SliceDefinition, elements?: Record<string, InternalSchemaElement>): boolean;

Parameters

Parameter

Type

Description

value

TypedValue | TypedValue[] | undefined

discriminator

SliceDiscriminator

slice

SliceDefinition

elements

Record<string, InternalSchemaElement>

(Optional)

Returns:

boolean