core.gettypedpropertyvaluewithschema | Medplum

getTypedPropertyValueWithSchema() function

Returns the value of the property and the property type using a type schema.

Signature:

export declare function getTypedPropertyValueWithSchema(typedValue: TypedValue, path: string, element: InternalSchemaElement): TypedValue[] | TypedValue | undefined;

Parameters

Parameter Type Description
typedValue TypedValue The base context (FHIR resource or backbone element).
path string The property path.
element InternalSchemaElement The property element definition.

Returns:

TypedValue | TypedValue | undefined

The value of the property and the property type.