core.elementscontexttype | Medplum

ElementsContextType type

Information for the set of elements at a given path within in a resource. This mostly exists to normalize access to elements regardless of whether they are from a profile, extension, or slice.

Signature:

export type ElementsContextType = {

path: string;

elements: Record<string, ExtendedInternalSchemaElement>;

elementsByPath: Record<string, ExtendedInternalSchemaElement>;

profileUrl: string | undefined;

debugMode: boolean;

accessPolicyResource?: AccessPolicyResource;

getExtendedProps(path: string): ExtendedElementProperties | undefined;

isDefaultContext?: boolean;

};

References: ExtendedInternalSchemaElement, ExtendedElementProperties