Class CodedValueFactory
- java.lang.Object
-
- org.somda.sdc.biceps.model.participant.factory.CodedValueFactory
-
public class CodedValueFactory extends Object
Convenience factory to create coded values.
-
-
Constructor Summary
Constructors Constructor Description CodedValueFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodedValuecreateCodedValue(String codingSystem, String codingSystemVersion, String code)Creates a coded value.static CodedValuecreateCodedValue(String codingSystem, String codingSystemVersion, String code, String symbolicCodeName)Creates a coded value.static CodedValuecreateIeeeCodedValue(String code)Creates a coded value from the IEEE nomenclature.static CodedValuecreateIeeeCodedValue(String code, String symbolicCodeName)Creates a coded value from the IEEE nomenclature.
-
-
-
Method Detail
-
createIeeeCodedValue
public static CodedValue createIeeeCodedValue(String code)
Creates a coded value from the IEEE nomenclature.The given code is not verified against compliance with IEEE nomenclature.
- Parameters:
code- the code to use.- Returns:
- a new instance.
-
createIeeeCodedValue
public static CodedValue createIeeeCodedValue(String code, @Nullable String symbolicCodeName)
Creates a coded value from the IEEE nomenclature.The given code is not verified against compliance with IEEE nomenclature.
- Parameters:
code- the code to use.symbolicCodeName- an optional symbolic code name (null if unknown).- Returns:
- a new instance.
-
createCodedValue
public static CodedValue createCodedValue(@Nullable String codingSystem, @Nullable String codingSystemVersion, @Nullable String code)
Creates a coded value.- Parameters:
codingSystem- the coding system to use or null if based on IEEE nomenclature.codingSystemVersion- an optional coding system version.code- the code.- Returns:
- a new instance.
-
createCodedValue
public static CodedValue createCodedValue(@Nullable String codingSystem, @Nullable String codingSystemVersion, @Nullable String code, @Nullable String symbolicCodeName)
Creates a coded value.- Parameters:
codingSystem- the coding system to use or null if based on IEEE nomenclature.codingSystemVersion- an optional coding system version (null if unknown).code- the code.symbolicCodeName- an optional symbolic code name (null if unknown).- Returns:
- a new instance.
-
-