BTW, you still haven’t explained how the rent-a-nurse at CVS knows you got hit by a car two weeks later.
A) She or he is not a “rent-a-nurse”. Each state has their own requirements, but most states require an actual RN and/or pharmacist on duty supervising the pharmacy techs, regardless of who’s authorized to give vaccines.
B) The nurse giving the shot doesn’t. The emergency room doctors providing your care look up medical records. Failing that, the doctor/medical examiner performing the medical examination following your death will check your medical history to inform a complete picture of what happened leading to your death.