Multi-Tenant Prescription Delivery Platform with Rule-Gated Dispatch and Cryptographic Chain of Custody

The multi-tenant prescription delivery platform addresses the lack of secure, pharmacy-specific logistics by integrating with pharmacy-management systems, enforcing regulatory rules, and providing cryptographically verifiable chain-of-custody, ensuring secure and compliant delivery of prescription medications.

US20260377805A1Pending Publication Date: 2026-11-26SATTAROV ERKIN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/679752
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2026-05-17
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing delivery platforms fail to provide secure, multi-tenant pharmacy-specific logistics for prescription medications, lacking integration with pharmacy-management systems, real-time tracking, and cryptographically verifiable chain-of-custody records, while violating patient privacy and regulatory compliance.

Method used

A multi-tenant prescription delivery platform that isolates pharmacy tenants, enforces regulatory rules, uses tiered communication, and ensures cryptographically verifiable chain-of-custody through a unified architecture, integrating with pharmacy-management systems and providing secure driver applications for real-time tracking and exception handling.

Benefits of technology

Ensures secure, compliant, and transparent last-mile delivery of prescription medications with tenant-specific privacy and regulatory adherence, maintaining integrity of protected health information and reducing unnecessary data exposure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377805A1-D00000_ABST
    Figure US20260377805A1-D00000_ABST
Patent Text Reader

Abstract

A multi-tenant prescription delivery platform manages last-mile medication deliveries for multiple pharmacy tenants. The platform receives delivery requests through a pharmacy interface or Pharmacy Management System integration layer, binds each request to tenant and transaction identifiers, evaluates the request with a regulatory rule engine before driver assignment, and dispatches an eligible driver subject to medication-class, geography, tenant-policy, and driver-tier constraints. A driver mobile application supports package scanning, telemetry, route execution, recipient acknowledgment, exceptions, and local data erasure. A tiered communication subsystem mediates driver, dispatcher, pharmacy, and patient communications using role and driver-tier policies. A chain-of-custody subsystem records delivery state transitions as digitally signed, hash-linked events, enabling tamper-evident verification without disclosure of protected health information. Optional workflows support cold-chain telemetry, controlled-substance verification, patient notifications, administrative dashboards, and product-traceability data binding.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of priority under 35 U.S.C. § 119(e) to U.S. Provisional Patent Application Serial No. 63 / 808,774, filed May 20, 2025, and entitled "System and Method for Real-Time Management and Tracking of Prescription Deliveries via a Secure, HIPAA-Compliant Platform," the entire disclosure of which is incorporated by reference herein for all purposes.STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

[0002] Not applicable.THE NAMES OF THE PARTIES TO A JOINT RESEARCH AGREEMENT

[0003] Not applicable.INCORPORATION BY REFERENCE OF MATERIAL SUBMITTED ELECTRONICALLY

[0004] Not applicable.STATEMENT REGARDING PRIOR DISCLOSURES BY THE INVENTOR OR A JOINT INVENTOR

[0005] Not applicable.BACKGROUND OF THE INVENTIONField of the Invention

[0006] The disclosure relates to pharmaceutical logistics and, more particularly, to computer-implemented systems and methods for managing, routing, tracking, confirming, and auditing last-mile prescription medication deliveries. The disclosure further relates to secure multi-tenant healthcare computing architectures, pharmacy-management-system integration, rule-gated dispatch, driver-tier eligibility, tier-based communication routing, medication-specific exception handling, and cryptographically verifiable chain-of-custody records for prescription deliveries.Description of the Related Art

[0007] Pharmacies, specialty pharmacies, long-term-care pharmacies, hospital outpatient pharmacies, compounding pharmacies, and other dispensing entities increasingly require last-mile delivery workflows that are faster and more transparent than manual courier processes. General-purpose delivery platforms can assign drivers and calculate routes, but they are not normally designed around the pharmacy-specific combination of protected health information, prescription identifiers, medication classifications, cold-chain requirements, controlled-substance workflows, patient identity verification, payer-related constraints, pharmacy-board recordkeeping expectations, and tenant-specific pharmacy policies.

[0008] Conventional Pharmacy Management Systems are configured primarily for prescription intake, adjudication, dispensing, inventory, and pharmacy workflow management. Such systems do not typically provide a complete driver-facing mobile delivery application, real-time patient tracking, dynamic re-routing, tiered communication controls, temperature excursion response, or cryptographically verifiable delivery-event history. Conversely, generic route-optimization systems generally lack native prescription data models and do not enforce pharmacy-specific rules at the time a driver is selected.

[0009] A further difficulty arises when a common delivery network is used for many independent pharmacy entities. Each pharmacy tenant may operate as a separate regulated dispensing organization with distinct credentials, policies, licenses, audit requirements, and patient records. A shared logistics platform must therefore technically enforce tenant-scoped access, tenant-scoped encryption, tenant-scoped audit namespaces, tenant-specific configuration, and role-based minimum-necessary data exposure so that one pharmacy tenant cannot access or decrypt another tenant's protected health information.

[0010] Prescription delivery also presents physical-chain-of-custody concerns that are not present in ordinary consumer delivery. During a single delivery transaction, a package can pass from a pharmacy user to a driver, travel across a route, encounter delays or exceptions, require recipient identity verification, and produce a proof-of-delivery, quarantine, failed-delivery, or return-to-pharmacy outcome. Records of these events should be tamper-evident and independently verifiable without requiring unnecessary disclosure of protected health information.

[0011] Accordingly, there remains a need for a prescription delivery platform that combines multi-tenant pharmacy isolation, pharmacy-management-system integration, regulatory-rule-gated dispatch, driver-tier eligibility, secure patient notification, tiered communication routing, medication-specific exception workflows, and cryptographically anchored chain-of-custody in a unified technical architecture.BRIEF SUMMARY OF THE INVENTION

[0012] In one aspect, the disclosure provides a multi-tenant computer-implemented prescription delivery platform in which a plurality of independent pharmacy tenants operate through a shared delivery infrastructure while protected health information, audit records, configuration data, and cryptographic keys remain logically and cryptographically separated by tenant.

[0013] In another aspect, the platform includes a pharmacy interface and an integration layer configured to receive delivery requests directly from authenticated pharmacy users and / or from external Pharmacy Management Systems. In various embodiments, the integration layer supports standardized or proprietary interfaces, including NCPDP SCRIPT messaging, HL7 v2 messaging, FHIR resources, REST interfaces, webhooks, flat-file imports, and authenticated read-only database connectors.

[0014] In another aspect, the platform consumes and stores only delivery-relevant data elements for a transaction, such as a patient identifier, patient name, delivery address, prescription number, medication code or class, fill date, controlled-substance indicator, refrigeration indicator, delivery instructions, and patient contact preference, while omitting diagnosis information, full clinical history, or other information not reasonably necessary to the delivery transaction.

[0015] In another aspect, the platform includes a regulatory rule engine that evaluates each prospective delivery before driver assignment. The rule engine may encode federal controlled-substance requirements, state-specific pharmacy delivery rules, medication-specific handling policies, payer or pharmacy operational policies, tenant preferences, and delivery geography. The rule engine produces a regulatory disposition that is enforced by downstream dispatch, routing, mobile, notification, communication, dashboard, and exception-handling subsystems.

[0016] In another aspect, the platform includes a dispatch and routing engine that selects eligible drivers and computes routes subject to the regulatory disposition. Driver eligibility can be evaluated using driver tier, training status, identity verification status, controlled-substance handling authorization, device attestation state, geographic proximity, availability, current route load, cold-chain capability, and other constraints. Route optimization can combine constraint-satisfaction techniques, weighted-graph routing, real-time traffic data, historical delivery telemetry, and machine-learning-based travel-time prediction.

[0017] In another aspect, the platform includes a driver mobile application configured to display delivery assignments, route specifications, handling instructions, package identifiers, patient-facing delivery steps, and exception interfaces. The driver mobile application may use device cameras, GPS or GNSS receivers, secure credential stores, touchscreens, biometric sensors, and mobile-device-management controls to scan package identifiers, report position, capture recipient acknowledgment, record exceptions, and purge or cryptographically erase locally cached protected health information after completion of a route or expiration of a session.

[0018] In another aspect, the platform includes a tiered communication routing subsystem. The subsystem evaluates communication requests by role, driver tier, delivery context, tenant policy, and recipient type. In one embodiment, direct driver-to-patient communication is permitted only for drivers at or above a configurable tier; lower-tier drivers communicate through a dispatcher-bridged channel; drivers do not communicate directly with pharmacy staff during an active delivery; and dispatcher-to-pharmacy communications are authenticated, logged, and minimized to information reasonably necessary for the delivery context.

[0019] In another aspect, the platform includes a cryptographic chain-of-custody subsystem. Each material state transition of a delivery transaction is recorded as a structured event containing a transaction identifier, tenant identifier, actor identifier, timestamp, event type, event payload digest, previous-event digest, and digital signature. The resulting hash chain is verifiable without exposing underlying protected health information, and a head-of-chain digest may be periodically anchored to an append-only, write-once, or otherwise tamper-evident log.

[0020] In another aspect, the platform includes medication-specific exception workflows, including cold-chain monitoring for temperature-sensitive prescriptions and heightened recipient verification or return-to-pharmacy handling for controlled-substance prescriptions. In optional embodiments, product-identifier or package-level traceability data may be associated with a delivery transaction and bound to the same chain-of-custody record.

[0021] The foregoing aspects may be implemented as a system, a computer-implemented method, or a non-transitory computer-readable storage medium storing instructions executable by one or more hardware processors. The aspects described in this Brief Summary are illustrative and are not intended to limit the claims to every feature or advantage discussed herein.BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

[0022] FIG. 1 illustrates an exemplary end-to-end workflow for a prescription delivery transaction, including pharmacy intake, delivery request validation, regulatory rule evaluation, driver eligibility filtering, route generation, driver execution, recipient acknowledgment or exception capture, patient notification, and audit logging.

[0023] FIG. 2 illustrates a high-level system architecture of the multi-tenant prescription delivery platform, including pharmacy tenants, external Pharmacy Management Systems, a pharmacy interface, an integration layer, a regulatory rule engine, a dispatch and routing engine, a driver mobile application, a patient notification subsystem, an administrative dashboard, a chain-of-custody subsystem, and a tenant-scoped key-management service.

[0024] FIG. 3 illustrates the multi-tenant isolation and cryptographic key architecture, including tenant identifiers, tenant-scoped data partitions, tenant-scoped audit namespaces, tenant master keys, derived data-encryption keys, signing keys, and cryptographic separation of pharmacy tenant data.

[0025] FIG. 4 illustrates the Pharmacy Management System integration and regulatory-rule-gated dispatch workflow, including connector paths, minimum-necessary data extraction, structured rule evaluation, regulatory disposition generation, driver eligibility filtering, route optimization, route re-optimization, and assignment explainability records.

[0026] FIG. 5 illustrates the driver mobile application and tiered communication workflow, including package scanning, GPS telemetry, recipient verification, delivery exceptions, patient notifications, driver-tier communication decisions, dispatcher proxying, pharmacy escalation, and medication-specific exception workflows including cold-chain and controlled-substance workflows.

[0027] FIG. 6 illustrates the cryptographic chain-of-custody pipeline, including event-payload hashing, previous-event digest chaining, hardware-security-module-backed or key-service-backed digital signing, append-only anchoring, and verification of a transaction history without disclosure of protected health information.DETAILED DESCRIPTION OF THE INVENTIONGeneral Architecture

[0028] The embodiments described herein are directed to a secure prescription delivery platform, referred to in examples as Rx2Go, configured to manage delivery transactions from pharmacy intake through final disposition. The platform may be implemented as a cloud-hosted, private-cloud, hybrid-cloud, on-premises, or distributed computing system comprising one or more application servers, database servers, message queues, object-storage repositories, cache servers, mobile application services, notification gateways, and cryptographic key-management services.

[0029] The platform includes a pharmacy interface module, a Pharmacy Management System integration layer, a regulatory rule engine, a dispatch and routing engine, a driver mobile application, a patient notification subsystem, a tiered communication routing subsystem, an administrative dashboard, a chain-of-custody subsystem, a medication-specific exception subsystem, and a tenant isolation layer. The modules communicate through authenticated channels, and each request carries tenant, role, actor, device, and transaction context so that authorization, routing, privacy, and audit decisions can be enforced consistently across the platform.

[0030] Although particular protocols, algorithms, ranges, or commercial environments may be referenced as examples, the disclosure is not limited to any specific vendor implementation. Equivalent standards, successor protocols, alternative cryptographic primitives of comparable security, and functionally similar computing environments may be substituted without departing from the scope of the invention.Multi-Tenant Architecture and Tenant Isolation

[0031] In one or more embodiments, the platform provisions each pharmacy entity as a tenant associated with a unique tenant identifier. The tenant identifier is propagated through control-plane operations, data-plane operations, cryptographic operations, audit logging, notification construction, dispatch decisions, communication-routing decisions, and billing or reconciliation events. Each tenant may have a dedicated logical database schema, a row-level-security partition, a dedicated audit-log namespace, tenant-scoped configuration, tenant-specific regulatory policies, tenant-scoped OAuth or API credentials, and a tenant-specific key hierarchy.

[0032] Tenant isolation may be enforced by combining logical and cryptographic controls. Request-time authorization middleware injects the tenant identifier into all database predicates and service calls. Access tokens are cryptographically bound to a tenant identifier and role. Protected health information associated with a tenant is encrypted using tenant-scoped encryption keys. As a result, an actor or subsystem possessing credentials or key material for one tenant cannot access or decrypt protected health information belonging to another tenant.

[0033] In one embodiment, tenant master keys are generated within, and are not exported in plaintext from, a hardware security module or equivalent managed key service. Data-encryption keys may be derived using a key-derivation function and used to encrypt field-level or record-level protected health information. Signing keys used for chain-of-custody records may be stored, wrapped, or used within the hardware security module or equivalent key service. This design allows integrity verification of transaction records while reducing unnecessary exposure of patient-identifying data.

[0034] In further embodiments, tenant isolation is enforced for administrative functions as well as delivery functions. For example, support personnel may be permitted to view only non-identifying operational data unless a tenant-specific support grant, time-limited access token, or audited break-glass authorization is present. Administrative access events are recorded in the same tenant-scoped audit namespace or in a supervisory audit namespace linked to the affected tenant.Pharmacy Interface and Integration Layer

[0035] The pharmacy interface module allows authorized pharmacy personnel to create, review, modify, cancel, and monitor delivery requests. A delivery request may include a patient identifier, patient name, delivery address, patient contact preference, prescription number, medication classification, medication code, fill date, delivery time window, delivery urgency, special handling requirements, contactless-delivery preference, signature requirement, temperature-control indicator, controlled-substance indicator, and pharmacy-specific delivery instructions.

[0036] The integration layer is configured to interoperate with one or more external Pharmacy Management Systems. In some embodiments, the integration layer supports NCPDP SCRIPT transaction sets, HL7 v2 messaging over a transport such as MLLP, FHIR resources over HTTPS, REST interfaces, webhooks, flat-file imports, and authenticated read-only database connectors. For legacy systems, the integration layer may normalize data from proprietary fields into the platform's delivery transaction schema.

[0037] The integration layer is configured to consume only a minimum operational data set needed for delivery and audit. By way of example, the layer may consume patient identifier, patient name, delivery address, prescription number, medication code, fill date, dispense quantity, controlled-substance indicator where applicable, refrigeration indicator where applicable, patient contact preference, and delivery instructions. The platform may omit diagnosis information, full medication descriptions, payer financial details, or other protected data not reasonably necessary to the delivery workflow.

[0038] Once a delivery request is received or augmented, the platform assigns a unique transaction identifier, binds the transaction to the tenant identifier, validates required fields, normalizes address information, verifies the presence of prescription attributes, determines whether the medication classification invokes any special handling workflow, and records an initial chain-of-custody event for order creation.Regulatory Rule Engine

[0039] The regulatory rule engine evaluates each prospective delivery before driver assignment. The rule engine may store rules as declarative predicates with associated actions. Rule predicates may evaluate medication classification, controlled-substance schedule, pharmacy location, delivery destination, jurisdiction, payer or tenant rule, patient age, patient availability, temperature requirement, packaging type, driver qualification, device state, delivery window, and prior exception status. Actions may include permit, deny, escalate, require supervisor approval, restrict driver eligibility, restrict delivery window, require dual-factor recipient verification, require insulated packaging, require return-to-pharmacy on failure, require quarantine, or require pharmacy confirmation.

[0040] The rule engine produces a regulatory disposition that is bound to the transaction record. The dispatch and routing engine, driver mobile application, patient notification subsystem, communication routing subsystem, administrative dashboard, and exception subsystem enforce the regulatory disposition. If a downstream subsystem detects a condition inconsistent with the disposition, the platform may suspend dispatch, trigger escalation, create an exception event, notify authorized pharmacy personnel or dispatchers, and preserve the exception in the transaction's audit history.

[0041] Rules may be tenant-configurable within system-defined limits. For example, a pharmacy tenant may require signatures for particular medication classes, restrict deliveries to particular geographic areas, require higher-tier drivers for after-hours deliveries, require additional recipient verification for controlled-substance medications, or impose special handling instructions for specialty medications. Such tenant rules are stored with version identifiers so that the rule version applied to a transaction can be reconstructed during later audit review.Dispatch and Routing Engine

[0042] The dispatch and routing engine receives a permitted delivery request and evaluates candidate drivers. Candidate drivers may be represented by driver profiles containing driver identifiers, tier values, training status, identity-verification depth, background-check status, controlled-substance authorization, cold-chain capability, device attestation status, geographic location, availability, current route load, historical delivery performance, and communication permissions.

[0043] Driver eligibility is evaluated against the regulatory disposition and operational constraints. A driver may be excluded if the driver lacks a required tier, lacks required authorization, is outside an acceptable geographic radius, has insufficient route capacity, lacks cold-chain equipment, has a non-attested device, lacks required communication permissions, or would cause a delivery-window violation. Candidate drivers that pass eligibility filtering are ranked according to route efficiency, predicted travel time, pickup sequence, service-level commitments, and tenant policy.

[0044] Route computation may use a weighted graph representation of the road network, with edge weights based on distance, real-time traffic, historical congestion, time of day, weather conditions, pharmacy operating hours, medication stability windows, patient availability windows, and driver-route load. In some embodiments, a machine-learning model predicts segment travel time or probability of late delivery based on historical delivery telemetry, traffic incidents, weather, and time-window data.

[0045] The engine may dynamically re-optimize a route in response to events such as traffic congestion, driver delay, patient unavailability, package scan mismatch, temperature excursion, device connectivity loss, rule-disposition change, or a newly assigned urgent delivery. Re-optimization creates a new route event and may require dispatcher or pharmacy approval depending on tenant policy and medication classification.

[0046] In one embodiment, the dispatch engine generates an explainability record for each driver assignment. The explainability record may include the regulatory disposition, candidate drivers considered, eligibility outcome for each candidate, reasons for exclusion, route score, selected driver, selected route, and rule versions used. The explainability record is linked to the transaction and may be included in the chain-of-custody record or audit namespace.Driver Mobile Application and Delivery Lifecycle

[0047] The driver mobile application executes on a mobile device such as a smartphone, tablet, ruggedized handheld device, or vehicle-mounted device having one or more hardware processors, memory, a camera, a GPS or GNSS receiver, a touchscreen, a secure credential store, and network connectivity. The application authenticates the driver, verifies device enrollment or attestation, receives assigned deliveries, and displays a route and delivery task list subject to the driver's role and tier.

[0048] After assignment, the application displays a delivery queue, route specification, pickup location, handling instructions, package identifiers, delivery window, required verification steps, and exception interfaces. The application may avoid displaying unnecessary protected health information and may present only a delivery address, masked patient name, order code, contact method, and handling instruction needed to complete the delivery.

[0049] At pickup or before delivery, the driver scans a machine-readable identifier affixed to the prescription package, such as a barcode, QR code, DataMatrix code, RFID tag, or other identifier. The application validates the scanned identifier against the transaction record, verifies that the package corresponds to the assigned delivery, records timestamp and location data, and blocks delivery completion if a mismatch is detected unless an authorized exception workflow is completed.

[0050] During transport, the mobile application reports telemetry such as GPS coordinates, route progress, status changes, scan results, device state, and exception selections. Telemetry frequency may be configurable by tenant, delivery type, geography, or medication classification. Telemetry can be compressed, sampled, or aggregated to reduce bandwidth and limit unnecessary collection while maintaining adequate delivery visibility and auditability.

[0051] At handoff, the application directs the driver to capture recipient acknowledgment. Depending on tenant policy and medication classification, recipient acknowledgment may include electronic signature, one-time PIN, patient-provided code, photo proof, identification confirmation, biometric-linked attestation, or dispatcher confirmation. If delivery fails, the driver selects a failure reason, records supporting evidence where appropriate, and initiates a return-to-pharmacy, rescheduling, quarantine, or dispatcher-escalation workflow.

[0052] The driver mobile application protects locally cached data using containerized storage, mobile-device-management policy, session timeouts, device attestation, and cryptographic erasure. In one embodiment, locally cached protected health information is deleted or cryptographically erased after route completion, session expiration, device-attestation failure, or receipt of a remote wipe command. A deletion or erasure confirmation event may be recorded in the chain-of-custody record.Tiered Communication Routing and Patient Notification

[0053] The tiered communication routing subsystem receives communication requests from drivers, dispatchers, pharmacy personnel, patients, and administrators. The subsystem evaluates the request using the requesting party's role, the intended recipient's role, the driver tier, the tenant policy, the delivery context, and the regulatory disposition. The subsystem determines whether the communication is permitted, denied, logged, or routed through an intermediary.

[0054] In one embodiment, only drivers at or above a configurable tier, such as Tier 4, may initiate or receive direct voice or messaging communication with patients. Drivers below the threshold may communicate with patients only through a dispatcher-bridged channel that masks the patient's direct contact identifier. Drivers do not communicate directly with pharmacy personnel during an active delivery; communications requiring pharmacy input are intermediated by a dispatcher role. Dispatcher-to-pharmacy communications are authenticated, logged, and minimized to information reasonably necessary to resolve the delivery issue.

[0055] The patient notification subsystem sends event-driven messages by SMS, email, push notification, interactive voice response, secure portal, or other permitted channel. Notifications may be triggered by order creation, dispatch, pickup, estimated arrival update, delay, arrival, delivery completion, failed delivery, return, quarantine, or exception. Message bodies may omit medication names, diagnoses, or other sensitive information and instead include a tokenized tracking link that expires upon delivery completion or after a configurable validity period.

[0056] Communication events, delivery status messages, consent records, delivery receipts, bounced messages, dispatcher bridges, masked calls, and communication denials are recorded as structured events. The audit data may include timestamp, role, channel, tenant identifier, transaction identifier, event type, outcome, and a minimized summary, while omitting message content not required for audit or delivery support.Cryptographic Chain-of-Custody and Audit Trail

[0057] The chain-of-custody subsystem records state transitions and material decisions in the lifecycle of each transaction. State transitions may include order created, order validated, rule disposition generated, driver assigned, route transmitted, package picked up, package scanned, route started, geofence entered, arrival confirmed, recipient verification attempted, delivery completed, delivery failed, return initiated, product quarantined, route re-optimized, communication bridged, and local data erased.

[0058] Each event record may include an event type, transaction identifier, tenant identifier, actor identifier, timestamp, source subsystem identifier, event payload digest, previous-event digest, rule-version identifier when applicable, route-version identifier when applicable, and a digital signature. The payload digest may be generated from a canonical representation of the event payload so that the same event data produces the same digest during verification. The previous-event digest links the event to the immediately preceding event of the transaction.

[0059] Digital signatures may be produced using keys held, wrapped, or authorized by a hardware security module or equivalent key-management service. Event-payload digests may be generated using SHA-256, SHA-3, BLAKE2, or another cryptographic digest of comparable strength. Digital signatures may use ECDSA, EdDSA, RSA-PSS, HMAC-based authentication for internal events, or successor primitives of comparable security. The particular primitive is not limiting unless expressly recited in a claim.

[0060] The system can verify the integrity of a transaction history by recomputing event digests, validating the previous-event digest links, checking digital signatures, confirming tenant-key association, and comparing the head-of-chain digest to an append-only, write-once, or otherwise tamper-evident log. Verification can be performed without exposing patient-identifying payload data by verifying digests, signatures, and data references rather than raw protected health information.Cold-Chain and Temperature-Sensitive Medication Handling

[0061] For a medication classified as temperature-sensitive, the platform may invoke a cold-chain workflow. The medication classification may be determined from a medication code lookup, Pharmacy Management System data, pharmacy user input, tenant policy, product identifier, or packaging profile. The workflow may require insulated packaging, refrigerated packaging, frozen packaging, a data logger, an instrumented package, a vehicle sensor, or a sensor paired with the driver mobile device.

[0062] Temperature telemetry may be received from instrumented packaging, a sensor paired with the driver device, a vehicle sensor, a pharmacy-provided data logger, or another telemetry source. The platform compares the telemetry against a medication-specific thermal envelope and may trigger an exception if the envelope is breached. Exception actions may include delivery hold, dispatcher alert, pharmacy notification, patient notification, product quarantine, route re-optimization, return-to-pharmacy, or creation of an excursion report for authorized review.

[0063] A thermal-history record may be stored as part of the transaction record. Rather than storing all raw telemetry in every audit event, the platform may store telemetry in a time-series repository and include in the chain-of-custody record a digest or summary of the telemetry window, excursion status, and sensor identifier. This permits later verification of cold-chain handling while reducing unnecessary duplication of sensor data.Controlled-Substance Handling

[0064] For a medication classified as a controlled substance, the platform may invoke a heightened workflow. The classification may be supplied by the Pharmacy Management System, by pharmacy user input, by medication code lookup, or by tenant policy. The platform may verify that the delivery request includes required pharmacy and prescription attributes, restrict driver assignment to drivers meeting a controlled-substance handling tier, require additional recipient verification, restrict delivery windows, and require return-to-pharmacy handling if verification fails.

[0065] At recipient handoff, the driver mobile application may require dual-factor recipient verification, such as presentation of government-issued identification matching patient-record attributes and entry of a one-time PIN delivered out-of-band to a registered patient contact. The platform may record a digest of identity-verification evidence, verification result, timestamp, and driver attestation, with any underlying image or sensitive artifact stored under tenant-scoped encryption and limited retention. Upon refusal, unsuccessful verification, or suspected diversion, the system may suspend delivery completion and generate a return, quarantine, or escalation workflow.

[0066] The platform may generate a controlled-substance delivery audit record retained for inspection under applicable federal and state controlled-substance recordkeeping requirements. The audit record may include the transaction identifier, medication classification, dispensing pharmacy identifier, driver identifier, delivery route data, recipient verification result, exception status, and chain-of-custody verification status. The platform records delivery-specific audit data appropriate to the patient-delivery context, rather than characterizing the patient handoff as a wholesale ordering transaction.Optional Serialization and Product-Traceability Integration

[0067] In optional embodiments, the platform may associate package-level product identifier or serialization data with a delivery transaction. For example, the platform may scan a GS1 DataMatrix or other machine-readable product identifier and extract product identifier data such as a global trade item number, serial number, lot number, and expiration date. Such information may be used to validate package identity, detect mismatches, or support pharmacy traceability workflows.

[0068] Where applicable to a tenant, product, dispenser status, or trading-partner relationship, the platform may store, exchange, or reference product-tracing data supported by the tenant's systems. A digest, reference identifier, or reduced representation of such product-tracing data may be bound to the chain-of-custody record so that the relationship between package traceability and last-mile delivery can be verified without unnecessary disclosure of protected information.

[0069] If a serialization or traceability anomaly is detected, the platform may invoke a suspect-product workflow. Such a workflow may include package hold, quarantine, suspension of in-flight delivery, pharmacy notification, tenant-designated compliance contact notification, and generation of an internal report for review by authorized pharmacy personnel.Administrative Dashboard, Reporting, and Reconciliation

[0070] The administrative dashboard provides authorized pharmacy, dispatcher, operations, and compliance users with a role-filtered view of active, pending, completed, failed, returned, quarantined, and canceled deliveries. Users may view transaction status, assigned driver, ETA, route state, exception history, patient notification status, chain-of-custody verification status, and pharmacy-specific notes, subject to role-based and tenant-scoped access controls.

[0071] The dashboard may provide audit-log access, chain verification tools, communication logs, rule-disposition details, driver-assignment explainability records, delivery-performance analytics, and exception work queues. Administrative actions such as reassigning a driver, modifying a delivery window, changing a notification preference, initiating a return, releasing a quarantine hold, or overriding a route are permission-gated and recorded as chain-of-custody events with attribution and justification.

[0072] In some embodiments, the platform includes reconciliation and billing support. The platform may count completed deliveries, returned deliveries, canceled deliveries, failed deliveries, cold-chain deliveries, controlled-substance deliveries, after-hours deliveries, and tenant-specific service levels. The platform may reconcile delivery records with pharmacy dispensing records before generating invoices or operational reports. Such billing functionality is optional and need not be present in every claimed embodiment.Specific Computing Environment

[0073] Application servers may execute containerized services, serverless functions, virtual machines, or other workloads. Databases may include relational databases, document databases, time-series stores, object stores, analytics stores, and key-value stores. Message queues or publish-subscribe buses may transport events among modules. The system may be deployed across one or more availability zones, regions, private data centers, or pharmacy-controlled environments.

[0074] Driver devices may include smartphones, tablets, ruggedized handheld devices, or vehicle-mounted devices. Such devices may include cameras for scanning machine-readable identifiers, GPS or GNSS receivers for location, touchscreens for electronic signatures, secure credential stores, network interfaces, speakers, microphones, biometric sensors, and mobile-device-management functionality. Instrumented packaging may include temperature sensors, humidity sensors, accelerometers, tamper-evident closures, microcontrollers, wireless interfaces, and batteries.

[0075] The terms "module," "engine," "subsystem," and "layer" refer to hardware, software, firmware, or combinations thereof configured to perform the described operations. A single physical component may implement multiple modules, and a single module may be distributed across multiple physical or virtual components. The term "tenant" refers to a pharmacy entity, pharmacy location, pharmacy group, covered-entity account, or other client identity provisioned in the platform. The term "Protected Health Information" or "PHI" is used in a technical sense to refer to health-related information treated by the platform as sensitive and protected through access controls, encryption, minimization, auditing, and tenant isolation.

[0076] References to HIPAA, DSCSA, controlled-substance rules, pharmacy-board requirements, or other legal regimes describe examples of regulated operational contexts and technical requirements that may be encoded in tenant policies, rule sets, audit records, and exception workflows. Such references should not be construed to require that every embodiment be legally certified under any particular program or to limit the invention to any jurisdiction, regulator, or legal classification unless expressly required by a claim.DETAILED DESCRIPTION OF THE DRAWINGS

[0077] Referring to FIG. 1, a prescription delivery transaction begins when a pharmacy user or Pharmacy Management System submits a delivery request. The platform validates required fields, normalizes address data, associates the request with a tenant identifier and transaction identifier, evaluates the request through the regulatory rule engine, filters candidate drivers, assigns an eligible driver, computes a route, transmits the route to the driver mobile application, captures package scan and telemetry data, captures recipient acknowledgment or exception information, updates patient and pharmacy-facing status views, and records material events in an audit log.

[0078] Referring to FIG. 2, the high-level architecture includes pharmacy tenant systems and external Pharmacy Management Systems connected through an API gateway to the platform. The platform includes an integration layer, pharmacy interface, regulatory rule engine, dispatch and routing engine, driver mobile application, patient notification subsystem, tiered communication routing subsystem, administrative dashboard, chain-of-custody subsystem, tenant isolation layer, and hardware security module or equivalent key-management service. The figure illustrates authenticated and encrypted communication among these components.

[0079] Referring to FIG. 3, each tenant is associated with a tenant identifier, tenant-scoped data partition, tenant-scoped audit namespace, tenant master key, derived data-encryption keys, and signing keys. Access tokens and service calls are bound to the tenant identifier. The figure illustrates how a first tenant's protected health information is logically and cryptographically separated from a second tenant's protected health information, even when both tenants use shared platform infrastructure.

[0080] Referring to FIG. 4, the integration and dispatch workflow receives prescription and delivery data through standardized or proprietary connectors, normalizes data into a common delivery transaction schema, filters data to a minimum operational data set, validates prescription and address information, applies a structured regulatory rule set, produces a regulatory disposition, and evaluates driver eligibility. The figure further illustrates driver-tier filtering, geographic filtering, device-status filtering, controlled-substance authorization, cold-chain capability, rule-engine constraints, route optimization, route re-optimization, and storage of assignment explainability records.

[0081] Referring to FIG. 5, the driver mobile application implements a delivery lifecycle and communication workflow. Representative states include assigned, accepted, at pharmacy, package scanned, in transit, arrived, recipient verification pending, delivered, failed, return initiated, returned, quarantined, and closed. The figure also illustrates package scanning, GPS telemetry, recipient acknowledgment, exception selection, patient notifications, driver-tier communication decisions, dispatcher proxying, and pharmacy escalation. Cold-chain and controlled-substance exception workflows are shown as delivery-context branches.

[0082] Referring to FIG. 6, each material event is converted into a structured event record. The event payload is hashed, the digest of the preceding event is included, and a digital signature is generated using a key associated with a hardware security module or equivalent key service. The resulting records form a transaction-specific hash chain. A head-of-chain digest may be anchored to an append-only log, and a verification process may recompute digests and validate signatures without revealing the underlying protected health information.

Claims

1. A multi-tenant computer-implemented system for managing and tracking prescription medication deliveries, the system comprising one or more hardware processors and one or more non-transitory computer-readable media storing instructions that, when executed by the one or more hardware processors, cause the system to implement:(a) a multi-tenant tenancy layer configured to associate each of a plurality of pharmacy tenants with a tenant identifier, a tenant-scoped data partition, a tenant-scoped audit namespace, and a tenant-scoped cryptographic key hierarchy managed by a key-management service or hardware security module;(b) a pharmacy interface and Pharmacy Management System integration layer configured to receive a delivery request associated with one of the pharmacy tenants, the delivery request comprising patient, prescription, medication-classification, and delivery-parameter data, and to associate the delivery request with the tenant identifier and a transaction identifier;(c) a regulatory rule engine configured to evaluate the delivery request, before driver assignment, against a structured rule set comprising medication-classification rules, geographic rules, tenant-policy rules, and controlled-substance handling rules, and to generate a regulatory disposition comprising a permit or denial determination and one or more constraints when applicable;(d) a dispatch and routing engine configured, responsive to a permit determination, to evaluate candidate drivers against the regulatory disposition, select an eligible driver, compute a route specification, and transmit the route specification to a driver mobile application associated with the eligible driver;(e) the driver mobile application, executable on a driver device having a camera and a location receiver, configured to display the route specification, scan a machine-readable package identifier, report delivery telemetry, capture recipient acknowledgment or delivery-exception data, and erase or delete locally cached Protected Health Information based on at least one route-completion, session-expiration, device-attestation, or remote-wipe condition;(f) a tiered communication routing subsystem configured to determine, based on role, driver tier, tenant policy, recipient type, and delivery context, whether a communication request associated with the delivery request is permitted, denied, or intermediated through a dispatcher proxy;(g) a chain-of-custody subsystem configured to generate, for material state transitions of the delivery request, digitally signed event records that include digests of corresponding event payloads and digests of preceding event records, thereby forming a hash-linked transaction history verifiable without disclosure of underlying Protected Health Information; and(h) a status reporting subsystem comprising at least one of a patient notification subsystem and an administrative dashboard, the status reporting subsystem being configured to report selected delivery-status events subject to tenant-scoped access controls and role-based minimization of sensitive delivery data.

2. The system of claim 1, wherein the multi-tenant tenancy layer constrains data-plane queries by the tenant identifier, encrypts Protected Health Information associated with each pharmacy tenant using tenant-scoped encryption keys, and prevents Protected Health Information of a first pharmacy tenant from being decrypted using key material associated only with a second pharmacy tenant.

3. The system of claim 1, wherein the Pharmacy Management System integration layer is configured to interoperate using at least one of NCPDP SCRIPT messaging, HL7 v2 messaging, FHIR resources, REST interfaces, webhooks, flat-file imports, and authenticated database-level connectors, and to consume a minimum operational data set comprising patient identifier, patient name, delivery address, prescription number, medication code, fill date, controlled-substance indicator when applicable, refrigeration indicator when applicable, and delivery instructions.

4. The system of claim 1, wherein the regulatory disposition includes at least one constraint selected from driver-tier threshold, driver training requirement, identity-verification requirement, recipient-verification requirement, delivery-window restriction, thermal-envelope requirement, geographic restriction, quarantine requirement, and return-to-pharmacy requirement.

5. The system of claim 1, wherein the dispatch and routing engine evaluates driver eligibility based on driver tier, geographic proximity, availability, current route load, device attestation state, controlled-substance handling authorization, cold-chain capability, and constraints emitted by the regulatory rule engine, and records an eligibility outcome or assignment basis as an event associated with the transaction identifier.

6. The system of claim 1, wherein the dispatch and routing engine computes the route specification using a weighted graph representation of a road network and at least one of real-time traffic data, historical delivery telemetry, medication stability windows, pharmacy operating hours, patient availability windows, and machine-learning-based travel-time prediction.

7. The system of claim 1, wherein the driver mobile application validates the machine-readable package identifier against the transaction identifier, records scan events with timestamp and location data, and captures recipient acknowledgment using at least one of electronic signature, one-time PIN, patient-provided code, photo proof, identification confirmation, and biometric-linked attestation.

8. The system of claim 1, wherein the tiered communication routing subsystem permits direct driver-to-patient communication only when a driver tier associated with the driver meets or exceeds a configurable threshold, routes lower-tier driver-to-patient communication through a dispatcher proxy that masks a patient contact identifier, and intermediates driver-to-pharmacy communication through a dispatcher role.

9. The system of claim 1, wherein each digitally signed event record comprises an event type, the transaction identifier, the tenant identifier, an actor identifier, a timestamp, an event-payload digest, a previous-event digest for the immediately preceding event of the transaction, and a digital signature produced using a signing key held, wrapped, or authorized by the key-management service or hardware security module.

10. The system of claim 1, wherein the chain-of-custody subsystem is configured to periodically anchor a head-of-chain digest for the transaction history to an append-only, write-once, or otherwise tamper-evident log without disclosing underlying Protected Health Information.

11. The system of claim 1, further comprisinga cold-chain monitoring subsystem configured, when the delivery request is associated with a temperature-sensitive medication, to receive temperature telemetry from an instrumented package, paired sensor, vehicle sensor, or driver device, compare the temperature telemetry against a medication-specific thermal envelope, and trigger an exception workflow upon detection of a thermal-envelope breach.

12. The system of claim 1, further comprising a controlled-substance handling subsystem configured, when the delivery request is associated with a controlled-substance medication classification, to restrict driver assignment to drivers satisfying a controlled-substance handling tier, require heightened recipient verification at handoff, and generate a delivery audit record for inspection under applicable recordkeeping requirements.

13. The system of claim 1, wherein the patient notification subsystem constructs status messages that omit medication-specific Protected Health Information from message bodies and include tokenized tracking links that expire upon delivery completion or after a configurable validity period.

14. The system of claim 1, wherein the driver mobile application is configured to cryptographically erase or delete locally cached Protected Health Information upon at least one of route completion, session expiration, device-attestation failure, and receipt of a remote wipe command.

15. A computer-implemented method for regulation-aware management and tracking of prescription medication deliveries in a multi-tenant computing environment, the method comprising:(a) receiving a delivery request associated with a pharmacy tenant and comprising patient, prescription, medication-classification, and delivery-parameter data;(b) associating the delivery request with a tenant identifier and a transaction identifier;(c) augmenting or validating the delivery request using prescription attributes received from a Pharmacy Management System;(d) evaluating the delivery request, before driver assignment, against a structured rule set to produce a regulatory disposition including a permit or denial determination and one or more constraints when applicable;(e) responsive to a permit determination, evaluating candidate drivers against the regulatory disposition and selecting an eligible driver;(f) computing and transmitting a route specification to a driver mobile application associated with the eligible driver;(g) capturing, using the driver mobile application, a machine-readable package identifier and recipient acknowledgment or a delivery exception;(h) transmitting patient notifications or dashboard updates for selected delivery-status events subject to tenant-scoped access controls and role-based minimization of sensitive delivery data; and(i) generating digitally signed event records for state transitions of the delivery request, each event record including a digest of a preceding event record to form a tamper-evident chain of custody.

16. The method of claim 15, further comprising enforcing tenant isolation by constraining data access by the tenant identifier, encrypting Protected Health Information using tenant-scoped encryption keys, and recording audit events in a tenant-scoped audit-log namespace.

17. The method of claim 15, further comprising routing communication requests through a tiered communication routing subsystem that permits, denies, or intermediates a communication request based on role, driver tier, tenant policy, recipient type, and delivery context.

18. The method of claim 15, further comprising invoking, based on medication classification, at least one of (a) a cold-chain workflow that evaluates temperature telemetry against a thermal envelope and triggers an excursion exception, and (b) a controlled-substance workflow that requires heightened recipient verification and return-to-pharmacy handling upon unsuccessful verification.

19. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions which, when executed by one or more hardware processors of a multi-tenant prescription delivery platform, cause the platform to perform operations comprising: receiving a prescription delivery request associated with a pharmacy tenant; binding the delivery request to a tenant identifier and a transaction identifier; validating the delivery request using prescription attributes from a Pharmacy Management System; evaluating the delivery request through a regulatory rule engine before driver assignment; assigning the delivery request to an eligible driver only when the regulatory rule engine returns a permit disposition; transmitting a route specification to a driver mobile application; receiving package-scan data, telemetry, and recipient-acknowledgment or exception data from the driver mobile application; applying tiered communication routing to communication requests associated with the delivery request; and generating a digitally signed, hash-linked chain-of-custody record for state transitions of the delivery request.

20. The non-transitory computer-readable storage medium of claim 19, wherein the operations further comprise deriving or unwrapping tenant-scoped encryption keys using a tenant master key associated with the pharmacy tenant, encrypting Protected Health Information under the tenant-scoped encryption keys, and verifying the hash-linked chain-of-custody record without disclosing the underlying Protected Health Information.