def get_item_dict(es):
    item_dict = {'LABEVENTS': es['D_LABITEMS'].df.loc[:, 'LABEL'].to_dict()}
    for entity_id in ['CHARTEVENTS', 'SURGERY_VITAL_SIGNS']:
        df = es['D_ITEMS'].df
        items = df[(df['LINKSTO'] == entity_id.lower())].loc[:, 'LABEL']
        item_dict[entity_id] = items.to_dict()
    return item_dict
def get_item_dict(es):
    item_dict = {'LABEVENTS': es['D_LABITEMS'].df.loc[:, 'LABEL'].to_dict()}
    for entity_id in ['CHARTEVENTS', 'SURGERY_VITAL_SIGNS']:
        df = es['D_ITEMS'].df
        items = df[(df['LINKSTO'] == entity_id.lower())].loc[:, 'LABEL']
        item_dict[entity_id] = items.to_dict()
    return item_dict