def METHOD_NAME(self, document):
    text_refs = {}
    cit = document['citation']
    if 'pmid' in cit:
        text_refs['PMID'] = cit['pmid']
    if 'doi' in cit:
        text_refs['DOI'] = cit['doi']
    pmd = document['article']['PubmedData']
    for entry in pmd['ArticleIdList']:
        if entry['IdType'] == 'pubmed':
            text_refs['PMID'] = entry['id']
        elif entry['IdType'] == 'doi':
            text_refs['DOI'] = entry['id']
        elif entry['IdType'] == 'pii':
            text_refs['PII'] = entry['id']
        elif entry['IdType'] == 'pmc':
            text_refs['PMCID'] = entry['id']
    return text_refs