Jev directory
CommunityJev Cookbooks
Reading a Scanned Vaccination Record Cookbook
Official Jev cookbook that reads a scanned travel vaccination record with Noul, Box, and Choice questions, answers unreadable instead of guessing, then checks in a text-only request whether each dose still covers the trip.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- Uses a Noul, a Box, and a Choice question per vaccine row on the scan.
- Two requests read the scan; a third text-only request checks trip coverage.
- Answers unreadable when a date sits under a batch sticker instead of guessing.
- Cutoffs: 0.90 for reading review, 0.50 for legibility, 0.50 for dose coverage.
- Accepts PNG and JPEG up to 16 MiB with sides between 280 and 1568 pixels.
Questions about this entry
Short answers drawn from the linked project or page.
It asks a Noul question per vaccine (is it on the record?), a Box question per vaccine (where is its row?), and a Choice question per row (what year does the date say, or is it unreadable?).
Two requests read the scan, with each step's questions grouped into one request because all questions see the same image. A third, text-only request checks whether each dose still covers the trip.
The Choice question can answer unreadable. In the example the rabies date sits under a batch sticker, so Jev answers unreadable rather than guessing a year.
READ_CUTOFF is 0.90, below which a person checks the reading against the paper. LEGIBLE_CUTOFF is 0.50 for the legibility Noul, and IN_DATE_CUTOFF is 0.50 for a nurse to check dose coverage.
Jev accepts PNG and JPEG files up to 16 MiB, and each side must be between 280 and 1568 pixels, so a high-resolution scan should be scaled down before sending.
Yes. The code replays saved answers from a cache, so it runs as published without a key. To change a request, set TYPESAFE_API_KEY, for example in the Colab Secrets panel.
Install ipython, matplotlib, typesafe-sdk>=0.7.5,<0.8.0, and cooksafe>=0.3.0,<0.4.0. TYPESAFE_MODEL is jev-1.14.0, and image or Box requests need the TypeSafe-Danger-Zone-Images: true header.
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.