doc2json/jats2json/pmc_utils/front_tag_utils.py
def parse_pubmed_id_tag(front_tag) -> Optional[str]:
    """Not every PMC paper has a PMID """
    pmid_tag = front_tag.find('article-id', {'pub-id-type': 'pmid'})
    if pmid_tag is None:
        return None
    else:
        return pmid_tag.extract().text
Not every PMC paper has a PMID 
Not every PMC paper has a PMID
Not every PMC paper has a PMID
def parse_pubmed_id_tag(front_tag) -> Optional[str]:
    pmid_tag = front_tag.find('article-id', {'pub-id-type': 'pmid'})
    if pmid_tag is None:
        return None
    else:
        return pmid_tag.extract().text
def parse_pubmed_id_tag ( front_tag ) -> Optional [ str ] : pmid_tag = front_tag . find ( 'article-id' , { 'pub-id-type' : 'pmid' } ) if pmid_tag is None : return None else : return pmid_tag . extract ( ) . text
Not every PMC paper has a PMID
Not every PMC paper has a PMID
"""Not every PMC paper has a PMID """
front_tag