There are various ways of referring to a patient's medical history, and including some of the data on part of their body, in case of an accident.

medical ID tag

[wikipedia]

medical tattoos

[wikipedia]

online information

Rather than trying to store all possible data on the patient, you can store the data on a website, and reference the website + patient-ID on someone's body instead. Companies that perform this service: