Resource class sealed

Any of the FHIR resources

Implementers
Available extensions

Constructors

Resource.fromJson(JsonObject json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id String?
The id of the resource
no setter
json → JsonObject
final
meta Meta?
The metadata of the resource
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(List<FieldDefinition> fieldDefinitions) ValidationResult

Available on Resource, provided by the ResourceValidationExtensions extension

Validates the resource based on the provided fieldDefinitions.
withFieldResource<T2 extends Resource>(FieldDefinition<T2> field, T2 resource, {required T constructor(JsonObject)}) → T

Available on T, provided by the ResourceExtensions extension

Creates a clone of the resource with the provided field updated with another resource
withFieldValue(FieldDefinition field, JsonValue value, {required T constructor(JsonObject)}) → T

Available on T, provided by the ResourceExtensions extension

Creates a clone of the resource with the provided field updated with another resource
withNullField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) UpdateResult<T>

Available on T, provided by the ResourceExtensions extension

withUndefinedField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) UpdateResult<T>

Available on T, provided by the ResourceExtensions extension

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

fieldDefinitions → const List<FieldDefinition<JsonValue>>
idField → const FieldDefinition<JsonValue>
metaField → const FieldDefinition<JsonValue>