AI & XML / LLM test suite / Results / Test cases / FHIR_HFIR_01_SimpleBundle
Test case description
This test checks whether the model can generate a simple FHIR R4 Bundle with exactly one Patient and one Observation, with the Observation containing four HFIR components H, F, I and R.
Source file | FHIR_HFIR_01_SimpleBundle.txt |
|---|---|
Series | 2 |
Categories | fhir, xml, hfir, bundle |
Evaluation | LLM judge |
Prompt SHA-256 | 0b2228c030899c2d83c3bb186c0b1be9bd70c386c0667d42acb7782eea596d66 |
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 exactly one Patient, exactly one Observation and exactly four HFIR components H, F, I and R.
Expectation in the catalog | No |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Check the requested FHIR R4 serialization, exact resource counts and complete HFIR representation in Observation.component.
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 exactly two entry resources: one Patient and one Observation.
The Observation contains exactly four component entries identifying H, F, I and R, each exactly once.
Each component has a nonempty valueString or the format-compliant FHIR RDF representation of that valueString.
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 Bundle has extra or missing Patient or Observation resources.
A component H, F, I or R is missing, duplicated or lacks a nonempty string value.
HFIR is output only as unstructured text rather than four Observation.component entries.
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 R4 Bundle im XML-Format.
Es soll genau einen Patient und eine Observation enthalten.
Die Observation soll vier HFIR-Komponenten enthalten namens H, F, I und R.
Hinterlege zu jeder Komponente einen kurzen medizinischen Inhalt.
Verwende gültige FHIR-Attribute und gebe nur das vollständige Bundle zurück.756 Runs 740 evaluated 18.9 % Score 11.5 % 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