↩ Back to CV

Technical case study

securPharm/NMVS medication verification integration

Integration of medication-handling workflows with the German NMVS for verification, decommissioning, undo operations, and resilient error handling.

Context

Prescription medicine packs in the legal supply chain are verified against a national repository. In software used by pharmacies and blister centers, this check must fit into goods-receipt, dispensing, and blister-production workflows without hiding repository errors or leaving pack state ambiguous.

The implemented integration targeted the German securPharm/NMVS environment. It needed to read GS1 DataMatrix information, support different product identifiers, authenticate requests, and represent repository responses clearly to the surrounding application.

Integration design

I built a JSON-RPC integration over HTTP/cURL with HMAC-signed requests. It processes GS1/DataMatrix data with GTIN and PPN identifiers and supports medication verification, dispensing or decommissioning, and undo actions.

The integration keeps transport failures, repository responses, and business-level outcomes distinct. This allows the surrounding pharmacy or blister-production workflow to decide whether to continue, retry, use an approved fallback, or require operator attention.

Error handling and traceability

Structured logging records the relevant request context and result without spreading protocol details through the business application. Explicit error handling and fallback workflows make degraded operation visible and diagnosable.

Unit and integration tests cover successful operations, rejected requests, communication failures, and mocked repository responses.

European relevance

The production work was performed against Germany’s securPharm/NMVS. The underlying concepts—EMVS integration, unique identifiers, verification, decommissioning, undo operations, authenticated communication, and alert-aware workflows—are directly relevant to software connected to other national systems, including Spain’s SEVeM, without claiming direct production experience with SEVeM.

Technologies and concepts

  • securPharm
  • NMVS
  • EMVS
  • JSON-RPC
  • HTTP
  • cURL
  • HMAC
  • GS1 DataMatrix
  • GTIN
  • PPN
  • Structured logging
  • Fallback workflows