Class IdentificatorBaseType
java.lang.Object
org.projecthusky.common.basetypes.IdentificatorBaseType
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Identificator
An identifier that uniquely identifies a thing or object. Examples are object
identifier for HL7 RIM objects, medical record number, order id, service
catalog item id, Vehicle Identification Number (VIN), etc. Instance
identifiers are defined based on ISO object identifiers.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates builder to buildIdentificatorBaseType
.boolean
Checks whether the two objects are equal (based on their content).Gets the assigning authority name.Gets the extension.Gets the null flavor.getRoot()
Gets the OID or UUID of the domain.int
hashCode()
Hash code.Checks if is displayable.boolean
Checks if the current instance is null flavored.void
setAssigningAuthorityName
(String assigningAuthorityName) Sets the assigning authority name.void
setDisplayable
(Boolean displayable) Sets the displayable flag.void
setExtension
(String extension) Sets the extension.void
setNullFlavor
(NullFlavor nullFlavor) Sets the null flavor.void
Sets the root.toString()
Builds a string of the whole identificator.
-
Constructor Details
-
IdentificatorBaseType
public IdentificatorBaseType()Instantiates a new IdentificatorBaseType. Default constructor.
-
-
Method Details
-
builder
Creates builder to buildIdentificatorBaseType
.- Returns:
- created builder
-
equals
Checks whether the two objects are equal (based on their content). -
getAssigningAuthorityName
Gets the assigning authority name.- Returns:
- the assigning authority name
-
setAssigningAuthorityName
Sets the assigning authority name. See gettergetAssigningAuthorityName()
for more details.- Parameters:
assigningAuthorityName
- the new assigning authority name
-
getExtension
Gets the extension. A character string as a unique identifier within the scope of the identifier root.- Returns:
- the extension
-
setExtension
Sets the extension. See gettergetExtension()
for more details.- Parameters:
extension
- the new extension
-
getNullFlavor
Gets the null flavor.- Returns:
- the null flavor
-
getRoot
Gets the OID or UUID of the domain. A unique identifier that guarantees the global uniqueness of the instance identifier. The root alone may be the entire instance identifier (e.g. UUID without further definition by the extension).- Returns:
- the root
-
setRoot
Sets the root. See gettergetRoot()
for more details.- Parameters:
root
- the new root
-
hashCode
public int hashCode()Hash code. -
isDisplayable
Checks if is displayable. Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).- Returns:
- true, if is displayable
-
isNullFlavor
public boolean isNullFlavor()Checks if the current instance is null flavored.- Returns:
- true, if is null flavor
-
setNullFlavor
Sets the null flavor.- Parameters:
nullFlavor
- the new null flavor
-
setDisplayable
Sets the displayable flag. See getterisDisplayable()
for more details.- Parameters:
displayable
- the new displayable
-
toString
Builds a string of the whole identificator.
-