Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save porteusconf/a382a82de39aff13bb05663624c4be5b to your computer and use it in GitHub Desktop.
Save porteusconf/a382a82de39aff13bb05663624c4be5b to your computer and use it in GitHub Desktop.
Vcard to. print as qrcode on wearable bracelet/pendant to display as a contact on 1st responders phone emergency contact and medical alert info on allergies of the wearer
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//Mac OS X 10.14.6//EN
N:;;;;
FN:Emergency Medical info and contacts for John Anyone Doe
ORG:Please delete this contact after the emergency;
EMAIL;type=INTERNET;type=HOME;type=pref:emergency-contact-info
TEL;type=MAIN;type=pref:1-800-MY-APPLE
item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States
item1.X-ABADR:us
item2.URL;type=pref:http://johndoe.github.io/randomized-private-url
item2.X-ABLabel:_$!<HomePage>!$_
X-ABShowAs:COMPANY
UID:555669d5-cbb1-4d62-81fa-fdd20629b6b5
X-ABUID:E2664EFB-5531-468C-ACC7-789EB1EF141D:ABPerson
END:VCARD
@porteusconf
Copy link
Author

People with allergies or other medical conditions can buy a wearable Medical Identification Tag As wikipedia explains, tags can have a qrcode that a first-responder can scan, where the qrcode typically calls a 24/7 service, or opens a website with medical details and emergency contacts, etc. Drawbacks are:

  • qrcode may provide no info if no cell-phone signal or no internet, like if you were injured while in rural area or large park/wilderness
  • a monthly fee may be charged for the service(s) needed by the qrcode

However, a no-cost solution might be to wear a qrcode that contains contact info, in the form of a Vcard (*.vcf) file. Such a qrcode would display info found on a typical business-card. We could repurpose that info to provide medical info to any first-responder or other medical personel without the need for any internet nor cell-phone signal. Upon scanning the tag with any phone, the Vcard info immediately appears as a new Contact on any phone, tablet, or even laptop with webcam/qrcode-scanner.

This is just some hacking to try to figure out best and most universal way to repurpose some of the fields in the Vcard to provide things like: Allergy info, emergency contacts, any other info needed by medical personel. The qrcode of that Vcard would be on wearable tag.

The qrcode could be basic and static, and a URL in the Vcard could go to a private random URL with details that would not fit on the vcard, and/or may need occasional updating.

@porteusconf
Copy link
Author

Some ideas to perhaps add security...

  • a short password for the URL could be in png logo, and the first random URL would simply say something like. "use the password in the contact-card logo" to access medical info at some other site. That other site might be a health service with your info, or might be a free website like github.io. I'll try to put up a github.io site that does this.
  • And also a message to the vcard asking those medical people with it on their phone to delete after they don't need it, i.e. after emergency is over. Who do you trust more with that info: medical folks or a company providing website/24-7 service?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment