Package org.projecthusky.common.model
Class Code
java.lang.Object
org.projecthusky.common.basetypes.CodeBaseType
org.projecthusky.common.model.Code
- All Implemented Interfaces:
Serializable
The class Code contains all necessary fields for a coded element. 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.CodeBaseType
CodeBaseType.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionCode()
Instantiates a new code.Instantiates a new instance from the given information.Instantiates a new instance from the given information.Code
(CodeBaseType baseType) Instantiates a new instance from the given base type.Code
(NullFlavor nf) Instantiates a new instance from the given null flavor.Code
(ValueSetEnumInterface enumValue) Instantiates a new code based on an enum value.Instantiates a new instance from the given HL7 CDA R2 data type.Instantiates a new instance from the given HL7 CDA R2 data type.Instantiates a new instance from the given HL7 CDA R2 data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeBaseType
createCodeBaseType
(CD hl7CdaR2Value) Creates the base type from the given HL7 CDA R2 value.static CD
createHl7CdaR2Cd
(CodeBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static CE
createHl7CdaR2Ce
(CodeBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static CS
createHl7CdaR2Cs
(CodeBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.Gets the HL7 CDA R2 data type from the current instance.Gets the HL7 CDA R2 data type from the current instance.Gets the HL7 CDA R2 data type from the current instance.void
set
(CodeBaseType 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.CodeBaseType
addCodeTranslation, addDisplayNameTranslation, addDisplayNameTranslation, builder, clearCodeTranslationList, clearDisplayNameTranslationList, contains, contains, equals, getCode, getCodeSystem, getCodeSystemName, getCodeSystemVersion, getCodeTranslationList, getDisplayName, getDisplayNameTranslationList, getNullFlavor, getOriginalText, hashCode, isNullFlavor, setCode, setCodeSystem, setCodeSystemName, setCodeSystemVersion, setCodeTranslationList, setDisplayName, setDisplayNameTranslationList, setNullFlavor, setOriginalText, toString
-
Constructor Details
-
Code
public Code()Instantiates a new code. Default constructor. -
Code
Instantiates a new instance from the given base type.- Parameters:
baseType
- the base type
-
Code
Instantiates a new instance from the given information.- Parameters:
code
- the codecodeSystem
- the code Systemdisplay
- the display name
-
Code
Instantiates a new instance from the given information.- Parameters:
code
- the codecodeSystem
- the code Systemdisplay
- the display name
-
Code
Instantiates a new instance from the given null flavor.- Parameters:
nf
- the null flavor
-
Code
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Code
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Code
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Code
Instantiates a new code based on an enum value.- Parameters:
enumValue
- the enum value
-
-
Method Details
-
createCodeBaseType
Creates the base type from the given HL7 CDA R2 value.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 value- Returns:
- the base type
-
createHl7CdaR2Cd
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
-
createHl7CdaR2Ce
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
-
createHl7CdaR2Cs
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
-
getHl7CdaR2Cd
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
getHl7CdaR2Ce
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
getHl7CdaR2Cs
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
-