Skip to content

7AC/covidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

covidator

covidator is a tool to validate COVID test results.

Setup

Install pdftotext.

Create the list of expected patients in patients.txt as follows:

covidator $ cat patients.txt 
Jane Appleseed
Johnny Appleseed

Dump the test results in a directory called results as follows (file names don't matter):

covidator $ ls results/
test-result-2.pdf test-result.pdf

Sample runs

Person missing test

covidator $ python3 ./covidator.py 
Found a valid test result for Jane Appleseed in test-result-2.pdf

The following patients are missing test results:
 * Johnny Appleseed

All negative

covidator $ python3 ./covidator.py 
Found a valid test result for Jane Appleseed in test-result.pdf
Found a valid test result for Johnny Appleseed in test-result-2.pdf

All 2 patients have been tested

Invalid results

Those could be positive results, results outside the testing window, etc.

covidator $ python3 ./covidator.py 
No valid test results in test-result.pdf
No valid test results in test-result-2.pdf

The following patients are missing test results:
 * Jane Appleseed
 * Johnny Appleseed

About

Validate COVID test results against a list of patients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages