Package org.projecthusky.common.model
Class Identificator
java.lang.Object
org.projecthusky.common.basetypes.IdentificatorBaseType
org.projecthusky.common.model.Identificator
- All Implemented Interfaces:
Serializable
The class Identificator contains all necessary fields for an id. This class also provides mapping methods to other
data types.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projecthusky.common.basetypes.IdentificatorBaseType
IdentificatorBaseType.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new identificator.Identificator
(String root) Instantiates a new instance from the given root.Identificator
(String root, String extension) Instantiates a new instance from the given root and extension.Identificator
(org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable id) Identificator
(IdentificatorBaseType baseType) Instantiates a new instance from the given base type.Identificator
(II hl7CdaR2Value) Instantiates a new instance from the given HL7 CDA R2 data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic II
createHl7CdaR2Ii
(IdentificatorBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static IdentificatorBaseType
createIdentificatorBaseType
(II hl7CdaR2Value) Creates the base type from the given HL7 CDA R2 value.Gets the HL7 CDA R2 data type from the current instance.static Identificator
getIdentificator
(List<II> iiList, String root) Gets the identificator with the given root id from a list of ids.static List<Identificator>
getIdentificatorList
(List<II> iiList) Gets a list of identificators from a list of ids.void
set
(IdentificatorBaseType baseType) Sets the fields of the current instance by the given base type.void
Sets the fields of the current instance by the given HL7 CDA R2 data type.Methods inherited from class org.projecthusky.common.basetypes.IdentificatorBaseType
builder, equals, getAssigningAuthorityName, getExtension, getNullFlavor, getRoot, hashCode, isDisplayable, isNullFlavor, setAssigningAuthorityName, setDisplayable, setExtension, setNullFlavor, setRoot, toString
-
Constructor Details
-
Identificator
public Identificator()Instantiates a new identificator. Default constructor. -
Identificator
Instantiates a new instance from the given base type.- Parameters:
baseType
- the base type
-
Identificator
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Identificator
Instantiates a new instance from the given root.- Parameters:
root
- the root
-
Identificator
Instantiates a new instance from the given root and extension.- Parameters:
root
- the rootextension
- the extension
-
Identificator
public Identificator(org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable id)
-
-
Method Details
-
createHl7CdaR2Ii
Creates the HL7 CDA R2 data type from the given base type.- Parameters:
baseType
- the base type- Returns:
- the HL7 CDA R2 data typed value
-
createIdentificatorBaseType
Creates the base type from the given HL7 CDA R2 value.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 value- Returns:
- the base type
-
getIdentificator
Gets the identificator with the given root id from a list of ids.- Parameters:
iiList
- ii listroot
- root- Returns:
- the identificator
-
getIdentificatorList
Gets a list of identificators from a list of ids.- Parameters:
iiList
- ii list- Returns:
- the list of identificator
-
getHl7CdaR2Ii
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
set
Sets the fields of the current instance by the given base type.- Parameters:
baseType
- the base type
-
set
Sets the fields of the current instance by the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data typed value
-