Tuesday, November 24, 2026

Can AI Be Trusted in Healthcare?

As healthcare organizations rapidly adopt Artificial Intelligence, I am increasingly asked a simple question:

Can AI be trusted in healthcare?


The question arises whether the AI is supporting clinical decision making, helping to determine payment decisions, summarizing medical records, extracting data from documents, assisting in patient matching, or training future models.

I believe the answer is not that AI should simply be trusted. Trust is something that must be earned through transparency, accountability, and patient empowerment.


In my view, there are three foundational capabilities that healthcare must implement if AI is to become trustworthy:
  1. Patients must be able to control AI use through consent.
  2. AI activity must be captured through audit logging.
  3. AI influence on healthcare data must be documented through provenance.

Together these capabilities answer three essential governance questions:
  • Should AI do it?
  • Did AI do it?
  • What did AI affect?

Only when all three questions can be answered can healthcare organizations claim that AI is being used responsibly.

First Requirement: Give Patients Control


Trust begins with respecting patient autonomy.

Patients increasingly recognize that AI systems may use their health information for a variety of purposes, including clinical decision support, payment decision support, administrative automation, and machine learning model development. Not all patients will be comfortable with all of these uses.

Some patients may willingly support AI-based research and model training.

Others may permit AI-assisted treatment recommendations but object to AI use for payment decisions.

Still others may allow AI processing only when their information has first been de-identified.

These are legitimate choices, and healthcare systems should be capable of honoring them.

This is the motivation behind the Consent About AI Implementation Guide that I have authored. The guide demonstrates how existing FHIR Consent capabilities can be used to express patient preferences regarding AI access and AI use.

The objective is not merely to record an individual's wishes. The objective is to express those wishes in a computable form so that systems can automatically enforce them.

When patients are given meaningful control over how AI uses their information, trust becomes possible.

Second Requirement: Record Every AI Activity


Consent establishes the rules. But how do we verify that the rules are actually being followed?

This is where audit logging becomes critical.

Many discussions about responsible AI focus on transparency of outputs. While important, output transparency alone is insufficient.

Healthcare organizations must also be able to demonstrate when AI was used, by whom, for what purpose, and against what information.

FHIR AuditEvent provides an ideal mechanism for this accountability.

An AuditEvent can document:
  • The AI system that was invoked.
  • The user or system that invoked it.
  • The data accessed.
  • The purpose of the activity.
  • The time the activity occurred.
  • The outcome of the activity.

Most importantly, an AuditEvent can be created every time AI is used, even if there is no resulting clinical output.

For example:
  • An AI recommendation may be generated and immediately rejected.
  • An AI-generated summary may be discarded.
  • An AI lookup may retrieve information but produce no persisted result.
  • An AI system may evaluate information and determine that no action is necessary.

In each of these cases, there may be no healthcare data artifact that requires provenance. Yet accountability still requires a record that the AI interaction occurred.

AuditEvent therefore provides the evidence that AI activity took place.

It also provides a means to verify that patient consent directives are being respected. Auditors, compliance officers, privacy officials, regulators, and even patients themselves can examine AI-related audit logs and determine whether AI activity was consistent with established policy.

In that way, consent defines the policy while AuditEvent provides evidence that the policy was followed.

Third Requirement: Make AI Influence Visible


Knowing that AI was used is important, but it does not tell us how AI influenced healthcare data.

That is the role of provenance. When clinical information has been created, modified, summarized, extracted, interpreted, or otherwise influenced by AI, downstream consumers should be able to understand that involvement.

Without transparency, clinicians, patients, researchers, and regulators are left to guess.
  • Was this note authored entirely by a clinician?
  • Did AI generate the initial draft?
  • Did AI extract the findings from a document?
  • Did a human review the AI output before it became part of the patient record?
These questions become increasingly important as AI becomes embedded throughout healthcare workflows.

The HL7 AI Transparency on FHIR Implementation Guide addresses this need by using established FHIR capabilities, including Provenance resources, to document AI involvement in healthcare data.

Provenance creates traceability. It allows organizations to identify:
  • Which AI system participated.
  • What role it played.
  • Which information was affected.
  • Whether human review occurred.
  • How the resulting information came to exist.
Unlike AuditEvent, Provenance is focused on information that has become part of the healthcare record or healthcare workflow. An important use-case for the AI Transparency use of Provenance is to be able to recover from a mistake that the AI may have done that was not detected until later.

Provenance tells us what AI affected.

AuditEvent tells us that AI was used.

These capabilities are complementary, not competing.

Why AuditEvent and Provenance Are Both Needed


A common misconception is that provenance alone is sufficient.

It is not.

An AI system may be invoked hundreds or thousands of times during a day. Many of those interactions may never result in any lasting healthcare data.

If only provenance is captured, healthcare organizations lose visibility into AI activities that produced no persisted output.

Likewise, audit logs alone are insufficient.

An AuditEvent can tell us that an AI system was invoked, but it cannot necessarily tell us which pieces of healthcare data were ultimately influenced.

To achieve complete transparency and accountability, both are required.

AuditEvent provides activity accountability.

Provenance provides data traceability.

Together they form a complete picture.

The Three Pillars of Trustworthy AI


Healthcare AI governance can be viewed as three pillars:

Consent

Answers the question: Should AI do it?

Consent establishes the patient's preferences and the organization's policy obligations.

AuditEvent

Answers the question: Did AI do it?

Audit logging provides evidence of AI activity and enables verification that policies were followed.

Provenance

Answers the question: What did AI affect?

Provenance provides attribution and traceability for AI-influenced healthcare information.

A Governance Model for Trustworthy AI


The healthcare industry does not need to choose between innovation and trust. We can have both. But trust cannot be established through marketing claims, vendor assurances, or optimism about technology.

Trust must be supported by verifiable evidence. Patients should be able to decide how AI uses their information. Organizations should be able to prove when AI was used. Consumers of healthcare data should be able to identify where AI influenced the information they receive.

Fortunately, the standards needed to support this vision already exist and continue to mature through HL7 and FHIR.

The future of trustworthy healthcare AI is not built on blind trust in algorithms. It is built on policy, evidence, and attribution.

In other words:
  • Consent tells us whether AI should act.
  • AuditEvent tells us whether AI did act.
  • Provenance tells us what AI affected.
When all three are present, healthcare organizations can move beyond simply deploying AI and begin demonstrating that AI is being used responsibly, transparently, and in accordance with patient expectations.

Saturday, November 21, 2026

Making AI's Influence on Health Data Visible and Actionable

Nearly a year ago, I wrote about the AI Transparency on FHIR guide heading to HL7 ballot. That HL7 ballot got votes from 237 HL7 members, 105 comments, with overall passing result. The central concern has not changed: as AI becomes part of healthcare workflows, people using health data need to know when AI helped create or change it. What has changed is that the guide now turns that goal into a concrete set of FHIR patterns and examples.

The current AI Transparency on FHIR Implementation Guide is a v1.0.0, STU 1 guide built on FHIR R4. It is intended for systems that produce or use FHIR data - not just generative AI, but any algorithm that may affect a downstream user's confidence in the data. A tool summarizing a note, interpreting an image, extracting concepts, or generating synthetic data can all make attribution useful.

The guide focuses on observability, not judgment. It does not decide whether an AI system is safe, validate its output, or prescribe how an organization must govern AI. Instead, it gives producers a way to declare AI involvement, so clinicians and other consumers can make informed decisions about how to use the data. The assertion comes from the system producing or modifying the resource; the guide does not try to detect AI use after the fact.


The AI influence declaration can be made at different levels. A security label can indicate that an entire FHIR resource was AI-asserted or identify particular elements within a resource that were influenced. Provenance can add the context: which AI system or Device was involved, what it contributed, and whether a human reviewed the result. The guide also provides a way to represent a model card, and to reference input prompts when appropriate.

The examples show why this is relevant beyond a single clinical note. They include an AI-assisted laboratory observation with a human verifier, a diagnostic report with only selected elements labeled, and a prior-authorization determination drafted by AI and reviewed by a person. Other use cases cover filtering AI-influenced data, investigating problematic model outputs or inputs, applying guardrails, interpreting a PDF into FHIR, and tracing AI assistance in an appointment report. The same attribution can help a clinician understand a result, a researcher decide whether to include it, or a payer and safety team investigate how it was produced.

For implementers, the practical message is that transparency is not one extra "AI used" checkbox. A useful record connects the affected data to the AI system and its contribution, while preserving human authorship and review where those occurred. Those links give downstream systems options: display the information, filter or stratify data, or follow provenance during review. The right response remains context-dependent; the common representation makes that response possible.

The guide and its examples are available in the CI build. If you are building or reviewing FHIR workflows that use AI, take a look at the examples and consider where knowing the provenance of a result would change what you do with it.

There are interests in further improving the IG and extending it to FHIR R5 and R6. However, the current leadership that has brought this specification along this far have all been working pro bono, aka working off the side of our desk. I would very much like to be sponsored to further improve this IG, if you are interested in sponsoring me, please contact me.


Friday, November 20, 2026

Patients can be given control: Consent About AI

Patients can have different preferences about the use of their health information, especially that use of their data by AI. A patient might permit clinical decision support, deny model training, or allow training only when data is de-identified. Recording a preference is only the first step: the organization also needs a technical way to represent the decision and apply it when data is requested.

The Consent About AI Implementation Guide (IG) explores that step using FHIR Consent. It treats the Consent as the healthcare organization's actionable record of the patient's decision: it contains rules an access-control system can evaluate and enforce. The IG is available based on FHIR R4 and FHIR R6. The signed consent paperwork remains the legal record and is referenced from the FHIR Consent.

The IG supports two complementary ways to express AI-related rules. A provision can identify a purpose of use, such as MLTRAINING for AI training, TREATDS for clinical decision support, or PMTDS for payment decision support. This approach is independent of a particular vendor or model, but it depends on the system requesting data accurately declaring its purpose. The IG makes that an explicit expectation for both a Data Requester (the AI system accessing data directly) and an AI Agent (a gateway accessing data on the AI's behalf).

Alternatively, a provision can identify a specific AI system or model through Consent.provision.actor.reference, using a FHIR Device that conforms to the AI Device profile. That gives the consent a more specific target, but also makes it more sensitive to change: a new model or version may need a new Device and a corresponding consent rule, and data access must be attributed to that Device.

The guide formalizes these patterns in a Consent about AI profile. It also shows how a permit can carry a limit, such as an obligation to de-identify data, through the standard consent-provision-limit extension. A limit is useful only when it can actually be enforced. The IG assigns that responsibility to the Access Control actor, which must evaluate the declared purpose, any identified AI Device, and any limits on the permit.

The examples cover allowing and denying AI for training, clinical decision support, and payment decision support; allowing a specific AI for a purpose; and allowing training on de-identified data. They also show a combined Consent containing AI rules alongside ordinary Treatment, Payment, and Operations rules.

That combined example highlights an important FHIR Consent modeling constraint: Consent has provisions, and each nested provision is an exception to the rule above it. Nested provisions therefore alternate between permit and deny, which can require deeper nesting than a set of independent rules might suggest.

Consent About AI does not introduce a new consent resource. It profiles the existing FHIR Consent, provides examples for common patient choices, and defines requirements for the systems that author, request, and enforce those choices. The guide is experimental and intended to invite discussion and feedback. Explore the profile, examples, actors, and conformance requirements here:

- GitHub source repository - https://github.com/JohnMoehrke/ConsentAboutAI
- Current FHIR R4 CI build
- Current FHIR R6 CI build

Note that the CI build reflects the current development state. This has been a 100% volunteer project by me. I would very much like to be sponsored to take this through the HL7 process. See my Consulting business, Moehrke Research LLC if you would like to sponsor this project.

Monday, November 2, 2026

AI Helps Write the Translation. It Does Not Translate the Data.

One of my projects is to support the FAST NDH directory IG development in HL7. As part of this, I was asked to create computable mappings from HL7 FHIR Plan-Net Implementation Guide to the HL7 FHIR National Directory of Healthcare Providers and Services (NDH) Implementation Guide. Both describe healthcare directory information. They look similar, but their representations differ: extensions, vocabulary, and profiles are not interchangeable. Similar-looking data is not necessarily conformant data.

FHIR Mapping Language (FML) expresses explicit rules for transforming source data into target data, including copying fields, translating codes, and mapping extensions.

I have been using Visual Studio Code and GitHub Copilot to author and update these maps.

AI is helping write the rules. AI is not translating the data.

The translation is performed by explicit FML rules, executed using the FHIR Validator's transformation capability. There is no language model deciding what a field means each time a resource is processed.

VS Code + Copilot
       |
       v
   FML rules
       |
Source samples --> FHIR Validator transform --> NDH output
                                                   |
                                                   v
                                         Validate NDH profiles

Faster Authoring, Not Automatic Trust

Copilot made authoring and updating the FML much quicker. It helped work through repetitive mapping rules and revise them as testing exposed problems.

That is useful. It is not evidence that the resulting maps are correct.

The rules remain inspectable, editable, and testable without AI. The translation behavior belongs in those rules, not in a prompt.

Samples Are Part of the Work

I use source-conformant examples to exercise the maps continually. The samples include both:

  • Data reflecting how implementations currently use Plan-Net.
  • Comprehensive examples exercising more of what the source format supports.

These serve different purposes. Implementation data shows what is happening. Comprehensive examples exercise fields and extensions that everyday data might never populate.

A map tested only against sparse data can look complete while doing very little.

Multiple sample sources help expose assumptions that a single dataset would hide. Downloaded implementation data also needs scrutiny; being returned by a FHIR server does not establish conformance.

Transform, Validate, Inspect, Repeat

Scripts repeat the transformations and validate the resulting resources against the target NDH profiles. They retain outputs, logs, and per-input results so failures can be investigated.

I also use AI to spot-check source and transformed resources for lost information. Automated checks supplement that inspection, including checks that extensions intended to be preserved actually survive.

These checks answer different questions:

  • Did the transformation execute?
  • Does the output conform to NDH?
  • Was the source information preserved or intentionally translated?

Passing profile validation does not prove that nothing was lost. AI spot inspection does not prove it either. Both are useful, but neither replaces explicit preservation checks and broader test coverage.

The Point

This is a practical use of AI: accelerate development of deterministic, reviewable transformations, then test them repeatedly.

Use AI to help write the translation. Do not confuse that with trusting AI to perform—or certify—the translation.

For a deeper discussion of this approach, see Firely's Language Models Should Write Your FHIR Mappings.

Thursday, August 20, 2026

Of course I use AI tools

This tweet by Scott Manley a few weeks ago keeps coming to my mind... Mostly because it is exactly my thinking. Of course I use AI tools, I have worked too hard to get where I am today to not use them.


Do I trust without question that which comes out of AI, HELL NO! See previous point about having worked too hard to get to where I am today. Which I will note that it is because of my experience that I can detect AI going rogue. It is because of my experience that I can express in the prompt the key important systems-design criteria. It is because of my experience that I define test benchmarks before starting to develop something. 

The deepest thing I have done is use vibe coding to create a security sensitive data labeling service reference implementation -  Security Labeling Service - Reference Implementation

Do I think that AI could kill us all? Well, I have read plenty of science fiction, so I have the background. This worry is also a reason that I use AI, so that I can understand the tool. I do more than just understand, I write about controlling AI, and monitoring AI.

Some blog articles:

AI is neither good nor bad; it is a tool. When AI does something bad, the tool just did what the human/organization asked it to do. So, anything bad or good that AI does is not the responsibility of AI, but the human or organization that used the AI tool. 

Sunday, August 16, 2026

Modeling Legal Emancipation for Healthcare Access Control with FHIR Consent

 Legal emancipation can change who may make healthcare decisions and who may access a minor's health information. It is not, however, a simple demographic attribute. Its meaning depends on the jurisdiction, the court order or other legal instrument, its effective period, and any conditions or exceptions contained in that instrument. A healthcare system should not infer emancipation from a patient's age, living situation, or an unsupported assertion.

The Emancipation Consent implementation guide explores a FHIR R4 pattern for representing the access-control consequences of a verified legal emancipation. The legal order, decree, or other recognized instrument remains the authoritative record. The FHIR resources make the organization's current interpretation of that evidence visible and enforceable.

The pattern uses Patient for the emancipated minor and DocumentReference, with Binary when appropriate, to retain the legal instrument and its metadata. The Consent references that source document through Consent.sourceReference, identifies the organization applying the policy, and carries only the rules that the organization can actually enforce.

Parents and guardians are represented as RelatedPerson resources. This matters because a relationship is still a positive fact even when the emancipation changes that person's access rights. The Consent.provision.actor references the relevant parent or guardian, while the provision expresses the resulting access rule. In FHIR R4, the single root provision establishes the overall deny or permit direction; nested provisions express exceptions by alternating that direction. This lets an implementation start with a baseline rule and then represent only the legally supported exceptions.



This approach does not claim that every emancipation denies every parent access, nor that it grants a minor unrestricted authority in every context. It creates a place to record the healthcare organization's actionable decision, trace it to the legal evidence, and apply it consistently in an access-control engine. Jurisdiction, legal authority, effective period, verification details, and restrictions should remain available in the source document or in well-defined extensions when they must be exchanged as structured data.

The guide is experimental and intended to encourage discussion. For the profile, examples, and implementation details, see:


Wednesday, August 12, 2026

Available consulting capacity

Consulting capacity: I have been working three different contracts that are working to profile FHIR using the Implementation Guide (IG) tooling. Only one is active right now and it is at 75% of the past workload. So, I have capacity available to take on new contracts. 

  1.  Standards Development / revision
  2.  Implementation Guide authoring / revision
  3.  Privacy & Security - Consent, Audit, Provenance
  4.  Trustable AI - AI-Transparency, Consent for/against AI use, etc
  5.  Health Information Exchange - XD*, FHIR/MHD, IPS

More details and contacts on my web site - https://MoehrkeResearch.com.
I do some projects pro bono but would love if someone would care enough about it to contract with me. Sustaining the Work That Sustains Trust: Why I’m Seeking Support for Some of My Standards Efforts

Wednesday, July 29, 2026

Why Patients Don’t Get Detailed Audit Logs — And Why We Still Need to Record Them

Healthcare generates an enormous amount of digital exhaust. Every lookup, every exchange, every routing hop, every system‑to‑system handshake leaves behind an audit trail. Yet patients rarely see any of it — and, importantly, U.S. regulations do not require that they do.

This creates a paradox: Audit logs are essential for trust, accountability, and safety, but giving them directly to patients would overwhelm more than empower.

In this article, I’ll unpack the regulatory reality, explain why audit logging still matters, and show how standards like FHIR AuditEvent and IHE Basic Audit Log Patterns (BALP) provide the foundation for meaningful transparency — including future patient‑facing safety tools.

Patients Don’t Get Full Access Logs — And That’s By Design

Let’s start with the misconception: There is no U.S. regulation requiring healthcare organizations to give patients a detailed log of every access, use, or disclosure of their data. (Note that GDPR in the EU is far more actionable, so those in that region can skip to the next section)

HIPAA’s Accounting of Disclosures sounds like it might do this, but it doesn’t. It excludes:

  • Treatment

  • Payment

  • Healthcare operations

  • Most internal access

  • Most external exchange

  • Most analytics

  • Most quality improvement

  • Most care management

  • Most research

  • Anything with patient authorization

In other words, HIPAA’s accounting requirement covers only a narrow slice of activity — mostly only the activity that the patient had to be directly involved in requesting or authorizing (explicit consent). Thus, this report is not all that useful.

TEFCA Changes the Landscape — But Only Slightly

TEFCA introduces something new: QHINs must support patient access to a report of where their data was exchanged through TEFCA.

This is meaningful, but limited:

  • It applies only to TEFCA-governed exchange

  • It reports exchange, not use

  • It does not include internal access

  • It does not include non‑TEFCA exchange

  • It does not include analytics or operational uses

TEFCA is a step toward transparency, but not a full “data use report.”

So Why Record Detailed Audit Logs If Patients Don’t See Them?

Because audit logs serve three critical purposes:

1. Regulatory Compliance (Even If Not Patient-Facing)

HIPAA, HITECH, TEFCA, CMS, and state laws all require organizations to maintain audit trails. Even if patients don’t receive them, regulators may demand them.

2. Security and Abuse Detection

Audit logs are the backbone of:

  • Insider threat detection

  • Account compromise detection

  • Access pattern analysis

  • Breach investigation

  • Forensics

Without detailed logs, organizations cannot detect misuse or prove compliance.

3. Future Patient-Facing Transparency Tools

Even though patients don’t get raw logs, they will benefit from tools built on top of them.

This is where standards matter.

FHIR AuditEvent + IHE BALP: The Foundation for Trustworthy Logging

FHIR AuditEvent provides a structured, interoperable way to record:

  • Who accessed data

  • What they accessed

  • When

  • From where

  • Under what purpose

  • Using what authentication

  • Through what system

  • With what outcome

IHE Basic Audit Log Patterns (BALP) adds:

  • Consistent patterns for common events

  • Reusable structures

  • Cross‑system interoperability

  • Guidance for routing audit logs

  • Patterns for retention and disclosure

Together, they create a uniform audit fabric across systems — something TEFCA participants, QHINs, and EHR vendors can all rely on.

Why Patients Shouldn’t Receive Raw AuditEvent Logs

Even though AuditEvent is structured, it is still machine‑level detail.

A typical AuditEvent entry might include:

  • IP addresses

  • OAuth token identifiers

  • System‑to‑system routing metadata

  • Internal user IDs

  • Service account activity

  • Background processes

  • Automated system checks

  • Batch operations

  • Retry attempts

  • Internal queue processing

Giving this directly to patients would create:

  • Information overload

  • Misinterpretation (“Why did 17 different systems access my record at 2 AM?”)

  • False alarms

  • Support burden

  • Privacy risks (exposing internal system architecture and monkey business)

Patients need meaning, not machine logs.

The Future: Patient Safety Apps That Watch Audit Logs for Them

The real opportunity is not patient access to raw logs — it’s patient access to insights derived from logs.

Imagine an app that:

  • Monitors AuditEvent streams

  • Learns normal access patterns

  • Detects anomalies

  • Flags unusual access

  • Alerts the patient only when something looks wrong

Examples:

  • A provider in another state accessed your record

  • A system account accessed your data outside normal hours

  • A TEFCA participant requested your data for an unusual purpose

  • A pattern suggests credential compromise

  • A sudden spike in access suggests a breach


This is machine learning + audit logs + patient empowerment.

It’s the same principle as fraud detection in banking: You don’t get a list of every transaction routing hop — you get an alert when something looks off.

Conclusion: Logs Matter — Even When Patients Don’t See Them

Patients don’t get detailed access logs today, and regulations don’t require it. But detailed audit logging is still essential — not for patient consumption, but for:

  • Compliance

  • Security

  • Forensics

  • TEFCA reporting

  • Future patient‑facing safety tools

FHIR AuditEvent and IHE BALP give us the technical foundation. TEFCA gives us the regulatory nudge. The next step is building patient‑friendly applications that turn audit logs into actionable safety signals.

That’s how we move from “audit logging as compliance” to audit logging as patient protection.


Thursday, July 16, 2026

Profiling AuditEvent seems to be an emerging need

Watching the report outs for the CMS FHIR Connectathon. Many are mentioning that they see a need to profile AuditEvent for their use-case needs to support data access traceability, privacy tracking, and provenance. I very much agree with this. 

IHE has the starter kit with the Basic Audit Log Patterns (BALP)  Implementation Guide defines the basics and has some profiles for common REST interactions.

I often need to remind people that defining AuditEvent profiles can be supported purely as a Query interface. In this case the system keeps their audit log in their native format, but knows how to convert that into the FHIR Standard AuditEvent when queried.

I would be glad to provide pointed and short-term consulting -- see Moehrke Research LLC 

Wednesday, July 15, 2026

proud owner of an OID root

Now that HL7 is bringing back the OID, as CDA can only handle OIDs and not URL system values. I went and registered with iana for my own OID. It is not important to do this, but it is free. Now all of the test IGs that I have in my personal github can have their own OID root so that I don't need to constantly indicate in the ignorewarnings.txt that it is okay that my test IGs don't have OID assignments.

My assigned OID root: 1.3.6.1.4.1.66281

I have been using the official example OID root: 2.999; which is the equivalent of the DNS example.com, or example.org. I have used this 2.999 OID root with the IG publisher, which I felt was an appropriate defiance. Unfortunately, it just changes the warning.

I have a page that I refer to often on creating and using Unique IDs - UUID - OID

On that article I did add comments that explained the 2.999 OID root. -- https://oid-base.com/get/2.999

I have also noted that USA SSN has reserved those SSN numbers starting with 666. I have not seen an official statement to this, but plenty of confirmations. The concept is that they know they can't issue a 666. number to someone as that someone would see it as the USA government labeling them with the mark of the devil. So when I make test patients, I give them SSN starting with 666-.

Tuesday, May 12, 2026

Age services are a no-win

I have written on Age-Services, those theoretical services that can provide age-protected services a way to learn the age of their user without learning their birthday.  Age Verification is much more important than porn

I hear excited proposals that promote that Apple and Google, as platforms, should be the Age service. Each time, I am yelling into the dark at a very specific problem does not get brought into the picture.

The Age service is a thankless service. It would not be able to be a paid service; it won't be able to include advertising. Which is bad enough. But it is also a huge overhead. The API is not hard to implement. The API could be designed in various ways to protect the individual. What is hard to handle is the backend requirements from government subpoena. 

An Age service must know strongly the identity of the individual, and thus they must know the birthdate. This is rather obvious, but this itself puts the Age Service in the tough spot of protecting from accidental exposure, or malicious attacks. Highly valuable data, means expensive protections. Protections that also must include audit logs of all legitimate uses, as well as requests that are blocked as illegitimate.

Age-Service is far more expensive

This is already an expensive service, that I explain has no revenue stream.

The Age service knows which age-limited services that a given user is using. They will get requests, or need to issue assertions, for a targeted age-limited service. Thus, it is possible for Apple / Google to know what age-limited services a given user is using. When, and from where. Could they not save a log? Possibly, but they could be compelled to save a log. And they need a log to protect themselves from age-protected service claims that they were given an age value that was never released. E.g., I dispensed beer because the age-service said the user was 21, but in reality, no such age assertion was ever issued.

E.g., An age-limited service "cannabis-today" needs to know that the user placing an online order is of legal age, so age-service is engaged to determine this. This use of "cannabis-today" is legal in the state where the company and user live. But one time, the user is out-of-state, in a state where cannabis sales are not legal, and now that state issues subpoena for records. The individual may not have even tried using the "cannabis-today" app, but it was on their phone. --- this story is not just about cannabis --

The knowledge of which age-limited services a given individual is using is valuable to governments that want to control population. Further, they will want the full log to find individuals using age-limited services.

Date Of Birth

Different topic on the same subject... an age-limited service can learn the birthdate of an individual by probing every-day. On the day that the age goes up, that is their birthday. Long time ago SAML had an age service, and they noticed this problem, so they indicated that some fuzzing of the birthdate would be used. However, this presents a problem, does the service indicate age transition early and thus is wrong, or does the service indicate late and make the individual angry about not being recognized as 21 on their birthdate.

Conclusion

Will governments continue to ask for such a system, yes. I am not surprised they will ask for this. I would actually think they are wrong to not ask. But because they ask, does not mean that it should be provided. In my other article I express that many of these age-limited services are services that are needed by disenfranchised and powerless.  The age-limited services are often the only way for these individuals to get access to the services they need. If the age-service is compromised, or if the government is able to compel the age-service to give up data, then these individuals are put at risk.

Thursday, April 30, 2026

Considerations for Implementing the SLS RI

In a previous post I introduce a Reference Implementation of a Security Labeling Service. I published this as open-source on the SHIFT SLS RI GitHub Repository. I published the API definition including profile on ValueSet for defining a sensitive tagging ValueSet of codes. With an IG that holds many prototype ValueSets of sensitive topics. I also explain how sensitive topics are a subset of data, distinct from Normal health data.

The SLS Reference Implementation is designed to provide an informative example of how to implement the Security Labeling Service (SLS) for Health Information tagging so that fine grain access controls can be implemented. Data tagging applies a categorization code to a FHIR resource based only on the content of that FHIR resource. The tag does not indicate what kind of access control is applied. The access control rules are separate.

When is tagging needed?

  1. Data does not need to be tagged if there is no access control policies (e.g. Consent, Business Rules, or Regulations) that would apply different rules to different categories of data.
  2. Data does not need to be tagged if the current state of Consent is blanket permit or deny. That is when the Patient Consent has no specific rules per category then the tagging is not needed.
  3. Data need only be tagged sufficient to support the categorization of the access control policies. The SLS RI is configured by loading the SLS Policies as ValueSets
  4. When the tagging policies change (e.g. the SLS ValueSets are updated) then any data that was tagged under the old policy needs to be retagged. The SLS RI implements a timestamp on the tags to allow for not retagging if the SLS policies have not changed since last tagging.
The Reference Implementation of the SLS is designed to provide clarity of the concept of tagging. It is not designed to be fast or efficient. In a real-world system, the tagging of the data would be designed into the system utilizing features of that system (e.g., leveraging database indexing).

When to apply the SLS RI?

Executing the SLS against any data is an expensive operation. This is true as the number of entries in the SLS policies increases. The SLS must look at all codes in the data and detect if any of the codes match any of the configured SLS policies. Thus, the more policies (ValueSets) and the more entries in those ValueSets, the more computationally expensive the tagging process becomes. The SLS RI includes a timestamp so that data are not inspected unless the data timestamp is older than the SLS Policies. See ValueSet Profile

There is a concern with legacy databases not having an element to hold the security tags. Thus there needs to be a way to support SLS in those cases.

There are a few ways to apply the SLS RI:

Executed on all data Creation and Update

This is the most comprehensive approach, ensuring that all data are tagged appropriately. However, it may have performance implications due to the need to tag every resource. It also relies on the system being able to persist the tags with the data. This approach also must retag data when the tagging policy (e.g. SLS ValueSets) changes.

This model likely can be implemented efficiently with a systems design of a SLS into the database. Thus, the use of the SLS RI is not likely directly usable if this is the model desired.


Executed on demand when a Patient's data are accessed


When a Patient's data are accessed, a task examines all of that Patient's data and applies the appropriate tags. This approach allows for dynamic tagging based on the current state of the data and the applicable access control policies. However, it may lead to performance issues due to the need to tag data at the time of access, which could introduce latency. It also relies on the system being able to persist the tags with the data. This approach has the benefit of not changing data to add tags unless that Patient is actively being accessed. Thus historic patients that are no longer being accessed would not need to be tagged.

The system should keep some timestamp at the Patient level to know when the Patient was last tagged, so as to keep from running this task unnecessarily often.



Executed on demand with each Search with writeback


When a search is executed, the SLS RI is executed to inspect the Search Bundle and any new tags are written back to the database. This approach allows for dynamic tagging based on the current state of the data and the applicable access control policies at the time of search. However, it may lead to significant performance issues due to the need to tag data at the time of search, which could introduce latency. It also relies on the system being able to persist the tags with the data. This approach has the benefit of not changing data to add tags unless that data is actively being searched for. This inspection of the Search Bundle would only be done if the Access Control decision has residual rules to further remove categories of sensitive data.

Executed on demand with each Search doing only inline tagging

When a search is executed, the SLS RI is executed to inspect the Search Bundle and any new tags are only added to the Search Bundle in memory and not written back to the database. This approach allows for dynamic tagging based on the current state of the data and the applicable access control policies at the time of search without changing the underlying data. However, it may lead to performance issues due to the need to tag data at the time of search, which could introduce latency. This approach has the benefit of not changing data to add tags unless that data is actively being searched for and does not require that the system be able to persist the tags with the data. This inspection of the Search Bundle would only be done if the Access Control decision has residual rules to further remove categories of sensitive data.


🎁Note, this is one of those projects I do pro bono but would love if someone would care enough about it to contract with me. Sustaining the Work That Sustains Trust: Why I’m Seeking Support for Some of My Standards Efforts

Tuesday, April 28, 2026

Sensitive data as Venn diagram

In Healthcare, Normal data is all data that is linked to an identified Patient and not specifically sensitive. Any data that is sensitive would be Restricted. "Normal" refers to the normal average curve, thus the majority of data. Sensitive data can be categorized into sensitivity topics, and some data may fall into multiple sensitive categories, as illustrated in the Venn diagram below.

Sensitive topics are generally potentially stigmatizing information, for which exposure would present high risk of harm to an individual's reputation and sense of privacy. 

In a data tagging architecture, sensitivity topics are indicated as a "sensitivity" code in the FHIR Resource.meta.security tag of FHIR resources, and can be used for access control decisions in a Privacy Consent driven access control model.

Normal data is often not tagged as Normal, but rather is just the absence of any sensitive tag. This is recognizing that the vast majority of medical data are Normal (algorithmically average). The presence of any sensitive tag would make the data Restricted, indicated as R restricted Confidentiality code.
The data are tagged with the kind of sensitivity purely due to their data content, and not due to any other factors such as the Patient consent status. The labeling does not imply that there is any particular access control policy in place, but rather that the data is sensitive and may require special handling. 

The access control policies would be defined separately and could use the presence of these sensitivity tag to make decisions about who can access the data and under what circumstances. 

For example, when a given patient indicates that broad treatment use of their data is not restricted, but their Sexual Health sensitive data must not be shared beyond their PCP and never with non-Treatment purpose of Use. So, in this case, note that the other sensitive tags beyond Sexual Health have no effect on accessibility. Note that this Consent policy just needs to see the Sexual Health tags, it does not care about Normal vs Restricted. 

Resources:
  • An Implementation Guide with various ValueSet(s) that could be used by a Security Labeling Service (SLS) to tag data according to specific sensitivity. - SLS ValueSets
  • A Reference Implementation (OpenSource) of a Security Labeling Service (SLS) that I created using Vibe coding with AI - SLS RI GitHub Repository
  • An Implementation Guide defining that API, and specifically a Profile on ValueSet to identify sensitivity type and the codes for that type. -- SLS RI Implementation Guide
  • Example Patient Data SHIFT Demo Scenarios IG

🎁Note, this is one of those projects I do pro bono but would love if someone would care enough about it to contract with me. Sustaining the Work That Sustains Trust: Why I’m Seeking Support for Some of My Standards Efforts

Wednesday, February 11, 2026

Consent about AI

There are various use-cases where a Patient might consent or dissent to various uses of AI.

  1. A patient might consent to use of AI for clinical decision support
  2. A patient might deny use of their data for training of AI.
  3. A patient might consent to use of their data in de-identified form for training of AI.

Given the Consent model, the Patient might be indicated in a Consent authorizing either: 

  • Generically allowing or denying AI by PurposeOfUse 
  • Specifically allowing or denying a specific AI by referencing the Device resource for that AI.

PurposeOfUse

The most clean method is to use the PurposeOfUse as the basis for the provision in the Consent. This allows the Consent to be independent of the specific AI system or model, and thus not require updates as new AI systems or models are developed. The PurposeOfUse can be used to indicate the reason for the AI access, such as MLTRAINING for training of AI, or TREATDS for clinical decision support.

Further we look to PurposeOfUse Vocabulary to indicate what the reason the AI is giving for accessing data. For example, the PurposeOfUse of MLTRAINING is defined for when an AI is looking to train on data. The PurposeOfUse of TREATDS is defined for when an AI is looking to provide clinical decision support, or PMTDS when AI is looking to provide analysis for payment decisions.

The use of PurposeOfUse does require that any accesses the AI does, or an agent feeding the AI, must use the given PurposeOfUse code when accessing data. This is a trust model that the AI or the agent feeding the AI will accurately indicate the PurposeOfUse when accessing data. However, this is a common trust model used in many other aspects of healthcare data access and thus is not unique to AI.

Allow AI for ML Training

* provision.type = #permit
* provision.purpose[+] = $purposeOfUse#MLTRAINING

Consent example: Allow ML Training

Deny AI for ML Training

* provision.type = #deny
* provision.purpose[+] = $purposeOfUse#MLTRAINING 

Consent example: Deny ML Training

Allow AI for Clinical Decision Support

* provision.type = #permit
* provision.purpose[+] = $purposeOfUse
#TREATDS 

Consent example: Allow AI for Clinical Decision Support

Deny AI for Clinical Decision Support

* provision.type = #deny
* provision.purpose[+] = $purposeOfUse#TREATDS 

Consent example: Deny AI for Clinical Decision Support

Specific AI Systems or Models

For this we look to current identification of AI as a FHIR Device resource. This Device would be indicated in a Consent when a specific AI system or model is identified in a Consent.provision.agent.reference with a permit or deny provision.

This model requires that all access by an AI are attributed to the FHIR Device describing the AI. This might not be the case given how the AI is orchestrated. This model also is fragile as a new model or software would be a new Device, and thus would require a new provision in the Consent to indicate consent or dissent for that new AI.

Allow a specific AI for a specific purpose

In this case there is simply a provision indicating that the AI is permitted. There is no purposeOfUse indicated, but that could be an additional restriction. There is no other restrictions on the kinds of actions or the kinds of data, but those could also be additional restrictions.

* provision.type = #permit
* provision.agent.reference = Reference(Device/AIdevice) 

Consent example: Allow specific AI for specific purpose

Limitations on AI Access

In the FHIR Permission there is a concept of a "limit" which is limits placed on a permit provision. Where the limit might be an obligation or refrain, might be a specific additional data tag, or might be explicit removal of data elements. I have made an extension to replicate this "limit" concept so that it can be used on a Consent.provision. A "limit" should never be allowed to expose data where that limit can't be enforced. Specifically meaning that the recipient of the data must be trusted to enforce the obligation or refrain indicated. PermissionRuleLimit Extension

In FHIR R6 one could have a Consent that holds the provisions as a Permission resource, and thus the limits capability is available.

Allow AI for ML Training on De-Identified Data

* provision.type = #permit
* provision.purpose[+] = $purposeOfUse#MLTRAINING
* provision.modifierExtension[limit].extension[control].valueCodeableConcept = $obligation#DEID  

Consent example: Allow ML Training on De-Identified Data

Conclusion

The above examples are showing simply how a Consent.provision iteration can carry permit and deny to indicate consent or dissent for AI. The examples are not exhaustive, and there are many other combinations of provisions that could be used to indicate consent or dissent for AI. The examples are also not indicating any specific data elements that are being allowed or denied, but those could be added as additional restrictions on the provision.

The reader should be able to take a quilted Consent that has various provisions indicating consent or dissent for various clinical use (TPO) and add in provisions indicating consent or dissent for various AI use-cases, and thus have a single Consent that indicates the patient's preferences for both traditional clinical use and AI use.

The above examples are available in a draft IG on Consent About AI. That IG might further refine and improve beyond this blog article.


🎁Note, this is one of those projects I do pro bono but would love if someone would care enough about it to contract with me. Sustaining the Work That Sustains Trust: Why I’m Seeking Support for Some of My Standards Efforts