Your lab changes. Can your data model keep up?

Why Flexible Data Modeling Matters in Laboratory Informatics

Ask a lab why a question about its own data is hard to answer, and the reply usually points to slow queries, dashboards missing key fields, or exports that need heavy cleanup before anyone can use them.

They're real challenges, but they're symptoms. Discoverability is decided when the LIMS data model is defined. In a relational LIMS, the schema is a bet you place at implementation about how you'll always need to query your data. Every time the lab changes, that bet gets tested.

Take a molecular diagnostics lab whose new NGS panel needs reagent lots tied to specific sequencing runs, or a cell therapy manufacturer that qualifies a second viral vector supplier. Either way, the data model never anticipated the new relationship. A change request goes in, and while it waits, lot details land in run comments and side spreadsheets. Six months later, a lot is flagged and QA needs every sample or batch it touched. Answering means pulling exports, matching spreadsheets and hoping nothing was missed.

That's the real cost of a fixed data model. The lab changes faster than the model can, and everything captured in the gap becomes harder to find, relate and trace. Discoverability isn't lost when someone runs the query. It's lost months earlier, when the model couldn't keep up.

Flexible data modeling closes that gap. In Why laboratory data can be so hard to find, trust and use, we described three dimensions that shape data discoverability: Define, Trust and Discover. This post explores the first.

Define is about a data model that keeps pace with the lab, one that can take on new entities and relationships as the lab does. When it can, data is structured from the moment it's created, and the questions teams ask later have answers, including the ones that only exist because the lab has changed. That makes Define the foundation of discoverability, not a convenience feature. The rest of this post looks at what a fixed model really costs, what flexibility requires in practice, and how regulated labs can have it without giving up control.

The data model as the ceiling on discoverability

A data model is a LIMS's definition of what exists in the lab and how those things connect. It has two parts:

  • Entities: the things the lab tracks, such as samples, batches, materials, reagent lots, instruments, analysts and methods
  • Relationships: the connections between them, such as a sample that was run on an instrument, or a lot that was consumed in a run

Together, they set the ceiling on what a lab can discover later. A lab can only find, relate and trace what its data model was built to capture. Finding means locating a record. Relating means seeing how records connect. Tracing means following those connections across several steps, from a lot to every sample, run and result it touched. It's also why the FAIR data principles put so much weight on making data findable and reusable, not just stored. That ceiling isn't fixed, but it can only rise as fast as the model can change.

Search and reporting tools work within that ceiling. They can only return what was captured and connected. That's why Define comes first among the three dimensions of discoverability: as we argued in the first post in this series, discoverability is the result of getting the foundation right, not a reporting layer added on top.

The cost of a fixed data model

Change is the normal state of a lab. A model that's "done" at go-live starts drifting from the lab on day one.

A fixed model costs a lab twice: once while a change waits, and again after it's made. The wait itself is the first cost. In many legacy relational LIMS, changing the model means changing the database, so requests queue behind a small group of specialists, internal or external. Routine changes turn into services engagements, and informatics time goes into maintaining the model instead of improving the lab.

Meaning lost to comments fields and overloaded attributes

While a model change waits, the lab keeps working, and new information has to land somewhere. It goes into free-text comments fields, overloaded attributes that hold more meaning than they were designed for, spreadsheets or side systems. All of it is unstructured data in a domain that depends on structure.

Take a sample marked as failed with the comment "dropped." It could mean the container was dropped and the sample lost. It could mean the concentration readings fell across the assay. It could mean the sample was dropped from the batch. Each meaning leads to a different conclusion in a quality review or an investigation, and none can be recovered with confidence after the fact. Reports and dashboards built on inferred meaning can't be relied on.

The alternative is a defined, easy-to-maintain list of failure reasons. That only works when adding a reason or an attribute is a routine configuration change, not a schema project.

When the change finally lands, a second set of costs begins, and each one makes the next change harder.

Schema history that every report has to carry

Each revision grows the schema and adds complexity. Without significant data migration, deprecated fields stay in place, and the rules for reading the data start to depend on when it was created. A typical example: for samples assayed before 2015, starting concentration lives in a field called "concentration." After 2015, it lives in "initial concentration."

That rule now travels everywhere the data goes. Every report that spans both periods has to apply both versions of the logic, and so does every process that transforms the data for mining or loads it into a warehouse. A schema change is never only a LIMS change. It propagates across every part of the organization that uses the data.

Ripple effects of a new entity type

Adding a new sample or specimen type after go-live looks like a contained change. Most of the impact lands at the front of the workflow. Integrations may need updates before the new type can be accessioned at all. Then the system needs to know where it goes next: either the new entity arrives with its destination specified, or routing logic has to infer it from the entity's type.

That inference is where problems hide. Routing written with a broad "everything else" rule works until a new type arrives that the rule was never meant to catch. The flaw can sit unnoticed through a version or more, and surfaces only once the new material is already in the system.

Once an extract has been created and quantified, routing depends much less on where the material came from, so the middle of the workflow is usually stable. The back end still moves: a new entity type may need its own analysis pipeline, and it almost always needs a new report. The schema change is often the smallest part of the work. The larger cost is finding, updating and retesting the logic, integrations, pipelines and reports around it, and being able to see clearly what a change will touch before it ships.

The second LIMS

The costs peak when the lab takes on something new that doesn't map cleanly onto a schema built for what came before, while the existing work can't be put at risk.

The safest path is to bolt separate tables onto the side of the schema. Sometimes it's to run the new work in a separate LIMS altogether, with higher costs and more training to support both. Teams end up building around the LIMS instead of in it.

What flexible data modeling actually means

"Flexible" is easy to claim. These five criteria describe what a data model that keeps pace with the lab looks like in practice, and they work as evaluation criteria for any LIMS.

  1. Configuration, not code. Authorized users define entities and relationships through the UI, without database changes or custom development.
  2. Structured as it's captured. When a workflow needs to record something new, the field and its relationships are defined in that workflow step, so the data is structured and connected from the moment it's entered, not reconstructed later from comments or spreadsheets.
  3. Additive change. New entity types and relationships extend the model without restructuring existing data or breaking existing queries.
  4. Controlled change. Model changes are permission-based, made at the configuration level, with an attributable record of who changed what.
  5. A model that mirrors the lab. The model reflects how work actually happens, rather than forcing the lab into predefined structures.

A live test for every vendor

A slide about flexibility tells you little. A short live exercise tells you much more. Ask each vendor to configure their system, in front of you, for a lab that runs control samples alongside test samples. Then put that configuration through three checks.

  1. The blinded view. In the screen an analyst works from, a control should look exactly like any other sample, with nothing that gives it away. Ask the vendor to show the system hiding that distinction where the lab needs it hidden.
  2. The review view. In a different screen, such as one used for QC review, controls should appear separately, alongside the samples they belong to. The same data has to be shown two ways, depending on who's looking.
  3. The combined query. Ask for all data on every sample and control run in the past week. Watch how it's done: one query that understands both, or two queries whose results someone has to merge by hand.

A model that understands how entities relate can pass all three through configuration. A model built around fixed tables tends to need custom screens, duplicate structures or extra queries to get there. How much work each check takes is as revealing as whether the vendor gets there at all.

Graph-native architecture and the relational trade-off

Those criteria depend on how the underlying model stores relationships.

In a relational model, structure lives in tables, and the connections between them are defined up front as joins. New relationships often mean schema changes, data migrations and query rewrites.

In a graph model, relationships are first-class data, stored as subject, predicate and object. Adding an entity type or relationship extends the graph instead of restructuring it, and queries follow relationships directly.

One new relationship, two models

Say that in the first version of a LIMS, every sample is tested by the lab's own QC team. Later, the lab outsources one assay to a contract lab, so some samples are now also sent to an external lab, with its own results and certificates attached.

In a graph, a query for everything about a sample keeps the same form before and after the change. The results include the new relationship because the graph returns the relationships it holds. In SQL, the query has to name the external lab explicitly, specify how the new tables join, and handle older samples that were never sent out at all.

By default, a graph-based system tells you everything it knows about an entity. A SQL-based system tells you everything you specified, and nothing more. Graph queries can still filter and scope what they return, but the starting point is different, and that difference compounds as the model grows.

It matters most for multi-hop questions, such as tracing a flagged lot through every sample and run to every result. In a relational model, each hop is typically a join someone had to anticipate. In a graph, the path is part of the data. And because new relationships extend the graph instead of restructuring it, the model can keep up with the lab rather than fall behind it.

Where graph asks more of a lab

Relational databases are mature, well understood and well suited to stable, predictable structures. The case for graph is about fit: lab data is highly connected, and its structure keeps changing.

Graph also asks something in return. Teams need consistent conventions for naming entities and relationships, or the model can sprawl. Query patterns differ from SQL, and some reporting and BI tools expect tables, so analytics teams may need a view or export layer built for them. Planning for those during design keeps the flexibility from turning into inconsistency.

None of this should be visible at the bench. Whether a LIMS is relational or graph-based makes little difference to someone who wants a fast interface and a quick path back to the bench. The choice matters to informatics leaders, analysts and architects, because it shapes every question the lab can answer for years.

Flexibility with governance in regulated labs

For anyone responsible for a validated system, "flexible data model" can sound like "uncontrolled change." That concern deserves a direct answer.

Every data model flexes to some extent. Anyone who owns a validated system would prefer it never needed to evolve or be revalidated, and they also know that isn't realistic. A system meant to stay relevant for decades has to change, and its data model changes with it. The real question is whether the consequences and costs of each change are transparent, understood, auditable and reportable.

Seen that way, flexibility and control aren't opposites. Authorized users, permission-based configuration and attributable change records keep model changes inside the lab's own change control process. Change becomes something expected and managed, not something to avoid.

Risk-based validation thinking, as described in FDA's Computer Software Assurance guidance, adds useful context. Assurance effort scales with the risk a change poses. Configuration within a validated platform is generally easier to assess and document than custom code, because its scope is clearer. ISPE's GAMP 5 guidance reflects the same distinction, treating configured products and custom applications as separate software categories.

This is where Define meets Trust, the next dimension in this series. The same principle that makes lab records trustworthy applies to the model itself: changes should be attributable and captured as they happen. It also changes how troubleshooting works. A familiar investigation starts with "This test was working fine last week. What changed, and who do I need to ask?" When every change is recorded at the model level, the system can answer that directly, without anyone digging through release notes or qualification documents.

None of this replaces the lab's SOPs or change control. A well-governed model gives that process a precise, reviewable record to work from.

Labbit's approach: a data model that keeps pace with your lab

Labbit is built on a graph-native architecture. Samples, lots, instruments, analysts, methods and results are stored as connected entities, and the relationships between them are data in their own right. When the lab adds something new, the graph extends to include it, and existing data and queries carry forward without restructuring.

On top of that foundation, Labbit Designer gives authorized users a no-code way to define entities and relationships through workflow and workbook configuration. As assays, sample types and requirements change, the lab adapts the model itself, with less reliance on database expertise or vendor support.

Changes are packaged as changesets, which can be as small as a one-line fix or as large as an entirely new test spanning multiple workflows. Teams can compare a planned changeset with the previous one to confirm the only differences are the expected ones, and trace any entity back to the changeset that produced it. The model can change at the pace the lab does, with every change on the record.

From a defined model to data you can trust and find

Discoverability is often treated as the last mile of lab informatics: search, reports, dashboards. It's set much earlier, when the lab defines what its data is and how it connects, and it holds only as long as that definition keeps up with the lab. A data model that grows with the lab keeps today's data findable, whatever the lab takes on next.

That makes Define the foundation the other two dimensions of discoverability rest on. Trust builds on it with records that carry their context and provenance, and Discover builds on both with connected information that's easier to explore. The next posts in this series take each of those in turn.

See Define in practice

Want to see how a data model that keeps pace with the lab works in a live system? Watch the recording of our webinar, What's New in Labbit: From Data Design to Traceability and Discovery, to see how data design, traceability and search connect to help lab teams find and understand their data.

Frequently asked questions

What is a data model in a LIMS?

A LIMS data model defines the entities a lab tracks, such as samples, reagent lots, instruments, analysts and methods, and the relationships between them. It determines which questions the system can answer later, because search and reporting can only work with what was captured and connected. Labbit uses a graph-native data model, where entities and their relationships are stored as connected data.

Why is it difficult to change the data model in a traditional LIMS?

In most relational LIMS, the data model is the database schema, so changing it takes database or vendor expertise. A single change can ripple into integrations, routing logic, queries, reports and warehouse transforms, and older records may follow different rules than newer ones. Labbit's graph-native model lets new entity types and relationships extend the model alongside existing data.

What is the difference between a graph data model and a relational data model for laboratory data?

A relational model stores data in tables connected by joins defined in each query, so a query returns what it specifies. A graph model stores relationships as data, so a query follows connections that already exist, such as a lot to its samples, runs and results. Labbit is built on a graph-native model, which suits lab data that is highly connected and keeps changing.

Can authorized lab users change a LIMS data model without code in a regulated environment?

They can when changes are made through permission-based configuration with an attributable record of who changed what, inside the lab's change control process. Risk-based approaches such as Computer Software Assurance (CSA) scale validation effort to the risk of each change. In Labbit, authorized users configure entities and relationships in Labbit Designer, and changes are packaged into changesets that can be compared and traced.

How does a lab's data model affect its ability to search and trace records?

A lab can only find, relate and trace what its data model was built to capture. If two things were never connected in the model, such as a reagent lot and the instrument runs that used it, tracing between them means manual reconciliation. Labbit's graph-native model stores those relationships directly, so multi-step traces follow the connections in the data.