Skip to main content

core.checkfornull

Home > @medplum/core > checkForNull

checkForNull() function

Recursively checks for null values in an object.

Note that "null" is a special value in JSON that is not allowed in FHIR.

Signature:

export declare function checkForNull(value: unknown, path: string, issues: OperationOutcomeIssue[]): void;

Parameters

ParameterTypeDescription
valueunknownInput value of any type.
pathstringPath string to the value for OperationOutcome.
issuesOperationOutcomeIssue[]Output list of issues.

Returns:

void