AI & XML / LLM test suite / Results / Test cases / FHIR_HFIR_03_Synthetic-BundleUUID

Test case description

This test checks whether the model can generate a synthetic FHIR Bundle with URN UUIDs documenting an HFIR history, including a Patient with gender and birth date and an Observation with the HFIR ANAMNESE code.

Source file

FHIR_HFIR_03_SyntheticBundleUUID.txt

Series

2

Categories

fhir, xml, hfir, bundle

Evaluation

LLM judge

Prompt SHA-256

61e4c81343454e42945056a8b4070e8b197c890f2ef9beed86beb7c3c9cbcfc8

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 synthetic FHIR R4 XML Bundle with unique URN UUID identities, Patient with gender and birthDate, and Observation HFIR-ANAMNESE with four HFIR components.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Check valid, consistent URN UUIDs, Patient data, Observation code HFIR-ANAMNESE and complete HFIR component structure.

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 entries for Patient and Observation each have a unique identity in the form urn:uuid:<gültige UUID>.

  • Patient.gender contains a valid FHIR R4 AdministrativeGender code and Patient.birthDate a syntactically valid FHIR date.

  • Observation.code clearly identifies the Observation with HFIR-ANAMNESE, either as Coding.code or equivalent CodeableConcept modeling.

  • Observation.subject consistently references the Patient identity in the Bundle.

  • The Observation contains exactly four nonempty component entries H, F, I and R.

  • Each required Bundle.entry/fullUrl has a value attribute with urn:uuid:<UUID>.

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.

  • URN UUIDs are syntactically invalid, duplicated or references point to another or nonexistent resource.

  • A FHIR Resource.id incorrectly contains the full prefix urn:uuid: rather than only a valid FHIR id value.

  • gender, birthDate or the HFIR-ANAMNESE code is missing.

  • The four HFIR components are incomplete or not separately structured.

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

Erzeuge ein synthetisches FHIR Bundle (XML), das eine HFIR-Anamnese dokumentiert.
Patient soll Geschlecht und Geburtsdatum haben.
Die Observation soll den Code HFIR-ANAMNESE tragen.
Füge die vier HFIR-Komponenten ein.
Verwende unique URN-UUIDs für fullUrl.
Das Ergebnis muss wohlgeformtes FHIR XML sein.

743 Runs 729 evaluated 17.6 % Score 9.2 % 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