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(value: TypedValue['value'], path: string, element: InternalSchemaElement): TypedValue[] | TypedValue | undefined;

Parameters

ParameterTypeDescription
valueTypedValue['value']The 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.