@staticmethod
def get_structure_name_and_type(rt_struct_ds):
    """Stripped down version of dicompylercore.dicomparser.GetStructures"""
    structures = {}
    if 'StructureSetROISequence' in rt_struct_ds:
        for item in rt_struct_ds.StructureSetROISequence:
            data = {}
            number = int(item.ROINumber)
            data['id'] = number
            data['name'] = item.ROIName
            structures[number] = data
    if 'RTROIObservationsSequence' in rt_struct_ds:
        for item in rt_struct_ds.RTROIObservationsSequence:
            number = item.ReferencedROINumber
            if number in structures:
                structures[number]['type'] = item.RTROIInterpretedType
    return structures
