Skip to content

Commit

Permalink
Prioritize accession number over specimen ID in CDPH records as reque…
Browse files Browse the repository at this point in the history
…sted.
  • Loading branch information
michael-weinstein committed Jul 21, 2020
1 parent bbfec81 commit d47fb61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions zymoTransmitSupport/inputOutput/caResultReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ def __init__(self, rawLine: [str, collections.Iterable], delimiter: str = "\t"):
self.resultCode,
self.unused
) = self.elementArray
if not self.specimenID:
self.specimenID = self.accession
if self.accession:
if self.specimenID:
holder = self.specimenID
self.specimenID = self.accession
self.accession = holder
else:
self.specimenID = self.accession
self.patientDateOfBirth = self.processDateAndTime(patientDateOfBirth, "")
self.collectionDateTime = self.processDateAndTime(collectionDate, "")
self.reportedDateTime = self.processDateAndTime(reportedDateAndTime, "")
Expand Down

0 comments on commit d47fb61

Please sign in to comment.