Skip to content

Commit

Permalink
wts2-1565/e4g-39/GXD HT: Missing PMIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
leemdi committed Oct 23, 2024
1 parent 0695dc1 commit cfdcace
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PubMedAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class PubMedReference:
def __init__ (self, errorMessage = None):
self.pubMedID = None
self.doiID = None
self.pmcID = None
self.title = None
self.authors = None
self.journal = None
Expand Down Expand Up @@ -114,6 +115,10 @@ def setDoiID(self, doiID):
self.doiID = doiID
def getDoiID(self):
return self.doiID
def setPmcID(self, pmcID):
self.pmcID = pmcID
def getPmcID(self):
return self.pmcID
def setTitle(self, title):
self.title = title
def getTitle(self):
Expand Down Expand Up @@ -357,6 +362,9 @@ def getReferenceInfo(self, pubMedID):
if line.startswith('PMID'):
pubMedRef.setPubMedID(value)

elif line.startswith('PMC '):
pubMedRef.setPmcID(value)

elif line.startswith('TI'):
isTI = 1
tiList.append(value)
Expand Down

0 comments on commit cfdcace

Please sign in to comment.