HistoryEntry<R extends FhirNode> class
One row of a resource's history: a version of the resource, or the
tombstone a delete leaves (deleted, with no resource).
Constructors
- HistoryEntry({required String resourceType, required String id, required String versionId, required DateTime lastUpdated, required bool deleted, required R? resource})
-
Creates one history entry.
const
-
HistoryEntry.fromRow(ResourcesHistoryData row, FhirModel<
R, Object> model) -
Reads one
resources_historyrow. A tombstone is the row's owndeletedflag (schema 13); its JSON is a skeleton with no content, so it is not parsed as the resource type. Any other row is the resource at that version. The tombstone JSON still carries the DELETED tag for a reader of the raw table, but a tag in a live resource no longer makes it read as deleted (fhirant REVIEW-2026-09-08 row 36).factory
Properties
- deleted → bool
-
True for the tombstone a delete wrote.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The logical id.
final
- lastUpdated → DateTime
-
When this version was written.
final
- resource → R?
-
The resource at this version; null when deleted.
final
- resourceType → String
-
The resource type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- versionId → String
-
The version this row is.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- deletedTagSystem → const String
- The system of the tag a tombstone carries.