def get_drug_dcid(row):
    """Returns dcid of a drug.

    If the ChEMBL ID of the drug was not found, then a new dcid for the drug is
    created based on the pharmGKB id.
    """

    if row['ChEMBL ID']:
        return 'bio/' + row['ChEMBL ID']
    return 'bio/' + row['PharmGKB Accession Id']