Concept Architecture
Bounded Context in Health Economic Modelling
A bounded context, in Domain-Driven Design (DDD), marks the explicit limit of one model and of the vocabulary that goes with it. Inside that limit each term carries one agreed meaning, while the same word may mean something different elsewhere. Health economic work meets the problem the idea was built for whenever modellers, reviewers and appraisal committees use words such as input data, model run or strategy with different referents. The wiki's Domain Layer uses bounded contexts to scope the working language of activities such as running a model or appraising a technology, without forcing one definition on the whole discipline. That Domain Layer is a section of the wiki applying DDD to health economics, not the layer of software code that Evans's Layered Architecture pattern sets aside for the domain model.
Origin of the term and who uses it
Bounded Context is a software design term and is new to health economics. Eric Evans introduced it in his book Domain-Driven Design, published on 20 August 2003, where the publisher's contents list shows it opening the chapter on maintaining model integrity. His free reference booklet of 2015 defines a bounded context as a description of a boundary, typically a subsystem or the work of a particular team, within which a particular model is defined and applicable. The same booklet summarises DDD as speaking a ubiquitous language within an explicitly bounded context.
Martin Fowler calls Bounded Context a central pattern in DDD and the focus of its strategic design section, and Vaughn Vernon presents it as the strategic design pattern for segregating domain models. The wiki label matches the term these sources use. None of the health economics sources read for this page, including the NICE manual PMG36, uses the expression, so its application to health economic modelling is the wiki's own.
Why one model cannot cover a whole field
Evans observes that multiple models are in play on any large project, because subsystems serve different user communities and independent teams solve the same problem in different ways. When code based on distinct models is combined, he writes, software becomes buggy and difficult to understand, and it becomes unclear where a model should not be applied. His remedy is to define explicitly the context within which a model applies and to keep its concepts and terms strictly consistent within those bounds.
Fowler adds the linguistic reason. Different groups in a large organisation use subtly different vocabularies, and polysemes that conversation smooths over break down in software, as when meter at an electricity utility could mean a grid connection or the physical device. He quotes Evans that total unification of the domain model for a large system will not be feasible or cost-effective, so DDD divides a large system into bounded contexts, each with a unified model. Fowler names human culture as usually the dominant factor in drawing the lines, since a different model is needed when the language changes.
Words that change meaning across health economic work
Health economics has its own polysemes, and they tend to sit at the joins between activities. The examples come from published sources on modelling software and appraisal methods. None of these sources uses DDD, and reading the differences as context boundaries is the wiki's interpretation.
| Expression | Sense in one setting | Sense in another setting |
|---|---|---|
| input data | In the hesim R package, the data on the target population and treatment strategies from which disease progression, QALYs and costs are simulated, kept apart from the estimation datasets used to fit the statistical models | In NICE PMG36 section 4.10.2, the model's parameter values, to be tabulated with the central value, measures of precision and sources |
| strategy | In hesim, each treatment strategy of interest, identified by an integer strategy ID | In NICE PMG36 sections 3.4.3 and 3.4.5, a search strategy, the searches developed to find studies for a systematic review |
A modelling context could keep input data in the hesim sense and give the NICE sense another name, provided the choice is made once and recorded where it holds.
How a boundary is drawn and kept
Evans asks for boundaries to be set explicitly in terms of team organisation, usage within parts of an application and physical forms such as code bases and database schemas. Inside the boundary he recommends continuous integration, frequent merging of code with automated tests to flag fragmentation, noting that as few as three or four people in one context can meet serious problems. He also warns that breaking a system into ever-smaller contexts eventually loses a valuable level of integration and coherency, so every boundary has a cost as well as a benefit.
The wiki's Domain Layer takes as its unit an activity with its own rules rather than a chapter of a textbook. A candidate Model Execution context is responsible for turning a specified model and a set of inputs into results. Inside it sit the base case, each scenario analysis, the parameter values, the model run and the stored results. Appraisal decisions, evidence synthesis and the choice of comparators sit outside it, even though their outputs feed in.
Rules then attach to terms that have one meaning. A rule that every reported result names the model version and inputs that produced it is easier to check when version, input set and result are defined inside one boundary. Section 5.5.15 of the NICE manual states the appraisal side of the concern, asking a company that submits a fully executable model to give full access to the code and ensure that the submitted versions of the model and the written evidence submission match.
Relations with neighbouring contexts
A bounded context is rarely isolated, so DDD pairs it with the context map. Evans's guidance is to identify each model in play, name each bounded context, make those names part of the ubiquitous language and describe the points of contact, with explicit translation for any communication.
In health technology assessment the hand-over between modelling and appraisal is already formal. Under section 5.5.16 of the NICE manual, NICE offers to send the executable model to stakeholders during technical engagement or consultation, so the model is read outside the setting where it was built, within the appraisal process. The DDD relationship pattern for a given hand-over should be chosen only after the hand-over has been studied.
Worked example counting model runs in two settings
The illustrative numbers below show how an undefined term changes a reported figure. Suppose a cost-effectiveness model compares three strategies. The analysis runs a probabilistic base case and two scenario analyses, which are also probabilistic as NICE PMG36 section 4.7.13 says scenario analyses in general should be, and each analysis uses 1,000 sampled parameter sets.
where is the number of model runs, is the number of analyses and is the number of parameter sets per analysis. This follows the wiki's model run sense, one execution with one set of input values returning results for every strategy. With three analyses and 1,000 parameter sets the count follows directly.
where 3 is the number of analyses and 1000 is the number of parameter sets per analysis. A reviewer who treats each strategy's evaluation as a separate run counts differently.
where is the reviewer's count of runs and is the number of strategies, here three. Substituting the same values gives a larger figure.
where the factors are the analyses, the parameter sets and the strategies in that order. Both counts describe the same computation, yet one report would state 3,000 runs and the other 9,000. A Model Execution context with one definition of model run makes the figure unambiguous, and a reviewer who counts differently needs an explicit translation.
How it differs from nearby ideas
Several neighbouring ideas are easily confused with a bounded context, and the wiki already has its own domain, subdomains and semantic pages. In DDD a subdomain is a part of the domain being modelled, and a bounded context is the boundary of a model built for it. Vernon's index lists pages on aligning a bounded context with a single subdomain, which shows the two are kept distinct even where they coincide. Neither is the same as the wiki's own subdomains of health economics, which organise topics for readers rather than models for software.
An ontology aims at a formal specification of concepts that people and software can share across settings, while a bounded context limits where one model's meanings hold and accepts that other contexts differ, so the two can be used side by side. A bounded context does not by itself deliver digital interoperability, since exchange between contexts still needs explicit translation.
The domain of applicability of a health economic model is the range of populations, treatments, outcomes and time horizons over which the model has been tested and judged suitable. It concerns the validity of a model's results. A bounded context concerns the consistency of the language and design used to build and run it.
Where bounded contexts are misread in health economic work
DDD is a body of design practice, and its use in health economics is at an early stage. Three misreadings are likely when the idea is carried across.
- Equating a context with a team, a code base or a service. Evans lists team organisation and code bases among the ways to set a boundary, and Fowler notes that several contexts can exist within one application, as when in-memory and relational database models of the same thing differ. Evans's own definition names a subsystem or a team's work as the typical case, so these are usual signs of a boundary, but the boundary itself is defined by where one model holds.
- Expecting one context for the whole discipline. A single glossary for all of health economics would recreate the unified model that Evans judged not feasible for large systems. Agency-specific language, such as the process terms in the NICE manual, belongs in a context scoped to that agency rather than being treated as universal HTA vocabulary.
- Treating the pattern as tested method. Evans describes the DDD patterns as distilled from successful practice on software projects where modelling brought large benefits. No source read for this page evaluates bounded contexts in health economic modelling, so their value there remains a design judgement to be checked in use.
Sources
- Evans E. Domain-Driven Design: Tackling Complexity in the Heart of Software. Boston: Addison-Wesley; 2003. Publisher page and table of contents. https://www.informit.com/store/domain-driven-design-tackling-complexity-in-the-heart-9780321125217
- Evans E. Domain-Driven Design Reference: Definitions and Pattern Summaries. Domain Language, Inc.; 2015. Licensed CC BY 4.0. https://www.domainlanguage.com/wp-content/uploads/2016/05/DDD_Reference_2015-03.pdf
- Fowler M. BoundedContext. martinfowler.com bliki; 15 January 2014. https://martinfowler.com/bliki/BoundedContext.html
- Incerti D, Jansen JP, Clements M. hesim: Health Economic Simulation Modeling and Decision Analysis. R package version 0.5.8; 2026. Vignette: Introduction to hesim. https://cran.r-project.org/web/packages/hesim/vignettes/intro.html
- National Institute for Health and Care Excellence. NICE technology appraisal and highly specialised technologies guidance: the manual (PMG36). Published 31 January 2022, last updated 13 October 2026. Sections 3.4.3, 3.4.5, 4.7.13, 4.10.2, 5.5.15 and 5.5.16. https://www.nice.org.uk/process/pmg36
- Vernon V. Domain-Driven Design Distilled. Boston: Addison-Wesley; 2016. Publisher sample (chapter 1, contents and index). https://www.ciscopress.com/content/images/9780134434421/samplepages/9780134434421.pdf
Related Concepts (3)
Library
Publications
4
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.
Domain-Driven Design Distilled — Vernon V, 2016 (Addison-Wesley)
Book or book chapter listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Subdomain (Domain-Driven Design), Core Domain, Bounded Context, Context Map, Strategic Design, Domain Expert, Shared Kernel, Open Host Service, Ubiquitous Language and Anticorruption Layer, where it is cited as a reference for these concepts.
BookView source →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.
Web (Open Access)View source →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.
BookView source →
Frequently Asked Questions (6)
What is Bounded Context?
A bounded context is the explicit boundary inside which one model and its terms keep one meaning, such as a context for running a health economic model.
Source: Evans 2015
Where does the term Bounded Context come from?
Bounded Context comes from software design, where Eric Evans introduced it in his book on Domain-Driven Design. His 2015 reference booklet defines it as a description of a boundary, typically a subsystem or the work of a particular team, within which a particular model is defined and applicable. The term is new to health economics, and no health economics guidance read for the wiki uses it. The wiki applies it to scope the working language of activities such as running a model.
Source: Evans 2015
Why would health economic modelling use a Bounded Context?
Health economic work uses the same words with different meanings at the joins between activities, and a Bounded Context fixes one meaning inside a stated limit. The hesim R package shows the discipline involved, since it gives separate names to the estimation datasets used to fit statistical models for disease progression, utilities and costs and to the input data on the target population and treatment strategies from which costs and QALYs are simulated. A modelling team that records which sense of each term holds in its own setting can avoid silent errors when results pass between modellers, reviewers and committees.
Source: Incerti et al. 2026
How does a Bounded Context relate to a context map in Domain-Driven Design?
A Bounded Context marks where one model applies, and a context map records how several such contexts connect. Evans asks teams to identify each model in play and to name each bounded context, making those names part of the ubiquitous language. The map then describes the points of contact between the models, with explicit translation for any communication between them. In health technology assessment, the hand-over of an executable model from the modelling team to the appraisal side is one connection a context map could record, and the pattern used for it is best chosen only after the hand-over has been studied.
Source: Evans 2015
How could a Bounded Context be used for running a health economic model?
A candidate Model Execution context drawn as a Bounded Context would be responsible for turning a specified model and a set of inputs into results. Base case, scenario analysis, parameter values, model run and stored results would each carry one agreed meaning inside it, while appraisal decisions and the choice of comparators would sit outside. Rules such as naming the model version and inputs behind every reported result are then easier to check. The NICE manual asks a company to ensure that the submitted model and the written evidence submission match.
Source: NICE PMG36 (2022, updated 2026)
What are common mistakes when applying a Bounded Context in health economics?
One mistake is to treat a Bounded Context as the same thing as a team, a code base or one software service. Fowler notes that several contexts can exist within a single application, as when in-memory and relational database models differ. A second mistake is expecting one glossary to serve the whole discipline, since Evans judged total unification of the domain model for a large system not feasible or cost-effective. Agency-specific language, such as NICE process terms, belongs in a context scoped to that agency.
Source: Fowler 2014
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
- Persistent URI
- https://healtheconomics.wiki/concept/bounded-context
- Term code
- HS-HP-DH-114
Stable URI · Machine-readable · Resolvable · CC BY 4.0
