BackboneElement class abstract

Base class for elements inside a resource but not those in a data type.

Inheritance
Implementers

Constructors

BackboneElement({FhirString? id, List<FhirExtension>? extension_, List<FhirExtension>? modifierExtension, bool? disallowExtensions = false})
Constructor for BackboneElement
const
BackboneElement.fromJson(Map<String, dynamic> json)
FromJson Factory Constructor for BackboneElement
factory

Properties

copyWith $BackboneElementCopyWith<BackboneElement>
CopyWith method for BackboneElement.
no setteroverride
disallowExtensions bool?
This is used in the FHIRPath engine to record that no extensions are allowed for this item in the context in which it is used. to do: enforce this....
finalinherited
extension_ List<FhirExtension>?
List of extensions for additional information.
finalinherited
fhirType String
Returns the FHIR type of the object.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasId bool
Getter for checking if the element has an id.
no setterinherited
hasPrimitiveValue bool
Checks if the object has a primitive value.
no setterinherited
id FhirString?
Unique id for the element within a resource.
finalinherited
isMetadataBased bool
All Elements are metadata based.
no setterinherited
isPrimitive bool
Checks if the object is primitive.
no setterinherited
modifierExtension List<FhirExtension>?
List of modifier extensions for additional, non-core information
final
primitiveValue String?
Retrieves the primitive value of the object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addExtension(FhirExtension ext) → void
Method to add an extension.
inherited
addModifierExtension(FhirExtension ext) → void
Adds a modifier extension
clone() BackboneElement
Subclasses must implement the clone method.
override
compareDeepStrings(String? s1, String? s2, bool allowNull) bool
Checks if the object is equal to another object.
inherited
equalsDeep(FhirBase? o) bool
Deep equality check.
override
equalsShallow(Element other) bool
Method to compare shallow equality of two elements.
inherited
getChildByName(String name) FhirBase?
Retrieves a property by name, or if its a list that contains only one element, returns that element.
inherited
getChildrenByName(String name, [bool checkValid = false]) List<FhirBase>
Retrieves the properties of the object.
inherited
getExtensionFirstRep() FhirExtension
Getter for the first extension.
inherited
getExtensionsByUrl(String url) List<FhirExtension>
Getter for the first extension by url.
inherited
getModifierExtensionFirstRep() FhirExtension
Gets the first repetition of modifier extensions
getModifierExtensionsByUrl(String url) List<FhirExtension>
Retrieves all modifier extensions by URL
hasExtension() bool
Extension handling methods.
inherited
hasExtensionByUrl(String url) bool
Method to check if an extension exists by url.
inherited
hasModifierExtension() bool
Method to check if there are any modifier extensions
hasType(List<String> names) bool
Checks if the object has a given type.
inherited
hasValues() bool
Checks if the object has values.
inherited
isAs<T extends FhirBase>() → T?
Returns an Object cast as a Type if it is that type.
inherited
isEmpty() bool
Checks if the object is empty.
override
listChildrenNames() List<String>
Lists the JSON keys for the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prettyPrint() String
Converts the object to a pretty JSON string.
inherited
removeExtension(String url) → void
Method to remove an extension by url.
inherited
removeModifierExtension(String url) → void
Removes modifier extensions by URL
toJson() Map<String, dynamic>
Converts the object to a JSON representation.
override
toJsonString() String
Converts the object to a JSON string.
inherited
toString() String
A string representation of this object.
inherited
toYaml() String
Converts the object to a YAML string.
inherited

Operators

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

Static Methods

fromJsonString(String source) BackboneElement
Factory constructor for BackboneElement that takes in a String Convenience method to avoid the json Encoding/Decoding normally required to get data from a String
fromYaml(dynamic yaml) BackboneElement
Factory constructor for BackboneElement that takes in a dynamic
override