예제 #1
0
def repeater_has_keyword(keyword):
    """Return True if the DICOM repeaters element
       exists with `keyword`."""
    repeater_keywords = [val[4] for val in RepeatersDictionary.values()]
    return (keyword in repeater_keywords)
예제 #2
0
def repeater_has_keyword(keyword):
    """Return True if the DICOM repeaters element
       exists with `keyword`."""
    repeater_keywords = [val[4] for val in RepeatersDictionary.values()]
    return (keyword in repeater_keywords)
예제 #3
0
    Parameters
    ----------
    tag : int
        The tag to check.

    Returns
    -------
    bool
        ``True`` if the tag is a non-private element tag present in the
        official DICOM repeaters data dictionary, ``False`` otherwise.
    """
    return (mask_match(tag) in RepeatersDictionary)


REPEATER_KEYWORDS = [val[4] for val in RepeatersDictionary.values()]


def repeater_has_keyword(keyword):
    """Return ``True`` if `keyword` is in the DICOM repeaters data dictionary.

    Parameters
    ----------
    keyword : str
        The keyword to check.

    Returns
    -------
    bool
        ``True`` if the keyword corresponding to an element present in the
        official DICOM repeaters data dictionary, ``False`` otherwise.