Concept Architecture
Data Model in Databases and Linked Data
A data model fixes the general shape that data must take in a whole class of systems, the operations software may apply to that data, and the rules that decide which states of the data count as valid. The relational model behind relational databases and the graph of triples behind the Resource Description Framework are two examples. When the cost tables, claims extracts and patient-level datasets that feed a health economic model are held in a database, its data model decides what can be recorded and which errors software can catch.
Who uses the term and how
The term comes from database research and is not a health economics term. In his 1981 Turing Award lecture, published in 1982, Codd defines a data model as a combination of at least three components and describes the relational model as the first data model defined in that sense. The W3C Recommendation RDF 1.1 Concepts and Abstract Syntax calls the abstract syntax of RDF a data model that links all the RDF languages and specifications. Allemang, Hendler and Gandon note that the name Semantic Web stresses the exchange of data models, schemas and vocabularies along with the datasets themselves. The wiki's label follows this computing usage, and the word model here has nothing to do with a decision model.
Three components of a data model
Codd stresses that a data model is more than a data structure, even though the main data models are named after their main structures. His three components are a set of data structure types, a set of operators or rules of inference that retrieve, derive or modify data, and a set of general integrity rules that define which database states, or changes of state, are consistent. He argues that the three must be designed together, because structures defined alone leave their behaviour open.
Data structure
The structure types are the building blocks every database in the model is made from. In the relational model they are domains, relations, attributes, tuples and keys, and a relation is shown as a table whose attributes become columns and whose tuples become rows. Codd points out that a relation is a mathematical set and that the order of rows and of columns is irrelevant. In RDF the building block is the triple of subject, predicate and object, and a set of triples is an RDF graph whose nodes are IRIs, literals or blank nodes. RDF 1.1 Concepts also defines graphs as mathematical sets, so adding or removing a triple gives a different graph.
Operators and rules of inference
The second component says what software can do with any valid instance of the structures. Codd names the algebraic operators of the relational model, such as select, project and join, which turn relations into new relations. For RDF the counterparts are the formal semantics, which decide what follows from a graph, and the SPARQL query language. RDF 1.1 Concepts says the data model also links syntaxes such as Turtle and JSON-LD and the RDF Schema vocabulary.
Integrity rules and data constraints
Constraints on the data make up the third component. Codd's general integrity rules apply to every database built on the model, and for the relational model they are entity integrity and referential integrity. A particular database can add its own constraints, which, as Codd notes, narrow the set of consistent states further. The RDF data model itself is very permissive, since any node may in principle carry any property. Constraints are therefore stated separately, and the Shapes Constraint Language (SHACL) validates an RDF graph against a set of conditions written as shapes.
Data models in health economic evidence work
Health economists meet data models when observational data are prepared for analysis. The OMOP Common Data Model, described by the OHDSI community in The Book of OHDSI, harmonises data such as electronic health records and claims data from many sources into one person-centric relational design, where every clinical event table links to a person table. The book lists two health economics data tables and explains how source codes map to standardised vocabularies. It adds that the model needs no particular database technology.
For real-world evidence submitted to NICE, the NICE real-world evidence framework (ECD9) says that common data models standardise the structure, and sometimes the coding systems, of different data sources. It asks that, where a study's data have been converted to a common data model, the model and its version be reported and full details of the mapping be made available, including any information loss, so that the study can be reproduced.
The Health Economics Ontology (HEO), published at healtheconomics.wiki/ontologies/heo, uses the RDF data model. Release 2.0.0 holds the same OWL ontology in an RDF/XML file and a Turtle file, with a separate SHACL file of record rules, so structure and constraints sit in different files and different standards.
Illustrative example with a drug cost table
All names and numbers in this example are illustrative. A costing team holds pack prices for three drugs and derives a cost per unit for each.
where is the cost per unit of drug in GBP, is the pack price of drug in GBP and is the number of units in a pack of drug .
Drug A costs GBP 120.00 for 30 units, giving 120.00 ÷ 30 = GBP 4.00 per unit. Drug B costs GBP 45.00 for 10 units, giving 45.00 ÷ 10 = GBP 4.50 per unit. Drug C is entered as GBP 300.00 for 0 units, a typing error, so its cost per unit cannot be computed.
In a relational table with a database-specific constraint that units per pack must exceed zero, the row for drug C is refused when it is inserted, and the table holds 2 valid rows. In RDF the same data become three resources, each with one type statement and two property statements, so the graph holds 3 × 3 = 9 triples and accepts the zero. A SHACL shape stating that units per pack must exceed zero then reports 1 violation, for drug C. Both routes catch the error at different points, and only because someone stated the rule.
Boundaries with nearby ideas
A data model is general, while a schema applies it to one database and adds that database's own constraints. A property graph is a graph data model like RDF, but its nodes and edges both carry property-value pairs. A semantic data model is a kind of data model that names objects and their relationships explicitly, and an ontology in OWL adds formal meaning that a reasoner can use. A domain model in Domain-Driven Design covers the things, rules and actions of a task, so it reaches well beyond how data are stored. A health economic model, by contrast, estimates costs and outcomes from data that some data model has already shaped.
Limits and common misreadings
Conforming to a data model does not make the data right. A table can satisfy every integrity rule and still hold a wrong price, so data quality checks remain a separate task. Converting data between data models can also lose detail.
Sources
- Codd EF. Relational database: a practical foundation for productivity. Communications of the ACM. 1982;25(2):109-117. https://doi.org/10.1145/358396.358400
- Cyganiak R, Wood D, Lanthaler M, editors. RDF 1.1 Concepts and Abstract Syntax. W3C Recommendation, 25 February 2014. https://www.w3.org/TR/rdf11-concepts/
- Hull R, King R. Semantic database modeling: survey, applications, and research issues. ACM Computing Surveys. 1987;19(3):201-260. https://doi.org/10.1145/45072.45073
- Hitzler P, Krötzsch M, Parsia B, Patel-Schneider PF, Rudolph S, editors. OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation, 11 December 2012. https://www.w3.org/TR/owl2-primer/
- Knublauch H, Kontokostas D, editors. Shapes Constraint Language (SHACL). W3C Recommendation, 20 July 2017. https://www.w3.org/TR/shacl/
- Observational Health Data Sciences and Informatics. The Book of OHDSI. Chapter 4, The Common Data Model (chapter lead Blacketer C). 2021. https://ohdsi.github.io/TheBookOfOhdsi/CommonDataModel.html
- National Institute for Health and Care Excellence. NICE real-world evidence framework (ECD9). Published 23 June 2022, last updated September 2025. https://www.nice.org.uk/corporate/ecd9
- Allemang D, Hendler J, Gandon F. Semantic Web for the Working Ontologist. 3rd edition. ACM Books; 2020. Chapter 1, pages 16 to 17. https://doi.org/10.1145/3382097
- Baines D, Ashley M. Health Economics Ontology (HEO), version 2.0.0, OWL, Turtle and SHACL release files. Intelligent Parameters Ltd; 8 November 2026.
Related Concepts (1)
Frequently Asked Questions (6)
What is Data Model?
A data model is a formal scheme for organising data, with structure types, operators that retrieve or derive data, and rules that keep data consistent.
Source: Codd 1982
What are the three components of a data model according to Codd?
In his 1981 Turing Award lecture, Codd defined a data model as a combination of at least three components. The first is a collection of data structure types, the building blocks from which every database using the model is made. The second is a collection of operators or rules of inference that retrieve, derive or modify the data held in those structures. Last come general integrity rules, which define which database states, or changes of state, count as consistent. Codd argued that the three parts belong together, because structures defined on their own leave their behaviour open.
Source: Codd 1982
How does the RDF data model represent information?
The W3C Recommendation RDF 1.1 Concepts and Abstract Syntax calls the abstract syntax of RDF a data model. Every statement in the RDF data model is a triple of subject, predicate and object, and a set of triples forms an RDF graph. The nodes of a graph are IRIs, literals or blank nodes, so the same IRI can join statements made by separate publishers. The recommendation defines graphs as mathematical sets, which means that adding or removing a triple produces a different graph.
Source: Cyganiak et al. 2014
How is the OMOP Common Data Model organised as a data model?
The Book of OHDSI describes the OMOP Common Data Model as a person-centric relational data model, in which data sit in tables linked by primary and foreign keys. Every clinical event table links to the person table, which gives a longitudinal view of each person's recorded care. Source codes are mapped to standardised vocabularies while the original codes are kept, and the model includes two health economics data tables. The book states that the model does not require any particular database technology.
Source: OHDSI 2021
What does NICE ask about data converted to a common data model?
The NICE real-world evidence framework (ECD9) explains that common data models standardise the structure, and sometimes the coding systems, of different data sources. When the data for a study have been converted to a common data model, the framework asks for the model and its version to be reported. It also asks for full details of the mapping to be made available, including any information loss. NICE states that this information is needed so that the study can be reproduced.
Source: NICE ECD9 (2022, updated 2025)
Is a data model the same as a health economic model?
The word model is shared, but the two ideas come from different fields. A data model, in the sense Codd set out, fixes the structure types, operators and integrity rules for storing and handling data in a whole class of databases. A health economic model, such as a decision tree or a Markov model, combines evidence to estimate the costs and health outcomes of care options. The data model shapes the tables that hold the inputs, and the health economic model performs the calculation that informs a decision.
Source: Codd 1982
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 21 Nov 2026
Content version: 1.0.1
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/data-model
- Term code
- HS-HP-DH-148
Stable URI · Machine-readable · Resolvable · CC BY 4.0
