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

ParameterTypeDescription
valueTypedValue | TypedValue[] | undefined
discriminatorSliceDiscriminator
sliceSliceDefinition
elementsRecord<string, InternalSchemaElement>(Optional)

Returns:

boolean