put cal records at the end of the patientData array, and don't check them in is_different