|
@@ -78,7 +78,7 @@ def getDicom(ofb,row,zipDir,rawDir,im,imageSelector,\
|
|
|
|
|
|
return True
|
|
|
|
|
|
-def updateRow(project,dataset,row,imageResampledField,gzFileNames,\
|
|
|
+def updateRow(db,project,dataset,row,imageResampledField,gzFileNames,\
|
|
|
participantField='PatientId'):
|
|
|
row['patientCode']=getPatientLabel(row,participantField)
|
|
|
row['visitCode']=getVisitLabel(row)
|
|
@@ -170,7 +170,7 @@ def main(parameterFile):
|
|
|
|
|
|
if all(remoteFilePresent):
|
|
|
print("Entry for row done.")
|
|
|
- updateRow(project,dataset,row,imageResampledField,\
|
|
|
+ updateRow(db,project,dataset,row,imageResampledField,\
|
|
|
gzFileNames,participantField)
|
|
|
continue
|
|
|
|
|
@@ -233,7 +233,7 @@ def main(parameterFile):
|
|
|
|
|
|
|
|
|
#update row and let it know where the processed files are
|
|
|
- updateRow(project,dataset,row,imageResampledField,gzFileNames,\
|
|
|
+ updateRow(db,project,dataset,row,imageResampledField,gzFileNames,\
|
|
|
participantField)
|
|
|
|
|
|
|