FHIR Validation Isn't Enough: Building a Decision Layer to Determine Action
FHIR Validation Doesn't Tell You What to Do Next, So I Built a Decision Layer
Summary
Structural validation of FHIR resources alone cannot determine the next course of action. The author built a decision layer utilizing an AI model (Jev) to bridge this gap, enabling specific actions like acceptance, routing, flagging, or human review.
Details
A FHIR resource can be structurally correct yet clinically inappropriate. For instance, an Indonesian National ID (NIK) might be 15 digits, passing structural checks but failing the required 16-digit standard. Traditional conformance checking only answers, 'Does it meet the spec?' but real pipelines require an answer to, 'What should we do with this resource?' To address this, the author developed a decision layer using the AI model Jev. This layer parses the FHIR resource, flattens its state, and passes it to Jev to decide on an action: accept, route, flag, or human review. The system is designed to run conformance checks first, followed by decisions based on the resulting state. Furthermore, by setting confidence thresholds, the system incorporates a 'band of uncertainty'—a feature not available in simple rule-based validation—by routing cases where the model is unsure to human review.
Original content copyright by respective publishers