AI & XML / LLM test suite / Results / Test cases / FHIR_HFIR_06_Neurologie

Test case description

This test checks whether the model can generate a complete FHIR Bundle for a neurological HFIR history, with valid IDs, correct Observation.status and Category Coding.

Source file

FHIR_HFIR_06_Neurologie.txt

Series

2

Categories

fhir, xml, hfir, bundle

Evaluation

LLM judge

Prompt SHA-256

2e68418e1ada612c32968846809323993a2852ad1ba4d556470d588c7e3c587f

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 for a neurological HFIR history with valid IDs, appropriate Observation.status, official Category Coding and HFIR exclusively in Observation.component.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Check valid resource IDs, Observation.status and category and exclusively component-based neurological HFIR modeling.

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.

  • Bundle, Patient and Observation each have a nonempty, syntactically valid FHIR id value that is unique within the output.

  • Observation.status is a valid FHIR R4 ObservationStatus code and semantically appropriate for a documented history, typically final.

  • Observation.category contains at least one Coding with system http://terminology.hl7.org/CodeSystem/observation-category and a nonempty, plausible code.

  • Observation.code or Observation.code.text identifies a neurological history or a semantically equivalent neurological topic.

  • HFIR is modeled exclusively in exactly four Observation.component entries H, F, I and R with nonempty valueString values.

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.

  • An ID is missing, syntactically invalid or reused inconsistently.

  • Observation.status is missing or does not contain a valid FHIR R4 code.

  • The Category Coding is missing, does not use an official observation-category system or has no code.

  • HFIR is stored outside components as a primary or parallel structure.

  • Neurological relevance is missing.

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 vollständiges FHIR Bundle in XML zur Abbildung einer HFIR-Anamnese im Bereich Neurologie.
Nutze gültige FHIR IDs, ein korrektes Observation.status und ein observation-category coding.
Die HFIR-Information muss ausschließlich in Observation.component abgelegt sein.
Gib nur das XML zurück.

734 Runs 725 evaluated 13.1 % Score 7.0 % 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

x

back to top