Icon

KNIME_​PSA_​Closest_​Not_​Later_​Than 2

Patient Diagnosis DatePatient Test DatesPatients with Diag Date andTest Date.Done it as an outer join in case there are patients forwhom there is noTest Date showingGet Difference in daysbetween test date anddiagnosis dateBase column: test dateCompare diff to: diag dateI've done the test this way round soPOSITIVE difference means test was BEFORE diagnosisFilter out any negativeday differencesFor each patient,get row with MAXIMUMtest datePatients with ID,Diagnosis DateLast Test ON OR BEFOREDiagnosis DateOuter join to ensure allpatients appear even ifno test date is shownJoin back to test resultsfor the patient on the giventest date, to pick up the test valuesTable Creator Table Creator Joiner Date&TimeDifference Row Filter GroupBy Joiner Joiner Patient Diagnosis DatePatient Test DatesPatients with Diag Date andTest Date.Done it as an outer join in case there are patients forwhom there is noTest Date showingGet Difference in daysbetween test date anddiagnosis dateBase column: test dateCompare diff to: diag dateI've done the test this way round soPOSITIVE difference means test was BEFORE diagnosisFilter out any negativeday differencesFor each patient,get row with MAXIMUMtest datePatients with ID,Diagnosis DateLast Test ON OR BEFOREDiagnosis DateOuter join to ensure allpatients appear even ifno test date is shownJoin back to test resultsfor the patient on the giventest date, to pick up the test valuesTable Creator Table Creator Joiner Date&TimeDifference Row Filter GroupBy Joiner Joiner

Nodes

Extensions

Links