def is_base_datatype(datatype, version=None):
    """
    Check if the given datatype is a base datatype of the specified version

    :type datatype: ``str``
    :param datatype: the datatype (e.g. ST)

    :type version: ``str``
    :param version: the HL7 version (e.g. 2.5)

    :return: ``True`` if it is a base datatype, ``False`` otherwise

    >>> is_base_datatype('ST')
    True
    >>> is_base_datatype('CE')
    False
    """
    if version is None:
        version = get_default_version()
    lib = load_library(version)
    return lib.is_base_datatype(datatype)
Check if the given datatype is a base datatype of the specified version

    :type datatype: ``str``
    :param datatype: the datatype (e.g. ST)

    :type version: ``str``
    :param version: the HL7 version (e.g. 2.5)

    :return: ``True`` if it is a base datatype, ``False`` otherwise

    >>> is_base_datatype('ST')
    True
    >>> is_base_datatype('CE')
    False