Domain-Driven Design

Domain-Driven Design (DDD) is a software design method basing code on a model of a subject worked out with experts, such as running health economic models.

Status
Published, version 1.0.1
Last reviewed
16 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Domain-Driven Design in Health Economic Modelling

Domain-Driven Design (DDD) is a method for designing software in which the structure of the code and the words used inside it follow a model of the subject that developers work out with people who know that subject well. It matters to health economists once a cost-effectiveness model or an appraisal workflow is built and maintained as software. DDD asks which words mean what, where one model stops and the next begins, and which rules must always hold, and the answers affect how easily the software behind a health economic model can be checked, rerun and handed on. The method says nothing about which treatment offers value for money, because it concerns how the software and the shared language behind such answers are organised.

Where the term comes from and who uses it

DDD is a software design term and is new to health economics. Three sources define it.

  • Eric Evans named the approach and set it out as a catalogue of patterns in his book Domain-Driven Design, Tackling Complexity in the Heart of Software, which Addison-Wesley published in August 2003 with a 2004 copyright date, and Evans's later reference calls it his 2004 book.
  • Evans's Domain-Driven Design Reference (2015) is a free summary of the definitions and patterns, released under a Creative Commons Attribution licence. It sums up the method in three points.
  • Martin Fowler describes DDD as an approach that centres development on programming a domain model with a rich understanding of the processes and rules of a domain. He credits Evans with a vocabulary for an older practice of representing the underlying domain in software.

The wiki uses the term exactly as these sources do. A search of Europe PMC in November 2026 for the term together with cost-effectiveness, health economic, health technology assessment or decision model returned six records, all on health information systems or general software architecture. None applied DDD to economic evaluation, so the health economics examples here are the wiki's own application of the method.

Evans's three-point summary

Evans's reference describes DDD as an approach to complex software in which the team focuses on the core domain, explores models in a creative collaboration of domain practitioners and software practitioners, and speaks a ubiquitous language within an explicitly bounded context. The wiki gives each idea its own page (Core Domain, Domain Expert, Ubiquitous Language and Bounded Context), so only the health economics reading is sketched here.

The reference also fixes the two words the method rests on. A domain is "a sphere of knowledge, influence, or activity", and a model is "a system of abstractions that describes selected aspects of a domain and can be used to solve problems related to that domain." Both words are used in Evans's sense throughout this page, which differs from the wiki's own Health Economics domain and its subdomains. In health economics the domain practitioners are the health economists, clinicians and reviewers who know what a model must represent, and the software practitioner is whoever writes the code, who may be a health economist writing the model in R. The core domain is the most valuable and specialised part of the work, for example the logic that turns transition probabilities, costs and utilities into QALYs and an ICER, while file handling, screens and report layout play a supporting role.

Strategic design and tactical patterns

Evans states that DDD addresses both tactical and strategic design. His reference groups strategic design, which deals with large systems and several teams, into context mapping (bounded contexts and named relationships between them, such as shared kernel, conformist, anticorruption layer and published language), distillation (separating the core domain from generic subdomains) and large-scale structure.

Tactical design supplies building blocks for code, among them entities, value objects, domain events, services, aggregates and repositories. Evans describes an entity as an object with "a thread of continuity and identity" through its lifecycle, and asks that a value object, which matters only for its attributes, be treated as immutable. Fowler adds that the core notions of DDD are conceptual and apply with any programming approach, especially the strategic ones, so they do not require object-oriented code.

Domain-Driven Design applied to running a model

The wiki's Domain Layer starts with a Model Execution context, whose job is to run a health economic model with a chosen set of inputs and record what came out. Its working language includes base case, scenario, parameter set, model run, output and version. A domain model for the context might separate a model specification, a parameter set, a model run and a result set, and a rule might require every reported result set to name the model version and the inputs that produced it.

Health economics already has rules pointing the same way, written without DDD. The NICE manual for technology appraisal (PMG36, section 5.5.15) requires a company that submits a fully executable model to give NICE full access to the programming code and says it should ensure that the submitted versions of the model match the written evidence submission. The TECH-VER checklist by Büyükkaramikli and colleagues asks whether all the results in the report, including the uncertainty analysis results, can be generated from the model. A Model Execution context would state such conditions as named rules.

Evans's first chapter shows why naming matters. A shipping rule, "Allow 10% overbooking", sat as a guard clause inside a booking method, where Evans judged it unlikely that any business expert could read the code to verify it, and the design was changed so the rule became a named overbooking policy. Health economic models hide knowledge in a similar way when an input sits as a hard-coded value inside a formula, and TECH-VER's completeness check looks for "no hidden sheets/ranges/modules, no links to external programs, no hardcoded values, and no password protection". The DARTH coding framework of Alarid-Escudero and colleagues divides a decision analysis into five components (model inputs, model implementation, calibration, validation and analysis) and proposes naming conventions in which function names begin with an action. It never mentions DDD, though consistent names in code cover only one part of what a ubiquitous language asks for.

Worked example with entities and values

All numbers here are illustrative. An individual patient simulation follows 1,000 simulated people for 40 annual cycles. Each person is an entity, so the run tracks 1,000 identities and 1,000 × 40 = 40,000 person-cycle states, each traceable to one person. A unit cost of GBP 150 in 2025 prices is a value object. Moving to 2026 prices with an illustrative 3% rise gives 150 × 1.03 = GBP 154.50, a new value replacing the old one while each person keeps the same identity. The code therefore tracks identity only where tracing needs it.

A second context with institutional rules

An HTA Appraisal context shows a different kind of language, made of steps such as submitting evidence, requesting clarification and issuing a recommendation. Its rules come from an agency's process manual. Examples are the clarification timings in PMG36 sections 5.6.3 and 5.6.4.

Within a NICE appraisal context those timings can be written as rules. Another health technology assessment agency works to its own process, so a context built on PMG36 is a NICE appraisal context and does not describe HTA in general. The two contexts meet where the results of a model run become evidence in a submission, and the Context Map page describes how such a crossing is recorded.

Domain-Driven Design beside ontologies and standards

Fowler explains that DDD gave up the idea of one unified model for a whole large system, quoting Evans that total unification "will not be feasible or cost-effective". DDD divides a system into bounded contexts, each with its own unified model, and different contexts may hold different models of common concepts with mechanisms to map between them. The wiki's ontology work aims at definitions shared across the whole wiki, so the Domain Layer sits beside it and does not replace it.

The word model carries two meanings here. In DDD a domain model of the Model Execution context is a model of the work of running a health economic model, and the health economic model itself is one of the things that work handles. DDD does not by itself make systems exchange data. Evans's published language pattern points to well-documented shared languages and notes that many industries set them up as data interchange standards, so digital interoperability still depends on such standards being agreed.

Limits and common misreadings

Fowler presents DDD as particularly suited to complex domains. A small spreadsheet model built once for one decision may gain little from a formal context map, while long-lived models and shared modelling platforms have more to gain. Model code can follow DDD closely and still encode a wrong clinical assumption, so model validation and technical verification remain separate checks.

A bounded context, typically a subsystem or the work of one team in Evans's words, is neither a folder nor one of the wiki's subdomains of health economics. A ubiquitous language is more than a glossary, because Evans asks teams to use it in speech, writing and code and to treat a change in the language as a change to the model.

Sources

Library

Publications

4
  • Other

    Domain-Driven Design Reference: Definitions and Pattern Summaries — Evans E, 2015 (Domain Language)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Domain-Driven Design, Domain (Domain-Driven Design), Subdomain (Domain-Driven Design), Core Domain, Bounded Context, Ubiquitous Language, Domain Model, Context Map, Strategic Design, Domain Expert, Entity (Domain-Driven Design), Value Object, Aggregate (Domain-Driven Design), Invariant (Domain-Driven Design), Anticorruption Layer, Published Language, Domain Event, Domain Service, Shared Kernel and Open Host Service, where it is cited as a reference for these concepts.

  • Other

    Bounded Context — Fowler M, 2014 (martinfowler.com)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Domain-Driven Design, Domain (Domain-Driven Design), Bounded Context, Ubiquitous Language, Context Map and Shared Kernel, where it is cited as a reference for these concepts.

  • Other

    Domain Driven Design — Fowler M, 2020 (martinfowler.com)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Domain-Driven Design, Domain (Domain-Driven Design), Strategic Design, Core Domain, Domain Model and Aggregate (Domain-Driven Design), where it is cited as a reference for these concepts.

  • Book

    Domain-Driven Design: Tackling Complexity in the Heart of Software — Evans E, 2003 (Addison-Wesley)

    Book or book chapter listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Domain-Driven Design, Domain (Domain-Driven Design), Core Domain, Bounded Context, Context Map, Published Language, Open Host Service, Ubiquitous Language, Domain Model, Strategic Design, Domain Expert, Entity (Domain-Driven Design), Invariant (Domain-Driven Design), Anticorruption Layer, Shared Kernel, Value Object and Domain Service, where it is cited as a reference for these concepts.

Frequently Asked Questions (6)

  • What is Domain-Driven Design?

    Domain-Driven Design (DDD) is a software design method basing code on a model of a subject worked out with experts, such as running health economic models.

    Source: Evans 2015

  • Where does the term Domain-Driven Design come from?

    Domain-Driven Design is a software design term and is new to health economics. Eric Evans set out the approach as a catalogue of patterns in a book that Addison-Wesley published in 2003, and Martin Fowler traces the name to that book. Fowler credits Evans with a vocabulary for an older practice, since representing the underlying domain was already part of database and object-oriented work in the 1980s and 1990s. Fowler describes the approach as particularly suited to complex domains, where a lot of often-messy logic needs to be organised.

    Source: Fowler 2020

  • What are the three points in Evans's summary of Domain-Driven Design?

    Evans summarises Domain-Driven Design as an approach to complex software in which the team focuses on the core domain, explores models in a creative collaboration of domain practitioners and software practitioners, and speaks a ubiquitous language within an explicitly bounded context. In a health economics setting the domain practitioners are the health economists, clinicians and reviewers who know what a model must represent. The core domain could be the logic that turns transition probabilities, costs and utilities into QALYs and an ICER, while file handling and report layout play a supporting role.

    Source: Evans 2015

  • How can Domain-Driven Design be applied to running a health economic model?

    In the wiki's application of Domain-Driven Design, a Model Execution context covers running a health economic model with a chosen set of inputs and recording what came out. Its working language includes base case, scenario, parameter set, model run, output and version, and its domain model might separate a model specification, a parameter set, a model run and a result set. A rule of the context might require every reported result set to name the model version and inputs behind it. The NICE manual already says that a company submitting a fully executable model should ensure that the submitted versions of the model match its written evidence submission.

    Source: NICE PMG36 (2022, updated 2026)

  • How does Domain-Driven Design distinguish entities from value objects in a health economic model?

    Evans describes an entity as an object with a thread of continuity and identity through its lifecycle, and a value object as something that matters only for its attributes and is treated as immutable. In an illustrative individual patient simulation of 1,000 people over 40 annual cycles, each person is an entity, giving 1,000 identities and 40,000 person-cycle states that can each be traced to one person. A unit cost of GBP 150 in 2025 prices is a value object. An illustrative 3% price rise produces a new value of GBP 154.50, while every simulated person keeps the same identity.

    Source: Evans 2015

  • Does Domain-Driven Design make health economic models valid or interoperable?

    Domain-Driven Design addresses how model software and its language are organised, yet model code can follow it closely and still encode a wrong clinical assumption. Model validation and technical verification therefore remain separate checks. Evans's published language pattern points teams to well-documented shared languages and notes that many industries set them up as data interchange standards. Exchange of data between systems still depends on such standards being agreed, which the method does not supply by itself.

    Source: Evans 2015

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 16 Nov 2026

Content version: 1.0.1

Canonical Identity

Term code
HS-HP-DH-110

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/domain-driven-design