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
Parameter | Type | Description |
---|---|---|
typedValue | The base context (FHIR resource or backbone element). | |
path | string | The property path. |
element | The property element definition. |
Returns:
TypedValue[] | TypedValue | undefined
The value of the property and the property type.