Class ValidationOptions
- java.lang.Object
-
- org.hl7.fhir.utilities.validation.ValidationOptions
-
- Direct Known Subclasses:
TerminologyServiceOptions
public class ValidationOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidationOptions()ValidationOptions(FhirPublication fhirVersion)ValidationOptions(FhirPublication fhirVersion, String language)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationOptionsaddLanguage(String language)ValidationOptionscopy()static ValidationOptionsdefaults()FhirPublicationgetFhirVersion()AcceptLanguageHeadergetLanguages()The language that the validation is in (for display name checking etc See also englishOKbooleangetVsAsUrl()Don't know what this doesbooleanhasLanguages()booleanisActiveOnly()booleanisDisplayWarningMode()booleanisEnglishOk()if the language is other than english, should the validator accept english as well?booleanisExampleOK()booleanisGuessSystem()True if this is called from a code context where there's no known code system (inferred from the value set)booleanisMembershipOnly()booleanisUseClient()True means that the validator will try to resolve the terminology request locally with the resources at hand There have been a few corner case code systems where the local code system from THO is wrongbooleanisUseServer()true (which is default) means that the validator will use the server if it needs to for this request (there's a few corner cases where you want to turn this off?)booleanisUseValueSetDisplays()see {link}booleanisVersionFlexible()Don't know exactly what this doesStringlangSummary()ValidationOptionssetActiveOnly(boolean activeOnly)ValidationOptionssetCheckValueSetOnly()ValidationOptionssetDisplayWarningMode(boolean displayWarningMode)ValidationOptionssetEnglishOk(boolean englishOk)ValidationOptionssetExampleOK(boolean exampleOK)ValidationOptionssetGuessSystem(boolean guessSystem)ValidationOptionssetLanguages(String language)ValidationOptionssetNoClient(boolean useClient)ValidationOptionssetNoServer(boolean useServer)ValidationOptionssetUseValueSetDisplays(boolean useValueSetDisplays)ValidationOptionssetVersionFlexible(boolean value)ValidationOptionssetVsAsUrl(boolean value)StringtoJson()ValidationOptionswithActiveOnly()ValidationOptionswithCheckValueSetOnly()Only for additional bindingsValidationOptionswithEnglishOk(boolean englishOk)ValidationOptionswithExampleOK()ValidationOptionswithGuessSystem()ValidationOptionswithGuessSystem(boolean value)ValidationOptionswithLanguage(String language)ValidationOptionswithNoClient()ValidationOptionswithNoServer()ValidationOptionswithUseValueSetDisplays(boolean useValueSetDisplays)ValidationOptionswithVersionFlexible(boolean value)ValidationOptionswithVsAsUrl()
-
-
-
Constructor Detail
-
ValidationOptions
public ValidationOptions()
-
ValidationOptions
public ValidationOptions(FhirPublication fhirVersion)
-
ValidationOptions
public ValidationOptions(FhirPublication fhirVersion, String language)
-
-
Method Detail
-
defaults
public static ValidationOptions defaults()
-
getLanguages
public AcceptLanguageHeader getLanguages()
The language that the validation is in (for display name checking etc See also englishOK- Returns:
-
hasLanguages
public boolean hasLanguages()
-
isUseServer
public boolean isUseServer()
true (which is default) means that the validator will use the server if it needs to for this request (there's a few corner cases where you want to turn this off?)- Returns:
-
isUseClient
public boolean isUseClient()
True means that the validator will try to resolve the terminology request locally with the resources at hand There have been a few corner case code systems where the local code system from THO is wrong- Returns:
-
isGuessSystem
public boolean isGuessSystem()
True if this is called from a code context where there's no known code system (inferred from the value set)- Returns:
-
isActiveOnly
public boolean isActiveOnly()
-
getVsAsUrl
public boolean getVsAsUrl()
Don't know what this does- Returns:
-
isVersionFlexible
public boolean isVersionFlexible()
Don't know exactly what this does- Returns:
-
isUseValueSetDisplays
public boolean isUseValueSetDisplays()
see {link}- Returns:
-
isMembershipOnly
public boolean isMembershipOnly()
-
isEnglishOk
public boolean isEnglishOk()
if the language is other than english, should the validator accept english as well?- Returns:
-
withLanguage
public ValidationOptions withLanguage(String language)
-
withNoServer
public ValidationOptions withNoServer()
-
withNoClient
public ValidationOptions withNoClient()
-
withGuessSystem
public ValidationOptions withGuessSystem()
-
withGuessSystem
public ValidationOptions withGuessSystem(boolean value)
-
withActiveOnly
public ValidationOptions withActiveOnly()
-
withCheckValueSetOnly
public ValidationOptions withCheckValueSetOnly()
Only for additional bindings
-
withVsAsUrl
public ValidationOptions withVsAsUrl()
-
withVersionFlexible
public ValidationOptions withVersionFlexible(boolean value)
-
withUseValueSetDisplays
public ValidationOptions withUseValueSetDisplays(boolean useValueSetDisplays)
-
withEnglishOk
public ValidationOptions withEnglishOk(boolean englishOk)
-
addLanguage
public ValidationOptions addLanguage(String language)
-
setLanguages
public ValidationOptions setLanguages(String language)
-
setNoServer
public ValidationOptions setNoServer(boolean useServer)
-
setNoClient
public ValidationOptions setNoClient(boolean useClient)
-
setGuessSystem
public ValidationOptions setGuessSystem(boolean guessSystem)
-
setActiveOnly
public ValidationOptions setActiveOnly(boolean activeOnly)
-
setCheckValueSetOnly
public ValidationOptions setCheckValueSetOnly()
-
setVsAsUrl
public ValidationOptions setVsAsUrl(boolean value)
-
setVersionFlexible
public ValidationOptions setVersionFlexible(boolean value)
-
setUseValueSetDisplays
public ValidationOptions setUseValueSetDisplays(boolean useValueSetDisplays)
-
setEnglishOk
public ValidationOptions setEnglishOk(boolean englishOk)
-
isDisplayWarningMode
public boolean isDisplayWarningMode()
-
setDisplayWarningMode
public ValidationOptions setDisplayWarningMode(boolean displayWarningMode)
-
isExampleOK
public boolean isExampleOK()
-
setExampleOK
public ValidationOptions setExampleOK(boolean exampleOK)
-
withExampleOK
public ValidationOptions withExampleOK()
-
copy
public ValidationOptions copy()
-
langSummary
public String langSummary()
-
getFhirVersion
public FhirPublication getFhirVersion()
-
-