core.applydefaultvaluestoelementwithvisitor
Home > @medplum/core > applyDefaultValuesToElementWithVisitor
applyDefaultValuesToElementWithVisitor() function
Signature:
export declare function applyDefaultValuesToElementWithVisitor(existingValue: any, path: string, element: InternalSchemaElement, elements: Record<string, InternalSchemaElement>, schema: InternalTypeSchema): any;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| existingValue | any | |
| path | string | |
| element | InternalSchemaElement | |
| elements | Record<string, InternalSchemaElement> | |
| schema | InternalTypeSchema | 
Returns:
any