How a packet is read
There are seven steps and all of them run on your computer. Each step is a rule you can read here, and each rule can be wrong in ways this page names.
A PDF made by an EHR or a lab already carries its text, and Priorfolio uses it as it is. A faxed or scanned page is a picture. Priorfolio renders it at about 200 dots per inch and reads it with Tesseract, an open-source reader that runs inside the browser. Every scanned page gets a confidence figure, and any page under 70% is listed under “Check these first”.
A new document begins at a fax cover, at “Page 1 of N”, at a title such as Discharge Summary, or where the letterhead, the patient name or the date of service changes. A page marked “Page 2 of 3”, or one that begins in the middle of a sentence, stays with the page before it.
Priorfolio knows twenty-seven kinds of document, from echo reports to consent forms. It tells them apart by their titles and by words that only that kind of document uses. Cover sheets, face sheets and consents are filed as paperwork and kept out of the timeline unless you ask to see them.
A labeled date is used first: date of service, date collected, discharge date, study date. If the document has none, Priorfolio takes the first date in the page header, and after that the date that appears most often in the text. It never uses a date of birth, a print stamp or a fax time. Next to every date you can see how it was chosen, so a guess looks like a guess.
Fax headers, page counts and print stamps are stripped off first. The pages are then compared by overlapping runs of four words, and a page that closely matches an earlier one is marked as its repeat. Two lab reports with the same layout and different results do not match, because the results are part of what is compared.
Diagnoses, study names and specialty words are counted for each system, and a document gets up to three tabs. The systems are cardiac, GI and liver, psychiatric, renal, pulmonary, endocrine, neurologic, musculoskeletal and pain, blood and cancer, infectious, urologic and obstetric, and rheumatologic.
Priorfolio recognizes about 330 drugs with dose and frequency, 50 lab tests, and measures written in sentences, such as ejection fraction, QTc, PHQ-9 and blood pressure. Each one is stored as a stretch of text on a line on a page. Statements such as “denies” or “ruled out”, and anything under family history, are recognized and kept out of the list of diagnoses.
The lens is applied when you look at the packet. Reading the packet does not depend on it, so you can switch lenses instantly and nothing is read again. Each one is published in full on the Lenses page.
What it leaves to you. Priorfolio does not offer a diagnosis, reconcile a medication list, or decide which of two conflicting notes is right. It shows you both notes with their pages. The rest is on What it gets wrong.