Skip to main content

Blog Business applications

Case study · Pharma

Proof of delivery in pharma logistics: matched to the client, searchable in a portal

Published on
Updated on
Reading time
8 min

A pharma logistics provider's carriers each supply proofs of delivery in their own way. We built the software that collects them, assigns each to the right client and brings them into one portal, where clients with access now look up their documents themselves.

For a pharma logistics provider, we built the bespoke software that collects proofs of delivery from its carriers and sorts them for its clients, the pharma companies it ships for. Previously, a client that needed proofs of delivery asked by email. Staff at the logistics provider searched the internal system for them and emailed them back, or compiled them by month, including for earlier periods.

Why proofs of delivery are hard to keep in order

A proof of delivery (POD) is the carrier's record that a shipment has been delivered. The difficulty is that each of the logistics provider's carriers supplies it in its own way. One sends image files in archives, with an index file recording what each image belongs to; another sends PDFs. One carrier's PODs are collected straight from the carrier's own server. Another's come in through the logistics provider's own SFTP server, which also carries data from its warehouse management system (WMS). The reference used to match documents to a client also differs by carrier: one carrier's documents are traced to a client by carrier account number, another's by tracking number. And PODs turn up later than the shipment data.

One matching method per carrier

Rather than force every source into one format, we built a matching method for each carrier based on what its data allows. Each method runs as a background import service. The services write to a shared document store, which the portal reads from. Together with a transfer service for one client, described below, this is what we call the proof of delivery pipeline.

  • By carrier account number. For one carrier, the account-number import service collects the archives and converts each image listed in the index into a PDF. It identifies the client from a mapping table that assigns each carrier account number to a client.
  • By tracking number. For another carrier, the tracking-number import service pairs the PDFs with order data from the WMS, using the tracking number as the key.

None of this required changes to the WMS: matching relies on standard data it already provides.

Late arrivals and loose ends

Because PODs arrive late, the tracking-number import service keeps looking. It re-matches each batch of order data on every run for an adjustable number of days, and only then marks the batch as done. This means a document that turns up late still finds its order.

Loose ends stay visible. If the account-number import service finds no client for an account number, it files the document in a separate collection for unmatched cases rather than under a client. These cases can be reviewed. If the tracking-number import service finds no PDF for an order, it writes an error entry to its processing log. There is at most one log entry for each pairing of tracking number and order number; a second match for the same pairing is logged as an error.

One store, one portal

The logistics provider uses the portal internally and also gives its clients access as a self-service tool. Its staff use admin accounts to view all PODs; a client's account gives access only to that client's documents. Users browse by carrier, year and month and can view or download each POD, one PDF per order. They can also search by part of the document name and download a whole month as a ZIP archive. The name contains the tracking number, the date and the order or reference number.

Straight to the client's server

One client with several national subsidiaries has its PODs sent direct. The transfer service sends them by SFTP to the client's own server, split by subsidiary.

The WMS distinguishes the subsidiaries by client code. However, a carrier account number can cover more than one client code, so the account number alone cannot separate the subsidiaries' PODs. The transfer service therefore works from the order data in the WMS. Each order carries a client code and an order number, and the service looks for the POD with that order number in the client's area of the shared document store.

Late arrivals are handled here too. The service logs an order without a document as 'no proof of delivery' rather than dropping it. A separate run looks again within an adjustable look-back window and transfers the document once it is there.

We created a separate storage area for the transfer so that the portal's existing functions, particularly its search, stay unchanged.

What has changed

Clients with portal access search for their PODs themselves, for instance by order number or tracking number, and download them individually or as archives. They no longer need to ask by email. For clients without access, someone in customer service or key account management looks up the document in the portal, because everything is held there in one place and is easy to search. Clients that ask for PODs are given access, and new users keep being added. The first import service has been running since 2019, the portal since 2020.

In our view, returns, enquiries and complaints can be handled faster as a result, at least where the question is who took delivery: a search in the portal by the order or reference number, or by the carrier's tracking number, finds the POD.

The pipeline can support further carriers, as long as they can supply their PODs automatically in some form. To the portal, it makes no difference where a document comes from.

How we classify the software

Like all our specialist applications for the pharmaceutical industry, the proof of delivery pipeline is a non-GxP application. We do not promise validation. The pipeline is part of our pharma IT services; what that means for how we work is set out in our article on non-GxP in pharma.

Further reading

The documents below cover delivery, documentation, record keeping and computerised systems in the distribution of medicinal products. They point readers to the sources and make no statement about the software described in this case study.

Frequently asked questions

How does a project like this get started?
A carrier can be connected if it can supply its proofs of delivery automatically in some form. The shipment reference in the carrier's data, such as an account number or a tracking number, determines how its documents are matched to a client.
How is a new client added?
Depending on the matching method, the client needs either an entry in the mapping table or, if the client has several client codes, an adjustment to the matching. The table can be filled by import; the logistics provider maintains individual entries in an admin interface. It also uses the portal's admin interface to set up user accounts and assign them to the client.
Who does what day to day?
The import services run in the background and collect and match the documents themselves. If the account-number import service finds no client for an account number, the document goes into a separate collection for unmatched cases. Unmatched cases can be reviewed. If the tracking-number import service finds no PDF for an order, it writes an error entry to its processing log. The logistics provider manages user accounts in the admin interface, which also shows each account's last login.
How are clients kept apart in the portal?
Each client account is tied to one client. For every request, the portal limits listing, search, display and download to that client's area of the shared document store. Every requested file or folder is checked in one central place. Access is granted only if the resolved path points to that area or a location within it.
How long do documents stay in the portal?
That is not for us as the software developer to decide. The responsible company sets retention and deletion periods. The portal's retention period can be configured to meet that company's requirements.

Are your proofs of delivery still sitting in a shared folder?

Tell us about your sources, formats and clients. You will get an honest first assessment of what a reliable proof of delivery workflow would take in your case, and we will get back to you promptly.

Sources

  1. Guidelines of 5 November 2013 on Good Distribution Practice of medicinal products for human use (2013/C 343/01) (opens in a new tab)

    European Commission (Official Journal of the EU, C 343, 23.11.2013) accessed

  2. Leitlinien vom 5. November 2013 für die gute Vertriebspraxis von Humanarzneimitteln (2013/C 343/01) (opens in a new tab)

    Europäische Kommission (Amtsblatt der EU, C 343 vom 23.11.2013) accessed

  3. Verordnung über den Großhandel und die Arzneimittelvermittlung (Arzneimittelhandelsverordnung - AM-HandelsV) (opens in a new tab)

    Bundesministerium der Justiz / Bundesamt für Justiz (gesetze-im-internet.de) accessed

  4. Handelsgesetzbuch (HGB) § 257 Aufbewahrung von Unterlagen, Aufbewahrungsfristen (opens in a new tab)

    Bundesministerium der Justiz / Bundesamt für Justiz (gesetze-im-internet.de) accessed

  5. Abgabenordnung (AO) § 147 Ordnungsvorschriften für die Aufbewahrung von Unterlagen (opens in a new tab)

    Bundesministerium der Justiz / Bundesamt für Justiz (gesetze-im-internet.de) accessed

Share on LinkedIn

Related articles

Case study · E-commerce

One QR code on every appliance: from EU obligation to service portal

Since 2021, every EU energy label has had to point via QR code to the European product database, EPREL. For an international household-appliance manufacturer, we turned that into more than a compliance box-tick: a QR platform that routes every scan to the right destination depending on context, and a multilingual service portal covering over 600 products, both living off the same data foundation.

Guide · Pharma

Non-GxP in pharma: what we build, what we leave out and where our systems stop

We build specialist applications for the pharma sector that their operators classify as non-GxP. Instead of promising validation, we give you technology you can check: automated tests, a protected login and security testing in the applications we develop. Below we explain who classifies a system, where our software stops and what your QA team can inspect and receive.

Case study · E-commerce

The self-driving content machine

An established mid-market online shop with several thousand specialist products that need real explanation, multiple country shops and a large trade magazine faced a scaling problem: high-quality, search-strong content, complete with imagery, internal linking and multiple languages, can't be produced by hand at the volume required. We built a fully automated content machine for it that generates, illustrates, translates and even voices articles, running autonomously round the clock.

Search the website

Popular topics

All results