diff --git a/zymoTransmitSupport/inputOutput/caResultReader.py b/zymoTransmitSupport/inputOutput/caResultReader.py index 210eabd..da11e10 100644 --- a/zymoTransmitSupport/inputOutput/caResultReader.py +++ b/zymoTransmitSupport/inputOutput/caResultReader.py @@ -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, "")