pacsretrieve/pacsretrieve.py
def entry_reprocessForKey(self, *args, **kwargs):
        """
        Reprocess a key/entry for special handling
        """
        str_ret     = "notReprocessed"
        d_entry     = {}
        str_key     = ""

        for k,v in kwargs.items():
            if k == 'entry':    d_entry     = v
            if k == 'key':      str_key     = v

        if str_key == 'PatientAge':
            # Here, we calculate the PatientAge from the difference
            # between the ScanDate and the PatientBirthDate
            str_scanDate    = d_entry['StudyDate']['value']
            str_birthDate   = d_entry['PatientBirthDate']['value']
            str_ret         = self.ageCalc(str_birthDate, str_scanDate)

        return str_ret

        Reprocess a key/entry for special handling
        
Reprocess a key/entry for special handling
Reprocess a key / entry for special handling
def entry_reprocessForKey(self, *args, **kwargs):
        str_ret     = "notReprocessed"
        d_entry     = {}
        str_key     = ""
        for k,v in kwargs.items():
            if k == 'entry':    d_entry     = v
            if k == 'key':      str_key     = v
        if str_key == 'PatientAge':
            str_scanDate    = d_entry['StudyDate']['value']
            str_birthDate   = d_entry['PatientBirthDate']['value']
            str_ret         = self.ageCalc(str_birthDate, str_scanDate)
        return str_ret
def entry_reprocessForKey ( self , * args , ** kwargs ) : str_ret = "notReprocessed" d_entry = { } str_key = "" for k , v in kwargs . items ( ) : if k == 'entry' : d_entry = v if k == 'key' : str_key = v if str_key == 'PatientAge' : str_scanDate = d_entry [ 'StudyDate' ] [ 'value' ] str_birthDate = d_entry [ 'PatientBirthDate' ] [ 'value' ] str_ret = self . ageCalc ( str_birthDate , str_scanDate ) return str_ret
Reprocess a key/entry for special handling
Reprocess a key / entry for special handling
"""
        Reprocess a key/entry for special handling
        """ # Here, we calculate the PatientAge from the difference # between the ScanDate and the PatientBirthDate
self