ValidationResult class

The answer to "is this code valid (in this value set)?".

Implemented types

Constructors

ValidationResult({String? system, ConceptDefinition? definition, String? display, ValidationSeverity? severity, String? message, TerminologyServiceErrorClass? errorClass, String? txLink})
A result.
ValidationResult.error({required String? message, TerminologyServiceErrorClass? errorClass})
An error.
ValidationResult.success({String? system, ConceptDefinition? definition, String? message, String? txLink})
A success.

Properties

definition ↔ ConceptDefinition?
The concept the code resolved to, when a code system defined it.
getter/setter pair
display ↔ String?
The display the code system gives the code.
getter/setter pair
errorClass ↔ TerminologyServiceErrorClass?
Why the service could not answer, when it could not.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isOk → bool
Whether the validation result is acceptable.
no setteroverride
message ↔ String?
What was found.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity ↔ ValidationSeverity?
How loud.
getter/setter pair
system ↔ String?
The code system.
getter/setter pair
The terminology server transaction, when one was used.
getter/setter pair

Methods

asCoding() → CodingValue?
The validated code as a Coding, when it resolved.
asConceptDefinition() → ConceptDefinition?
The resolved concept.
getCode() → String?
The resolved concept's code.
getDefinition() → String?
The resolved concept's definition text.
getDisplay() → String?
The resolved concept's display.
isNoService() → bool
Whether the failure was the absence of a terminology service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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