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 Pharma logistics Pharma logistics is the term we use for storing, transporting and delivering medicinal products and other pharma-sector goods, such as promotional material and supplies for patients. Read in the glossary → , 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 SFTP SFTP (SSH File Transfer Protocol) transfers files securely over a Secure Shell (SSH) connection; despite the name, it is a separate protocol from the older FTP. Read in the glossary → server, which also carries data from its warehouse management system WMS WMS stands for warehouse management system. According to the short description of VDI 3601, its task is to manage and optimise a company's internal storage and transport systems. Read in the glossary → (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 Business application In general terms, a business application is software used to perform or support business functions. Read in the glossary → for the pharmaceutical industry, the proof of delivery pipeline is a non-GxP application Non-GxP Non-GxP describes a system that its operator does not classify as GxP-relevant; PIC/S guidance uses the term without defining it formally. Read in the glossary → . We do not promise validation Validation In the EU GMP and GDP glossaries, validation is the action of proving that any procedure, process, equipment, material, activity or system actually leads to the expected results. Read in the glossary → . 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.
- The EU Guidelines on Good Distribution Practice of medicinal products for human use (2013/C 343/01): section 3.3.1 on computerised systems, section 4.2 on records and the retention of documentation, section 5.8 on the document that accompanies each delivery, section 6.3 on returning products to saleable stock and section 9.2 on delivery to the consignee.
- Article 80 of Directive 2001/83/EC, on holders of a wholesale distribution authorisation and good distribution practice.
- PIC/S guidance PI 041-1 on data management and data integrity in GMP/GDP environments.
- For Germany (texts in German): section 7 of the Ordinance on Wholesale Trade in Medicinal Products (AM-HandelsV) on records of procurement and supply, section 257 of the Commercial Code (HGB) on retention under commercial law and section 147 of the Fiscal Code (AO) on retention under tax law.
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
-
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
-
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
-
Richtlinie 2001/83/EG zur Schaffung eines Gemeinschaftskodexes für Humanarzneimittel, konsolidierte Fassung vom 01.01.2025 (CELEX 02001L0083-20250101) (opens in a new tab)
Amt für Veröffentlichungen der EU (konsolidierte Fassung) accessed
-
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
-
Handelsgesetzbuch (HGB) § 257 Aufbewahrung von Unterlagen, Aufbewahrungsfristen (opens in a new tab)
Bundesministerium der Justiz / Bundesamt für Justiz (gesetze-im-internet.de) accessed
-
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
-
PI 041-1 Good Practices for Data Management and Integrity in Regulated GMP/GDP Environments (1 July 2021) (opens in a new tab)
PIC/S (Pharmaceutical Inspection Co-operation Scheme) accessed