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

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_ttl.txt

Series

2

Categories

fhir, ttl, hfir, bundle

Evaluation

LLM judge

Prompt SHA-256

f3fb4c75ef335ce67b7c11c5e21e86a8cfec6b77258a90c3cbcd9cd0a23c5f4b

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 RDF/Turtle 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 syntactically valid Turtle and can be parsed as an RDF graph. Markdown code fences may be removed for evaluation; extra prose is not allowed.

  • The prefix fhir is bound to http://hl7.org/fhir/.

  • Exactly one node is typed as fhir:Bundle and marked as the root resource with fhir:nodeRole fhir:treeRoot.

  • Patient and Observation are modeled as fhir:Patient and fhir:Observation resources and reachable through the FHIR Bundle structure.

  • FHIR primitives use R4 RDF modeling with fhir:value. Repeated elements have consistent, gapless fhir:index values starting at 0.

  • The Observation has valid FHIR RDF statements for status and code. The subject Reference contains a consistent fhir:Reference.reference and preferably a resolvable fhir:link to the Patient.

  • 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.

  • Patient and Observation use unique urn:uuid: IRIs or semantically equivalent FHIR RDF identity modeling consistent with Bundle references.

Error criteria

  • The output is not parseable Turtle, binds fhir incorrectly or contains prose outside the RDF serialization.

  • The graph uses only invented predicates instead of FHIR R4 RDF properties.

  • More than one node is marked as treeRoot or the root is not a Bundle.

  • Primitive values are not represented with fhir:value, or repetitions have duplicate or gap-containing fhir:index values.

  • Patient, Observation, status, code or the subject Reference pointing to the Patient 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 the official FHIR R4 RDF representation. Turtle is an RDF graph, but the order of repeated FHIR elements is defined by fhir:index. Clinical HFIR text is judged by semantic plausibility, not particular wording.

Prompt

Erzeuge ein synthetisches FHIR Bundle (ttl), 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 ttl sein.

746 Runs 734 evaluated 18.9 % Score 8.6 % 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