Software Engineering & Digital Products for Global Enterprises since 2006
CMMi Level 3SOC 2ISO 27001
View all services
Staff Augmentation
Embed senior engineers in your team within weeks.
Dedicated Teams
A ring-fenced squad with PM, leads, and engineers.
Build-Operate-Transfer
We hire, run, and transfer the team to you.
Contract-to-Hire
Try the talent. Convert when you're ready.
ForceHQ
Skill testing, interviews and ranking — powered by AI.
RoboRingo
Build, deploy and monitor voice agents without code.
MailGovern
Policy, retention and compliance for enterprise email.
Vishing
Test and train staff against AI-driven voice attacks.
CyberForceHQ
Continuous, adaptive security training for every team.
IDS Load Balancer
Built for Multi Instance InDesign Server, to distribute jobs.
AutoVAPT.ai
AI agent for continuous, automated vulnerability and penetration testing.
Salesforce + InDesign Connector
Bridge Salesforce data into InDesign to design print catalogues at scale.
HumanDISC
AI-powered behavioral assessments and DISC profiling for smarter hiring.
View all solutions
Banking, Financial Services & Insurance
Cloud, digital and legacy modernisation across financial entities.
Healthcare
Clinical platforms, patient engagement, and connected medical devices.
Pharma & Life Sciences
Trial systems, regulatory data, and field-force enablement.
Professional Services & Education
Workflow automation, learning platforms, and consulting tooling.
Media & Entertainment
AI video processing, OTT platforms, and content workflows.
Technology & SaaS
Product engineering, integrations, and scale for tech companies.
Retail & eCommerce
Shopify, print catalogues, web-to-print, and order automation.
View all industries
Blog
Engineering notes, opinions, and field reports.
Case Studies
How clients shipped — outcomes, stack, lessons.
White Papers
Deep-dives on AI, talent models, and platforms.
View all resources
About Us
Who we are, our story, and what drives us.
Co-Innovation
How we partner to build new products together.
Careers
Open roles and what it's like to work here.
News
Press, announcements, and industry updates.
Leadership
The people steering MetaDesign.
Locations
Gurugram, Brisbane, Detroit and beyond.
Contact Us
Talk to sales, hiring, or partnerships.
Request TalentStart a Project
Plugin & Extension DevelopmentPharmaceuticals & Life Sciences

Locking Down Cross-Border Pharma Pricing Algorithms and ASEAN Payer Benchmarks Inside a Country-Scoped C++ & XLL Excel Add-in

Discover how MetaDesign Solutions helped a Southeast Asian pharmaceutical market-access consultancy conceal proprietary ASEAN payer benchmark tables and drug-pricing elasticity solvers inside a compiled C++ engine with country-scoped Excel XLL licensing.

C++20 · Excel XLL SDK · Cryptographic Licence Scoping
Client: Southeast Asian Life-Sciences Market Access & HEOR Consultancy
Securing Pharmaceutical Drug Pricing & HEOR Excel Models with a C++ Calculation Engine

Project Overview

Securing pharmaceutical drug-pricing and HEOR Excel models is essential for life-sciences consultancies whose core commercial value sits inside proprietary reimbursement benchmarks and elasticity equations. When multinational pharmaceutical and biotech companies launch a new therapy across Southeast Asia, they rely on complex Excel workbooks to model patient co-pay elasticity, hospital formulary discounts, Managed Entry Agreements (MEAs), and International Reference Pricing (IRP) cross-border spillover risks. A leading Southeast Asian life-sciences consultancy had built the region's most comprehensive Excel/VBA pricing and HEOR modelling suite, backed by proprietary reimbursement benchmarks gathered from hundreds of ASEAN drug launches.

The consultancy faced a recurring revenue challenge: after licensing the workbook for a single country launch (for example, Singapore), client teams could easily unlock the spreadsheet, copy the hidden benchmark tables for Malaysia, Thailand, and Vietnam, and reuse the VBA elasticity solver across future launches without extending their licence. Partnering with our custom Excel add-in engineering team →, the firm moved both its pricing algorithms and its ASEAN payer benchmark datasets into a compiled C++ calculation engine with country-scoped per-calculation licensing—while keeping desktop Excel as the user interface.

Preserving the Excel Launch Dashboard While Removing Exposed IP

Pharma market-access directors depend on Excel's flexibility to build board-ready launch packs, sensitivity tables, and payer negotiation scenarios. Following the architecture described in our guide on turning Excel and VBA models into a protected, licensable product →, we kept the exact Excel dashboard, scenario sliders, and waterfall charts intact while removing every proprietary formula and dataset from the workbook file.

  • Zero Formulas or Benchmarks in the Sheet: All multi-step elasticity equations, VBA solver macros, and hidden ASEAN country benchmark sheets were deleted from the distributed .xlsx workbook.
  • 100% Offline Desktop Execution: All calculations run locally on the user's machine inside a compiled C++ process, satisfying strict pharmaceutical data-privacy rules that prohibit sending unreleased drug pricing to external cloud servers.
Capability Legacy HEOR Workbook (.xlsm) Protected XLL + C++ Pricing Engine
ASEAN Payer Benchmark Data 6 country benchmark tables on hidden sheets; copied after first project AES-GCM encrypted per market inside the compiled C++ executable
Elasticity & Rebate Solver Exposed worksheet formulas and unlockable VBA routines Compiled C++ machine code called via =HEOR.OPTIMAL_REBATE()
Market-by-Market Entitlements All 6 ASEAN countries unlocked for every recipient Cryptographic per-country check; unlicensed markets return #LICENCE
Client IT Footprint Macro security warnings; prone to accidental formula edits Zero-install folder/USB launcher opening a fresh verified sheet every start

Compiled C++ HEOR Solver & Custom XLL Worksheet Functions

We translated the consultancy's non-linear pricing algorithms and VBA macros into a standalone, compiled C++ calculation engine linked to Excel through a thin native .xll add-in.

  • Native Custom Worksheet Formulas: Analysts interact with the protected engine using intuitive Excel formulas such as =HEOR.OPTIMAL_REBATE(market, indication, list_price), =HEOR.SPILLOVER_RISK(launch_sequence), and =HEOR.UPTAKE_CURVE(copay_tier).
  • Automatic Lifecycle Supervision: The XLL add-in automatically starts and monitors the companion C++ engine process. If the engine process is terminated externally, it restarts seamlessly; when Excel closes, the engine exits automatically.

Have a similar challenge?

Our experts can help you build custom integrations and plugins tailored to your business workflows.

Book a free consultation

Country- and Indication-Scoped Per-Calculation Licensing

To enable tiered commercial licensing across Southeast Asia, we embedded cryptographic entitlement checks directly inside the C++ calculation engine's formula evaluation pipeline—building on the same calculation-locked architecture proven in our Southeast Asian actuarial C++ engine case study →.

  • Encrypted ASEAN Benchmark Vault: Payer willingness-to-pay curves and hospital formulary discount tables for Singapore, Malaysia, Thailand, Vietnam, Indonesia, and the Philippines are encrypted per market inside the compiled binary.
  • Cell-Level Entitlement Enforcement: Every time Excel recalculates, the engine checks whether the user's hardware dongle or signed licence file includes the requested country code. If a client licensed only for Singapore and Malaysia changes the country dropdown to Thailand, the formula cells immediately return #LICENCE—prompting a seamless subscription upgrade without breaking the rest of the workbook.

Automated Reference Testing & Zero-Install Deployment

In health-economics and payer negotiations, even a fraction of a percent in calculation drift is unacceptable. We paired the migration with rigorous automated verification and frictionless corporate deployment.

  • Zero-Difference Parity Suite: An automated test runner compared the new C++ engine side by side against the consultancy's original Excel/VBA reference workbooks across 300+ multi-country launch scenarios, confirming zero variance across every NPV, budget-impact, and rebate output.
  • Zero-Install Portable Package: Delivered as a self-contained folder with a portable launcher that opens a fresh, verified master workbook on each start—requiring no admin rights, no MSI installer, and no Windows Registry modifications on pharma client laptops.

Key Challenges

01

Exposed ASEAN Payer Benchmark Tables

Proprietary country-by-country payer willingness-to-pay thresholds, hospital discount tiers, and patient elasticity curves were stored on hidden Excel sheets that clients could easily extract.

02

Readable VBA Pricing & Rebate Solvers

Non-linear rebate-tier optimisation and cross-border reference-pricing spillover rules written in VBA could be unlocked and copied in minutes.

03

No Per-Country Licence Enforcement

The consultancy wanted to license the workbook by individual ASEAN country market and therapy area, which was impossible to enforce inside a standard .xlsm file.

04

Strict Offline Pharma Data-Privacy Rules

Pharma market-access executives refused to upload sensitive pre-launch drug pricing assumptions to a third-party cloud web app and needed the model to remain 100% offline inside desktop Excel.

Results & Outcomes

By moving their calculation brain and ASEAN benchmark tables out of VBA and into a compiled C++ engine with a thin XLL bridge, the consultancy transitioned from one-off project deliverables to a tiered, country-by-country annual licensing model across Southeast Asia.

01

100% Concealed Payer Benchmarks & Logic

Every ASEAN willingness-to-pay threshold, hospital formulary discount table, and non-linear rebate solver was removed from the spreadsheet and encrypted inside the compiled C++ engine.

02

Tiered 6-Market Country Licensing

Cell-level cryptographic entitlement checks allowed the consultancy to license Singapore, Malaysia, Thailand, Vietnam, Indonesia, and the Philippines individually, returning #LICENCE whenever an unlicensed market is queried.

03

Zero Calculation Variance Across 300+ Scenarios

Automated side-by-side reference tests confirmed exact numerical parity between the compiled C++ engine and the original Excel/VBA HEOR workbooks.

04

Zero-Install Offline Pharma Compliance

Market-access teams run the entire suite 100% offline from a local folder or USB drive with zero admin rights or registry entries, satisfying strict pharmaceutical data-security audits.

100%
ASEAN Payer Benchmarks & VBA Solver Concealed in C++
6 Markets
Country-Scoped Licence Tiers Enforced Per Calculation
0
Variance Against Original Excel/VBA Reference Models
0 Admin
Installer or Registry Rights Needed on Client PCs
FAQ

Frequently Asked Questions

Common questions about this topic, answered by our engineering team.
When a user calls a custom function like =HEOR.OPTIMAL_REBATE("TH", indication, price), the thin XLL passes the country code to the compiled C++ engine. The engine checks the user’s cryptographic licence or hardware dongle for Thailand entitlement before decrypting the Thai benchmark table; if unlicensed, the cell immediately displays #LICENCE.
Pre-launch pharmaceutical pricing and reimbursement strategies are among the most sensitive commercial secrets in life sciences. Pharma corporate security teams strictly prohibit uploading unreleased launch prices to external cloud web apps, and analysts need to link model outputs directly into their local Excel board packs.
No. The distributed .xlsx workbook contains zero benchmark tables or hidden data sheets. All regional reimbursement thresholds and elasticity coefficients are AES-encrypted inside the compiled C++ executable and are only unlocked in memory for licensed country queries.
We built an automated reference testing suite that fed over 300 real-world ASEAN therapy launch scenarios into both the original VBA workbook and the new C++ engine side by side, verifying that every rebate tier, uptake curve, and NPV output matched with zero difference.
The optional portable launcher stores a cryptographically signed master copy of the workbook and opens a clean, verified instance at the start of every session, ensuring that damaged or tampered workbooks are never reused.
Have a similar challenge?

Let's build your success story.

A 30-minute call with a principal engineer. We'll discuss your challenges, propose architecture, and outline a roadmap.

Talk to a strategist
Have a similar project? Let's discuss your requirements.
Book a call
EmailWhatsApp