<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Health Informatics | Soroush Dianaty, M.D.</title><link>https://soroushdianaty.com/tags/health-informatics/</link><atom:link href="https://soroushdianaty.com/tags/health-informatics/index.xml" rel="self" type="application/rss+xml"/><description>Health Informatics</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sun, 26 Jul 2026 00:00:00 +0000</lastBuildDate><image><url>https://soroushdianaty.com/media/icon_hu_a589f346fc4c3e9d.png</url><title>Health Informatics</title><link>https://soroushdianaty.com/tags/health-informatics/</link></image><item><title>FHIR Data Segmentation for Non-FHIR Engineers: Protecting Sensitive Health Records in AI Pipelines</title><link>https://soroushdianaty.com/blog/fhir-data-segmentation-primer/</link><pubDate>Sun, 26 Jul 2026 00:00:00 +0000</pubDate><guid>https://soroushdianaty.com/blog/fhir-data-segmentation-primer/</guid><description>&lt;p&gt;As machine learning models and generative AI systems integrate deeper into electronic health record (EHR) workflows, engineering teams quickly run into a fundamental regulatory and ethical challenge: &lt;strong&gt;How do you feed patient charts into AI models without violating patient privacy consent or Federal health data privacy laws?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;While HIPAA Privacy Rules set the baseline for Protected Health Information (PHI), specialized federal regulations—such as &lt;strong&gt;42 CFR Part 2&lt;/strong&gt; (governing Substance Use Disorder records) and state-level mental health privacy statutes—require granular control over &lt;em&gt;which specific sections of a chart&lt;/em&gt; can be disclosed.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="the-problem-all-or-nothing-ehr-data-dumps"&gt;The Problem: All-or-Nothing EHR Data Dumps&lt;/h2&gt;
&lt;p&gt;In traditional hospital IT setups, when an AI model requests patient data, the pipeline often receives a raw JSON payload containing the entire longitudinal medical record.&lt;/p&gt;
&lt;p&gt;If a patient consents to sharing their general cardiology history with a research AI tool, but explicitly opts out of sharing substance use treatment history, a naive data pipeline that dumps the raw EHR payload into an LLM context window violates federal privacy laws.&lt;/p&gt;
&lt;div class="mermaid"&gt;
flowchart LR
subgraph Raw ["Naive Pipeline (High Privacy Risk)"]
A1["Complete Patient EHR Payload"] --&gt; B1["Raw LLM Context Window"]
B1 --&gt; C1["Risk of 42 CFR Part 2 Disclosure Violation"]
end
subgraph Segmented ["FHIR Data Segmentation Pipeline (Compliant)"]
A2["HL7 FHIR Bundle"] --&gt; B2["Security Label &amp; Consent Engine"]
B2 --&gt; C2["Context-Aware Sensitive Data Classifier"]
C2 --&gt;|Redacts Confidential Resources| D2["Sanitized FHIR Payload to AI Model"]
end
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id="what-is-fhir-granular-data-segmentation-ds4p"&gt;What is FHIR Granular Data Segmentation (DS4P)?&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Data Segmentation for Privacy (DS4P)&lt;/strong&gt; is an HL7 standard implementation guide built on top of &lt;strong&gt;HL7 FHIR (Fast Healthcare Interoperability Resources)&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Instead of treating a patient chart as a monolithic file, FHIR represents medical records as discrete &lt;strong&gt;Resources&lt;/strong&gt; (&lt;code&gt;Patient&lt;/code&gt;, &lt;code&gt;Observation&lt;/code&gt;, &lt;code&gt;Condition&lt;/code&gt;, &lt;code&gt;DiagnosticReport&lt;/code&gt;, &lt;code&gt;DocumentReference&lt;/code&gt;). Each resource can carry metadata &lt;code&gt;securityLabel&lt;/code&gt; tags:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;resourceType&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Condition&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;id&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;sud-example-101&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;meta&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;security&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;system&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;http://terminology.hl7.org/CodeSystem/v3-ActCode&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;code&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;ETH&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;display&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Substance Abuse Facility Information&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;system&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;code&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;R&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;display&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Restricted&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;code&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;coding&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;system&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;http://hl7.org/fhir/sid/icd-10-cm&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;code&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;F10.20&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;display&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Alcohol dependence, uncomplicated&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h2 id="role-of-context-aware-llms-in-privacy-tagging"&gt;Role of Context-Aware LLMs in Privacy Tagging&lt;/h2&gt;
&lt;p&gt;In structured EHR databases, billing codes (ICD-10 / SNOMED) are easily tagged. However, up to &lt;strong&gt;80% of clinical data lives in unstructured progress notes, discharge summaries, and clinical transcripts&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Static keyword filters miss nuanced sensitive disclosures (e.g., a physician writing &lt;em&gt;&amp;ldquo;Patient reports attending community support groups three times weekly&amp;rdquo;&lt;/em&gt; without explicitly naming a diagnostic code).&lt;/p&gt;
&lt;p&gt;In our research presented at &lt;strong&gt;
&lt;/strong&gt; and published in &lt;em&gt;&lt;strong&gt;Applied Clinical Informatics&lt;/strong&gt;&lt;/em&gt;, we demonstrated how fine-tuned, context-aware LLMs can automatically classify sensitive health records under granular security labels with over &lt;strong&gt;96.4% sensitivity&lt;/strong&gt;, allowing real-time redaction before data enters third-party AI pipelines.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="3-key-steps-for-building-compliant-health-ai-pipelines"&gt;3 Key Steps for Building Compliant Health AI Pipelines&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Enforce Resource-Level Security Tags:&lt;/strong&gt; Always check &lt;code&gt;Resource.meta.security&lt;/code&gt; labels before passing JSON payloads to external APIs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Implement Context-Aware Unstructured Redaction:&lt;/strong&gt; Use validated clinical classifiers to scan progress notes for un-coded sensitive disclosures.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audit Consent Enforcement:&lt;/strong&gt; Maintain an immutable log of consent decision enforcement for every model invocation.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;For further details, explore our publication on
or view our
.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Evaluating Clinical LLMs: Beyond Standard NLP Benchmarks</title><link>https://soroushdianaty.com/blog/evaluating-clinical-llms/</link><pubDate>Sat, 25 Jul 2026 00:00:00 +0000</pubDate><guid>https://soroushdianaty.com/blog/evaluating-clinical-llms/</guid><description>&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Clinical LLM Evaluation &amp;amp; Evidence Grounding Framework"
srcset="https://soroushdianaty.com/blog/evaluating-clinical-llms/featured_hu_463dba9e27e6f1e5.webp 320w, https://soroushdianaty.com/blog/evaluating-clinical-llms/featured_hu_4fda1aec35148172.webp 480w, https://soroushdianaty.com/blog/evaluating-clinical-llms/featured_hu_92434ded838c227c.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://soroushdianaty.com/blog/evaluating-clinical-llms/featured_hu_463dba9e27e6f1e5.webp"
width="760"
height="428"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;General-purpose Large Language Models (LLMs) continue to show impressive performance on standardized medical exams (such as USMLE question sets). However, achieving a high score on a multiple-choice exam is fundamentally different from providing &lt;strong&gt;clinically safe, evidence-grounded, and context-aware guidance&lt;/strong&gt; in real-world patient care settings.&lt;/p&gt;
&lt;p&gt;When an LLM is deployed in a hospital or clinic, a single plausible-sounding hallucination can lead to inappropriate treatment, delayed diagnoses, or compromised patient privacy.&lt;/p&gt;
&lt;h2 id="the-limits-of-standard-nlp-benchmarks-in-healthcare"&gt;The Limits of Standard NLP Benchmarks in Healthcare&lt;/h2&gt;
&lt;p&gt;Standard benchmarks like MMLU, MedQA, or GSM8K evaluate static knowledge retrieval and multi-choice reasoning. However, clinical environments present distinct challenges that these benchmarks miss:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Unstructured &amp;amp; Dynamic Context:&lt;/strong&gt; Real patient charts contain fragmented clinical notes, lab trajectories, and temporal dependencies.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Asymmetrical Risk:&lt;/strong&gt; In medicine, false positives and false negatives carry drastically unequal risks. A missing allergy alert is far more catastrophic than a redundant warning.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Auditable Evidence Grounding:&lt;/strong&gt; Clinicians cannot rely on black-box predictions. Every clinical recommendation must cite specific, verifiable evidence from authoritative guidelines or patient EHR records.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="mermaid"&gt;
flowchart TD
A["General NLP Benchmarks (MMLU / MedQA)"] --&gt;|Multiple Choice Tests| B["High Exam Accuracy"]
B --&gt;|Lacks Context &amp; Provenance| C["Risk of Clinical Hallucination"]
D["Rigorous Clinical AI Evaluation"] --&gt; E["1. Multi-Stage Evidence Grounding (EviTrace)"]
D --&gt; F["2. Granular Data Access Controls (FHIR)"]
D --&gt; G["3. Context-Aware Privacy Classification"]
E &amp; F &amp; G --&gt; H["Deployable &amp; Trustworthy Clinical AI"]
&lt;/div&gt;
&lt;h2 id="three-pillars-of-trustworthy-clinical-ai"&gt;Three Pillars of Trustworthy Clinical AI&lt;/h2&gt;
&lt;h3 id="1-multi-stage-evidence-grounding"&gt;1. Multi-Stage Evidence Grounding&lt;/h3&gt;
&lt;p&gt;Rather than relying on single-pass generation, clinical AI pipelines must extract structured attributes from scientific literature and EHR data with auditable provenance. In our open-source project &lt;strong&gt;EviTrace&lt;/strong&gt;, we implement a 4-stage quality control loop (&lt;em&gt;Rater $\rightarrow$ Inter-Annotator Agreement $\rightarrow$ Adjudication $\rightarrow$ Reconciliation&lt;/em&gt;) to ensure that every output field is anchored in W3C JSON-LD metadata.&lt;/p&gt;
&lt;h3 id="2-context-aware-sensitive-data-classification"&gt;2. Context-Aware Sensitive Data Classification&lt;/h3&gt;
&lt;p&gt;Privacy is paramount. In our recent work presented at the &lt;em&gt;AcademyHealth Annual Research Meeting 2026&lt;/em&gt;, we demonstrate how context-aware LLM architectures can accurately classify sensitive health records (such as substance use disorders or mental health records) under granular data segmentation rules.&lt;/p&gt;
&lt;h3 id="3-interoperability--standards-compliance"&gt;3. Interoperability &amp;amp; Standards Compliance&lt;/h3&gt;
&lt;p&gt;AI tools must integrate directly with existing hospital EHR systems using open standards like &lt;strong&gt;HL7 FHIR&lt;/strong&gt; and clinical terminologies (&lt;strong&gt;SNOMED-CT&lt;/strong&gt;, &lt;strong&gt;LOINC&lt;/strong&gt;, &lt;strong&gt;ICD-10&lt;/strong&gt;). As shown in our research published in &lt;em&gt;Applied Clinical Informatics&lt;/em&gt;, granular data segmentation in FHIR servers is critical for preserving patient consent while maintaining clinical utility.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="conclusion--future-directions"&gt;Conclusion &amp;amp; Future Directions&lt;/h2&gt;
&lt;p&gt;Building trustworthy clinical AI requires bridging the gap between computational data science and frontline medical practice. Moving forward, the focus must shift from chasing raw model scale to developing rigorous, domain-specific evaluation frameworks that guarantee safety, transparency, and evidence grounding.&lt;/p&gt;</description></item></channel></rss>