FieldDefinition<T> class

FHIR specific metadata about the field

Constructors

FieldDefinition({required String name, required T? getValue(JsonObject), List<ValidateResource> customValidationRules = const [], Cardinality cardinality = Cardinality.singular, bool isSummary = false, bool isModifier = false, bool isReadOnly = false, int? min, int? max, String? regex, String? description, List<String> allowedStringValues = const []})
Creates a new instance of FieldDefinition.
const

Properties

allowedStringValues List<String>
A list of allowed string values.
final
cardinality Cardinality
Field Cardinality
final
customValidationRules List<ValidateResource>
A list of validation rules for the field.
final
description String?
A description of the field.
final
getValue → T? Function(JsonObject)
Returns the value of the field from the provided JsonObject.
final
hashCode int
The hash code for this object.
no setterinherited
isModifier bool
Indicates whether the field modifies the behavior of the resource.
final
isReadOnly bool
Indicates whether the field is read-only.
final
isSummary bool
Indicates whether the field is part of the resource summary.
final
max int?
The maximum cardinality of the field.
final
min int?
The minimum cardinality of the field.
final
name String
The name of the field.
final
regex String?
A regular expression pattern to validate the field value.
final
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(JsonValue value, {bool isUpdate = false}) List<ValidationError>
Validates the field value based on the defined validation rules.

Operators

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