AI & XML / LLM test suite / Results / Test cases / FHIR_HFIR_07_Gastro-intestinal_ttl

Test case description

This test checks whether the model can generate a FHIR Bundle for a gastrointestinal HFIR history with a Patient and an Observation, including correct namespace and Bundle ID.

Source file

FHIR_HFIR_07_Gastrointestinal_ttl.txt

Series

2

Categories

fhir, ttl, hfir, bundle

Evaluation

LLM judge

Prompt SHA-256

aa8a30733ce4a48916cd0a39c7ee0796b7c7518ddd8f640d3762221e7fc04fd8

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 RDF/Turtle Bundle with a unique Bundle id, Patient, gastrointestinal Observation and H, F, I and R components in that order.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Check Bundle identity, format-compliant FHIR namespace handling, gastrointestinal relevance and order of the four HFIR components.

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.id is present, nonempty and a syntactically valid FHIR id value.

  • The Bundle contains a Patient and a linked Observation.

  • Observation.code or Observation.code.text identifies gastrointestinal symptoms or a semantically unambiguous equivalent.

  • The Observation contains exactly four component entries in order H, F, I, R.

  • Each component has a nonempty valueString or the format-compliant FHIR RDF representation of that valueString.

  • The H, F, I, R order is expressed by gapless fhir:index values 0, 1, 2 and 3.

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.

  • Bundle.id is missing or not a valid FHIR id value.

  • Gastrointestinal relevance is missing or the Observation describes another clinical topic.

  • Components are incomplete, duplicated, out of order or not modeled as four separate components.

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

Baue ein FHIR Bundle als ttl, das eine HFIR-Anamnese zur gastrointestinalen Symptomatik enthält.
Es soll einen Patient und eine Observation enthalten.
Verwende das korrekte FHIR-Namespace und eine eindeutige Bundle-ID.
Füge die HFIR-Teile H, F, I, R in der richtigen Reihenfolge ein.

717 Runs 703 evaluated 15.3 % Score 9.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

x

back to top