Datatypes
Class NullableBoolean

This data type represents a boolean value which may be unknown. In other words, this data type can represent Yes, No, and Unknown; unlike a traditional boolean which can only represent True and False. For this logical model, this class has been modeled in the HL7 V3 style, which has the advantage of being able to account for different kinds of "unknowns", but has the disadvantage of having two fields, one of which must always be populated while the other must always be empty. Implementers may choose to implement this class using a single field instead.

Attributes
NullFlavor nullFlavor nullFlavor

This property indicates why the value property is empty. It uses the NullFlavor enumeration. This property must be valued when the value property is empty, and must be empty when the value property is valued.

Boolean value value

This property contains either a True or a False (or Yes or No). If "unknown" is needed, this property will be empty, and the nullFlavor property will be valued.


Properties:

Alias
Classifier Behavior
Is Abstractfalse
Is Activefalse
Is Leaffalse
KeywordsBL
NameNullableBoolean
Name Expression
NamespaceDatatypes
Owned Template Signature
OwnerDatatypes
Owning Template Parameter
PackageDatatypes
Qualified NameFHIM::Datatypes::NullableBoolean
Representation
Stereotype
Template Parameter
VisibilityPublic

Attribute Details

 nullFlavor
Public NullFlavor nullFlavor

This property indicates why the value property is empty. It uses the NullFlavor enumeration. This property must be valued when the value property is empty, and must be empty when the value property is valued.

Constraints:
Properties:

AggregationNone
Alias
Association
Association End
Class«BL» NullableBoolean
Datatype
Default
Default Value
Is Compositefalse
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower0
Lower Value(0)
Multiplicity0..1
NamenullFlavor
Name Expression
Namespace«BL» NullableBoolean
Opposite
Owner«BL» NullableBoolean
Owning Association
Owning Template Parameter
Qualified NameFHIM::Datatypes::NullableBoolean::nullFlavor
Stereotype
Template Parameter
TypeNullFlavor
Upper1
Upper Value(1)
VisibilityPublic


 value
Public Boolean value

This property contains either a True or a False (or Yes or No). If "unknown" is needed, this property will be empty, and the nullFlavor property will be valued.

Constraints:
Properties:

AggregationNone
Alias
Association
Association End
Class«BL» NullableBoolean
Datatype
Default
Default Value
Is Compositefalse
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower0
Lower Value(0)
Multiplicity0..1
Namevalue
Name Expression
Namespace«BL» NullableBoolean
Opposite
Owner«BL» NullableBoolean
Owning Association
Owning Template Parameter
Qualified NameFHIM::Datatypes::NullableBoolean::value
Stereotype
Template Parameter
TypeBoolean
Upper1
Upper Value(1)
VisibilityPublic