Identity Document

This data model extracts key information from various government-issued identity documents like driver's licenses, passports, state ID cards, and residency permits. It identifies essential details about the document holder, such as their name, date of birth, and address, as well as crucial document identifiers like the document number, type, issuing authority, and validity dates (issue and expiry). This allows for automated capture and verification of identity information presented in these standard document formats.

Field nameTypeDescription
document_typestringThe specific type of identity document. Possible values include: drivers_license, non_driver_id_card, passport, passport_card, permanent_resident_card, temporary_resident_permit, national_id_card, military_id, tribal_id, voter_id, other_government_issued_id.
document_numberstringThe primary unique identifier number of the identity document.
issuing_countrystringThe country that issued the identity document, preferably as a 3-letter ISO 3166-1 alpha-3 code (e.g., USA, CAN, MEX).
issuing_authoritystringThe specific agency or authority that issued the document (e.g., California DMV, U.S. Department of State, USCIS).
last_namestringThe surname or family name of the document holder.
first_namestringThe given name or first name of the document holder.
middle_namestringThe middle name(s) or initial(s) of the document holder.
date_of_birthstringThe date of birth of the document holder in YYYY-MM-DD format.
sexstringThe sex or gender of the document holder as indicated on the document (e.g., M, F, X).
addressstringThe full residential address listed on the document.
date_of_issuestringThe date the document was issued in YYYY-MM-DD format.
date_of_expirystringThe date the document expires in YYYY-MM-DD format.

Field Notes

  • Dates: All dates (date_of_birth, date_of_issue, date_of_expiry) are extracted in the standard ISO 8601 format: YYYY-MM-DD.
  • Country Code: For issuing_country, the 3-letter ISO 3166-1 alpha-3 country code is used whenever possible (e.g., USA, CAN, GBR, MEX).
  • Document Type: The document_type field has one of the allowed values: drivers_license, non_driver_id_card, passport, passport_card, permanent_resident_card, temporary_resident_permit, national_id_card, military_id, tribal_id, voter_id, other_government_issued_id.
  • Address: The full address found on the document is combined into a single string for the address field.
  • Names: first_name, middle_name, and last_name are distinguished based on the document's labels or common formatting conventions. If a middle name or initial is not present, the middle_name field should be null or omitted.