ValidationOptions class
A class representing validation options for FHIR validation processes.
Constructors
- ValidationOptions.new({FhirPublication fhirVersion = FhirPublication.r4})
- Constructs validation options with a default FHIR version.
- ValidationOptions.defaults()
-
Creates a default instance of validation options.
factory
- ValidationOptions.withLanguage(FhirPublication fhirVersion, String language)
- Constructs validation options with a specified language.
Properties
- activeOnly ↔ bool
-
Enables active-only validation.
getter/setter pair
- displayWarningMode ↔ bool
-
Enables display warning mode during validation.
getter/setter pair
- englishOk ↔ bool
-
Allows English as an acceptable language.
getter/setter pair
- exampleOK ↔ bool
-
Indicates if example resources are acceptable.
getter/setter pair
- fhirVersion ↔ FhirPublication
-
The FHIR version for validation.
getter/setter pair
- guessSystem ↔ bool
-
Indicates whether to guess the system for a code.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- langs ↔ AcceptLanguageHeader?
-
The accepted language header for validation.
getter/setter pair
- membershipOnly ↔ bool
-
Indicates whether to validate membership only.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useClient ↔ bool
-
Determines whether to use a client for validation.
getter/setter pair
- useServer ↔ bool
-
Determines whether to use a server for validation.
getter/setter pair
- useValueSetDisplays ↔ bool
-
Determines whether to use ValueSet displays during validation.
getter/setter pair
- versionFlexible ↔ bool
-
Indicates whether version flexibility is allowed.
getter/setter pair
- vsAsUrl ↔ bool
-
Indicates whether to use ValueSet URLs directly.
getter/setter pair
Methods
-
addLanguage(
String language) → ValidationOptions - Adds a language to the accepted language header.
-
getFhirVersion(
) → FhirPublication - Retrieves the FHIR version for validation.
-
getLanguages(
) → AcceptLanguageHeader? - Retrieves the accepted language header.
-
hasLanguages(
) → bool - Checks whether languages are specified.
-
isGuessSystem(
) → bool - Returns if the guess system is enabled.
-
isUseClient(
) → bool - Returns if useClient is enabled.
-
isUseServer(
) → bool - Returns if useServer is enabled.
-
langSummary(
) → String - Provides a summary of the accepted language header.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setActiveOnly(
bool value) → ValidationOptions - Sets whether to enable active-only validation.
-
setCheckValueSetOnly(
) → ValidationOptions - Sets membership-only validation.
-
setDisplayWarningMode(
bool value) → ValidationOptions - Sets display warning mode.
-
setEnglishOk(
bool value) → ValidationOptions - Sets whether English is allowed as an acceptable language.
-
setExampleOK(
bool value) → ValidationOptions - Enables or disables example resources.
-
setGuessSystem(
bool value) → ValidationOptions - Sets whether to guess the system for a code.
-
setLanguages(
String language) → ValidationOptions - Sets the accepted language header to a specified language.
-
setNoClient(
bool value) → ValidationOptions - Sets whether to use a client for validation.
-
setNoServer(
bool value) → ValidationOptions - Sets whether to use a server for validation.
-
setUseValueSetDisplays(
bool value) → ValidationOptions - Sets whether to use ValueSet displays during validation.
-
setVersionFlexible(
bool value) → ValidationOptions - Sets version flexibility.
-
setVsAsUrl(
bool value) → ValidationOptions - Sets whether to use ValueSet URLs directly.
-
toJson(
) → String - Converts the validation options to a JSON-like string.
-
toString(
) → String -
A string representation of this object.
inherited
-
withActiveOnly(
) → ValidationOptions - Returns a copy with active-only validation enabled.
-
withCheckValueSetOnly(
) → ValidationOptions - Returns a copy with membership-only validation enabled.
-
withEnglishOk(
bool value) → ValidationOptions - Returns a copy with English usage set to the specified value.
-
withExampleOK(
) → ValidationOptions - Enables example resources and returns the current instance.
-
withGuessSystem(
[bool value = true]) → ValidationOptions - Returns a copy with system guessing enabled or disabled.
-
withLanguage(
String language) → ValidationOptions - Returns a copy of the validation options with a specified language.
-
withNoClient(
) → ValidationOptions - Returns a copy with client usage disabled.
-
withNoServer(
) → ValidationOptions - Returns a copy with server usage disabled.
-
withUseValueSetDisplays(
bool useValueSetDisplays) → ValidationOptions - Returns a copy with ValueSet display usage enabled or disabled.
-
withVersionFlexible(
bool value) → ValidationOptions - Returns a copy with version flexibility set to the specified value.
-
withVsAsUrl(
) → ValidationOptions - Returns a copy with ValueSet URL usage enabled.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited