Class CodedValueFactory


  • public class CodedValueFactory
    extends Object
    Convenience factory to create coded values.
    • Constructor Detail

      • CodedValueFactory

        public CodedValueFactory()
    • 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.