import json


def icd_treatment(icd_list):
    """ Returns treatment plan for every icd10 code.

    Args:
        icd_list (list of strings): list of icd10 codes.

    Returns:
        dict: {'ICD-10 code': ['treatment', 'plan']}.
    """

    procedures = json.load(open("data/203.json", 'r'))
    procedures_dict = {}
    for i in icd_list:
        try:
            values = [value for key, value in procedures.items() if i in key]
            procedures_dict[i] = values[0]
        except:
            continue
    return procedures_dict