Bundle class

A container for a collection of resources.

Inheritance
Available extensions

Constructors

Bundle.new({String? id, Meta? meta, List<Extension>? extension, List<Identifier>? identifier, bool? active, String? type, String? name, List<CodeableConcept>? code, List<Participant>? participant, List<Link>? link, List<Entry>? entry})
Constructs a new Bundle.
Bundle.fromJson(JsonObject json)
Creates an Bundle instance from the provided JSON object.

Properties

active bool?
Indicates whether the bundle is currently active
no setter
code List<CodeableConcept>?
Codes identifying the bundle
no setter
entry List<Entry>?
Entries within the bundle
no setter
extension List<Extension>?
List of extensions for the bundle
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
The id of the resource
no setterinherited
identifier List<Identifier>?
Identifiers associated with the bundle
no setter
json → JsonObject
finalinherited
Links related to the bundle
no setter
meta Meta?
The metadata of the resource
no setterinherited
name String?
The human-readable name for the bundle
no setter
participant List<Participant>?
Participants involved in the bundle
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The type of the bundle (e.g., transaction, batch, history)
no setter

Methods

copyWith({String? id, Meta? meta, List<Extension>? extension, List<Identifier>? identifier, bool? active, String? type, String? name, List<CodeableConcept>? code, List<Participant>? participant, List<Link>? link, List<Entry>? entry}) Bundle
Creates a copy of the Bundle instance and allows for non-destructive mutation.
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.
inherited

Constants

activeField → const FieldDefinition<bool>
Field definition for active.
codeField → const FieldDefinition<List<CodeableConcept>>
Field definition for code.
entryField → const FieldDefinition<List<Entry>>
Field definition for entry.
extensionField → const FieldDefinition<List<Extension>>
Field definition for extension.
identifierField → const FieldDefinition<List<Identifier>>
Field definition for identifier.
linkField → const FieldDefinition<List<Link>>
Field definition for link.
nameField → const FieldDefinition<String>
Field definition for name.
participantField → const FieldDefinition<List<Participant>>
Field definition for participant.
typeField → const FieldDefinition<String>
Field definition for type.