core.pointer | Medplum

Pointer class

JSON Pointer representation

Signature:

export declare class Pointer

Constructors

Constructor Modifiers Description
(constructor)(tokens) Constructs a new instance of the Pointer class

Properties

Property Modifiers Type Description
tokens string[]

Methods

Method Modifiers Description
add(token)
evaluate(object) Returns an object with 'parent', 'key', and 'value' properties. In the special case that this Pointer's path == "", this object will be {parent: null, key: '', value: object}. Otherwise, parent and key will have the property such that parent[key] == value.
fromJSON(path) static
get(object)
parent() Create a new Pointer representing the parent of this one.
The parent of the empty pointer is the empty pointer.
push(token)
set(object, value)
toString()