Froodl

The Data Model of a Healthcare Feature: Start From FHIR Resources and Extend Last

When a healthcare product adds a feature that touches clinical data, the data model is easy to treat as an internal detail: a few tables, a few fields, whatever the screens need. That works until the product has to exchange data with another system. At that point every field the team invented has to be translated, and every translation is a place where meaning can be lost. Settling how the feature's data relates to a standard model before the build costs less than discovering the mismatch afterwards.

Why Start From the Standard

FHIR, the Fast Healthcare Interoperability Resources standard from HL7, describes health information as a set of named resources, such as Patient, Observation, Encounter and MedicationRequest, each with defined elements and meanings. The FHIR resource list groups them by purpose and is a useful map for a product owner: it shows how the standard divides the world, and therefore how other systems will expect to see the feature's data.

Starting from the standard does not mean storing data in FHIR format internally. Many products keep their own relational model and map to FHIR at the boundary. It means that the team's own model is designed with the standard in view, so the mapping is a straightforward translation, not a reinterpretation.

Begin With the Questions the Feature Answers

List the pieces of information the feature creates, reads and changes, in plain words. A symptom diary entry. A measured blood pressure value. A scheduled follow-up. For each, ask three questions.

  • What is this, clinically or administratively? A value measured on a person is an observation. A request for something to happen is a request. A thing that happened is an event. The standard draws these lines on purpose, and an item that is given the wrong kind will confuse every system that reads it.

  • Who is it about, and who recorded it? Almost every item needs a subject and an author or source. Features that omit them cannot be used later for anything that requires knowing whose data it is and where it came from.

  • When does it apply? A time of measurement, a period of validity and the time it was recorded are three different things, and the standard separates them.

The answers, written in a short table beside the feature's requirements, are the beginning of the data model and an input for the acceptance criteria.

Map Each Item to a Resource

For each item, find the closest resource and note the match. Three outcomes are normal. The item maps cleanly to an existing resource and element. The item maps with a small difference, for example a code that has to be translated from the product's own list to a standard terminology. Or no resource fits, and the item needs a decision.

The mapping table should state the terminology used for coded values. Unstructured text in a field that other systems expect to be coded is among the most common reasons data cannot be reused. Where the product has its own list of values, record how each value corresponds to a standard code, and record the cases where it does not.

Extend Last, and Say Why

FHIR expects that no resource covers every need, and defines an extension mechanism for data a resource does not carry. It also sets rules for how extensions are defined and published. The practical advice for a product team is to treat extensions as the last resort. Before adding one, check whether another resource or an existing element fits, whether the item is needed outside the product at all, and whether it may remain in the product's own storage and never cross the boundary.

An extension that only the product understands carries no meaning for anyone else. It is legitimate, but it should be a recorded decision with an owner, because each one is permanent work for the integration layer.

Plan for the Data That Is Not Yours

A feature in a healthcare product often combines data it creates with data it receives from another system. The model has to say which is which. For received data, decide what the product stores, what it only displays and what it must never alter. For created data, decide who may correct it and how corrections are recorded. A record of who changed what, and when, is not an afterthought in this domain, and the standard's Provenance resource exists for this purpose, although a product may satisfy the need in other ways.

Regional profiles narrow the standard further. In the United States, implementation guides such as US Core define which elements a system is expected to support for common resources. If the feature has to interoperate in a particular market, find the relevant guide early and compare the mapping to it.

Keep the Legal and Clinical Questions Where They Belong

The data model decides how information is represented. It does not decide whether the product may collect it, who may see it or what clinical meaning it carries. Those questions belong to the organization's compliance and clinical leads, and the model should record their answers, such as sensitivity categories and retention rules, rather than guess them. When an answer is not available yet, write the question beside the item so that it is visible to everyone who works on the feature.

Where Integration Engineering Fits

The mapping table also becomes the specification for the engineers who build the interface to external systems. JetRuby describes its FHIR integration services as software engineering work on EHR and EMR integrations, FHIR, HL7 and healthcare APIs for healthcare products, with clinical and legal judgment staying with the product owner and its compliance team. That division is a good test for any arrangement: the engineers need the mapping and the terminology decisions from the product side, and the product side needs an interface that behaves as the mapping says.

A Short Checklist

  • Each piece of information the feature creates or reads is listed in plain words.

  • Each item is mapped to a resource and element, or marked as unmapped.

  • Coded values name their terminology, with exceptions recorded.

  • Every extension has a reason and an owner.

  • Received data and created data are distinguished.

  • Open legal and clinical questions are written beside the items they concern.

A data model drawn this way is not more work than an ad hoc one. It moves the decisions about meaning to the start of the feature, when they are cheap to change, and gives the product owner a document that clinicians, engineers and integration partners can all read.


0 comments

Log in to leave a comment.

Be the first to comment.