Skip to main content

core.gettypedpropertyvaluewithschema

Home > @medplum/core > getTypedPropertyValueWithSchema

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

ParameterTypeDescription
typedValueTypedValueThe base context (FHIR resource or backbone element).
pathstringThe property path.
elementInternalSchemaElementThe property element definition.

Returns:

TypedValue[] | TypedValue | undefined

The value of the property and the property type.