def writeEvaluationForm(self, out): out.write('LOCATIONS:\n') if self.source != 'trial_registry': for location in self.getLocations(): writeEvaluationElement(location, out) writeElementsMissing('locations', out)
def writeEvaluationForm(self, out): out.write('GENDER:\n\n') writeEvaluationElement(self.gender.value, out) out.write('AGE:\n\n') for type,av in self.ageInfo.ageValues.items(): avString = av.type+': '+str(av.value) if av.units != None: avString += ' '+av.units writeEvaluationElement(avString, out) writeElementsMissing('ages', out) out.write('CONDITIONS:\n\n') for template in self.conditionTemplates: writeEvaluationElement(template.name, out) writeElementsMissing('conditions', out) out.write('GROUPS:\n\n') for template in self.groupTemplates: writeEvaluationElement(template.name, out) gSize = template.getSize(maxSize=True) if gSize > 0: writeEvaluationElement('size: %d' % gSize, out, indentLevel=1) writeElementsMissing('groups', out)