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
Parameter | Type | Description |
---|---|---|
value | TypedValue['value'] | 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.