AI & XML / LLM test suite / Results / Test cases / FHIR_HFIR_04_AkutAtemnot
Test case description
This test checks whether the model can generate a FHIR Bundle with a history of acute shortness of breath and HFIR information structured into four components.
Source file | FHIR_HFIR_04_AkutAtemnot.txt |
|---|---|
Series | 2 |
Categories | fhir, xml, hfir, bundle |
Evaluation | LLM judge |
Prompt SHA-256 | 08a7ff38239a332bdaaf474eda9f6ce469a5fcc50c5560b6d4054cb14aad756f |
LLM judge: The answer is evaluated with LLM support. A judge model compares the model’s answer with the domain expectation and decides whether its content meets it.
Expected result
Valid FHIR R4 XML Bundle with Patient and Observation for acute shortness of breath and four clinically plausible HFIR valueString components.
Expectation in the catalog | No |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Besides formal FHIR R4 structure, check that the Observation clearly documents acute shortness of breath and H, F, I and R are separate and clinically plausible.
Must be satisfied
The output consists solely of well-formed XML. Markdown code fences may be removed for evaluation, but extra prose is not allowed.
The root element is Bundle in the FHIR namespace http://hl7.org/fhir.
FHIR primitives use XML-compliant value attributes rather than unstructured element text.
Patient and Observation are resources in Bundle.entry/resource. The Observation has at least status and code.
Observation.subject references the Patient in the Bundle and resolves within that Bundle.
The Bundle contains a Patient and a linked Observation.
Observation.code or Observation.code.text identifies acute shortness of breath or a semantically unambiguous equivalent.
The Observation contains exactly four component entries H, F, I and R, each with nonempty valueString or format-compliant FHIR RDF representation.
The four texts are brief, clinically plausible and concern a history of acute shortness of breath. No particular wording is required.
Error criteria
The XML is not well formed, uses an incorrect or missing FHIR namespace or contains prose outside the serialization.
FHIR primitives are mostly represented as text rather than value attributes.
Patient or Observation is not correctly modeled as a Bundle resource.
Observation.status, Observation.code or the consistent Patient reference is missing.
The Observation clearly concerns another clinical topic or contains only generic placeholders.
HFIR is modeled only as running text or in fewer or more than four components.
At least one clinical value is empty or clearly contradicts the scenario.
Judge note: Evaluate against FHIR R4 XML representation rules. XML with merely similar-sounding element names is not a FHIR Bundle. Clinical HFIR text is judged by semantic plausibility, not particular wording.
Prompt
Erstelle ein FHIR Bundle im XML-Format, das eine Anamnese zur akuten Atemnot enthält.
Die Observation soll vier strukturierte HFIR-Komponenten enthalten.
Verwende in den Komponenten kurze klinische Angaben.
Achte auf korrekte Namespaces und gültige FHIR-Struktur.
Gib ausschließlich das Bundle aus.734 Runs 721 evaluated 8.3 % Score 2.1 % exactly correct
Help on evaluation, score and exact correctness
Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.
Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.
Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.
Model Category Access route