Skip to main content

STALLYONS TECHNOLOGIES

Innovating the future of digital with AI, design, and technology. From AI to Web — Stallyons transforms your ideas into digital reality. Building smarter digital experiences through AI, innovation, and technology. Innovating the future of digital with AI, design, and technology. From AI to Web — Stallyons transforms your ideas into digital reality. Building smarter digital experiences through AI, innovation, and technology.
EN
background

Blog

Drug Test Collection
Record: Framer

Drug Test Collection Record: Framer

A collector runs a rapid urine drug screen with the next customer already waiting. At the end of it, there has to be a signed custody and control form, the CCF, and four people each need a copy: the laboratory, the collector, the employer, and the donor. The form is a legal and medical record, so if it is incomplete or unclear a result can be challenged later. The client, a US drug and alcohol testing company, had a form that worked but looked amateur and leaned on a slow, poorly maintained third-party system just to capture a signature.

Collection Record is a one-page collection form we built on Framer for that company, with the logic written in custom React code components. The donor and the collector sign on the company’s existing electronic signature pad, the specimen number is generated, scanned from a lab barcode, or typed, and the form records the test panel, the reason, and the results. One click produces the CCF as a PDF in four labelled copies. The project ran from February to May 2023, was tested on the client’s own testing computers over remote sessions, and was published on a separate domain so the company’s main website stayed untouched.

Put simply, a collector fills in the form, scans or types the specimen number, has both people sign on the pad, and prints four labelled copies of a professional CCF, with nothing kept on the site unless the client later chooses to store it.

The Starting Point: A Legal Record That Has to Be Right Every Time

Collectors work quickly, often with someone waiting, and a form that is wrong or unclear can get a result thrown out. That made the requirements strict, and each one had to survive a busy collection site.

  • Look professional to employers. The existing form worked but did not look the part, and employers are the people paying for the testing.
  • Capture signatures on the hardware pad. Every collection is signed on an electronic signature pad, and the only system that supported it was slow and unreliable.
  • Take the specimen number from three sources. On-site tests need a generated number, while lab-bound tests carry a pre-printed barcode label that has to override the generated one.
  • Report results in the correct language. A rapid screen can only say “non-negative”, never “positive”, along with whether the employer chose lab confirmation.
  • Produce four identical copies. The laboratory, collector, employer, and donor each need their own labelled copy, every time.
  • Treat the data as confidential. Results are sensitive health information, so storage had to be handled with care from the start.

The Build: Fill In, Scan, Sign, Print Four Copies

The collector’s path through the form is a genuine sequence, and making a browser page talk to a hardware signature pad and a barcode scanner reliably on the client’s own machines is the kind of problem Framer website development can carry when the logic lives in custom code rather than a template. A collection runs in a set order:

  1. The collector opens the form on a testing computer and enters the donor’s details and the donor’s company.
  2. They choose one test panel, 5, 7, 10, or 12, and one reason for the test.
  3. The specimen number is filled in automatically, but scanning a lab label with the barcode reader, or typing the label number, replaces it.
  4. The collector records the result: negative, or non-negative for the selected drugs, and whether the specimen goes to the lab for confirmation or is discarded.
  5. The donor and the collector each sign on the electronic signature pad, and the date and time are added next to each signature.
  6. Submitting produces the CCF as a PDF with the company and medical review officer details already filled in, printed as four copies labelled Laboratory, Collector, Employer, and Donor, then clearing the form readies it for the next donor.

The whole thing behaves less like a web page and more like a piece of software running on a counter, which is why we scoped it as web application development: single-choice controls that prevent conflicting entries, specimen-number modes that override cleanly, and a results section that enforces the correct wording rather than leaving it to the collector to remember.

Technical Architecture

The page is designed and hosted in Framer, on its own domain. The form logic runs in custom React code components: the single-choice controls, the specimen-number modes, the results, and the PDF generation in the browser. Signatures come from the signature pad’s web SDK, which reaches the pad through a Chrome extension installed on each testing computer. The hard part was not the fields. It was making the hardware, the browser, and the four-copy PDF work together reliably on the client’s own machines. Each layer has one job.

  • Input form. A one-page Framer layout with the company logo, built for a collector working quickly at a counter.
  • Form logic. React code components for single choices, specimen-number overrides, results, and validation.
  • Signatures. The signature pad’s web SDK, capturing the donor’s and collector’s signatures from the pad the client already owns.
  • Pad link. The pad vendor’s Chrome extension on each testing computer, which lets the browser reach the hardware.
  • Barcodes. The USB scanner read as keyboard input, so a scanned label drops straight into the specimen field.
  • Output. The CCF built in the browser as a PDF, with static company and officer details and four labelled copies, each on its own page.

The part that took the most care is the four-copy layout. Early PDFs put the footer in the wrong place and broke the pages badly after the first copy, so the layout was reworked until each copy prints on its own page with Laboratory, Collector, Employer, or Donor centred at the bottom, and the same record appears identically on all four.

Challenges Solved

Getting a hardware signature pad to work inside a web page was the central problem, because the pad needs its vendor’s browser extension to talk to the page at all. We worked with the vendor’s web SDK and tested over remote sessions while the client signed, until both signature boxes captured reliably, then gave the client a direct install link so each testing computer could add the same extension. Getting four copies right was the next, solved by reworking the page breaks and footers so each labelled copy stands alone.

Data flowing through to the PDF caught us in testing, when a scanned specimen number, the non-negative results, and the courier choice did not all reach the output; those were traced and fixed with the client confirming each one. Why secure record storage came next tells the real story: the first version made PDFs without keeping anything, which suited the client’s concern about health data, but when one early PDF showed the wrong donor’s details it could not be recreated, so the client asked us to quote storing every record, including signatures, as the next phase.

The Result

The form now ends every collection with a complete, signed CCF in four labelled copies before the donor leaves, printed from the company’s own hardware with no new equipment to buy. The specimen number comes from whichever of the three sources fits the test, results are reported in the language a rapid screen is allowed to use, and the PDF matches the standard custody and control form that laboratories and employers recognise at a glance. It lives on its own domain, so changes to the company’s main website never affect collections. Both milestones were paid, the client left a review, and secure record storage was quoted as the next phase.

It works because it was built around a real collection site, the hardware the staff already use and the exact form the industry expects, rather than a generic contact form. If you are building something like it, you can hire React developers who have wired browser code to signature pads and barcode scanners, or tell us how your collections run today and we will map them into a form your collectors can trust. It suits any healthcare or medical testing business that has to produce a signed, standard record at the point of care.

Frequently Asked Questions

What is Collection Record?

It is a one-page drug-test collection form built on Framer with custom React code components, made for a US drug and alcohol testing company. It captures signatures on the company’s electronic pad, records the panel, reason, and results, and produces a custody and control form as a PDF in four labelled copies.

How does it capture signatures from a hardware pad?

The donor and collector sign on the company’s existing electronic signature pad, which the browser reaches through the pad vendor’s Chrome extension and web SDK. The date and time are recorded next to each signature, and each testing computer uses the same extension through a direct install link.

Where does the specimen number come from?

From one of three sources. The form generates a number automatically for on-site tests, but scanning a pre-printed lab barcode with the USB scanner, or typing the label number, overrides the generated one for lab-bound tests, so the right number appears on every copy.

Why does the form say “non-negative” rather than “positive”?

A rapid screen cannot confirm a positive on its own, so results are reported as non-negative for the selected drugs, with lab confirmation left as the employer’s choice. Using the correct language protects the company if a result is ever disputed.

Are donor records stored on the site?

The first version produced PDFs without keeping records, which suited the client’s concern about confidential health data. Because an early PDF with wrong details could not be recreated, the client asked us to quote secure storage of every record, including signatures, as a following phase.

Leave a Reply