AI & XML / LLM test suite / Results / Test cases / FHIR_HFIR_05_Kardio-Anamnese_ttl
Test case description
This test checks whether the model can correctly generate a FHIR R4 Bundle for a cardiological HFIR history, with a 60-year-old male patient and an Observation using HFIR valueString components.
Source file | FHIR_HFIR_05_KardioAnamnese_ttl.txt |
|---|---|
Series | 2 |
Categories | fhir, ttl, hfir, bundle |
Evaluation | LLM judge |
Prompt SHA-256 | 3966b42f8bf8c91318ae563eaa935d5a34eac018ba37327ae4eed674a8a767a2 |
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 for a cardiological HFIR history with a male Patient approximately 60 years old and four valueString components.
Expectation in the catalog | No |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Check patient gender and plausible age, cardiological relevance and correct 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.
Patient.gender is male.
Age derived from birthDate and an available reference date is approximately 60, ideally 59 to 61. Without an explicit reference date, birthDate must at least plausibly represent a patient about 60 years old.
Observation.code or Observation.code.text identifies a cardiological history or a semantically equivalent cardiac topic.
The Observation contains exactly four component entries H, F, I and R, each with a nonempty valueString or format-compliant FHIR RDF representation.
The four contents are clinically plausible and concern the cardiological history.
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.
gender is not male or the documented age is clearly not approximately 60.
Cardiological relevance is missing or the content clearly concerns another specialty.
An HFIR component is missing, duplicated or does not use a string value.
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
Generiere ein FHIR R4 Bundle in ttl.
Der Patient ist männlich und 60 Jahre alt.
Die Observation repräsentiert eine HFIR-Struktur zur kardiologischen Anamnese.
Jede Komponente H, F, I, R soll ein valueString haben.
Das Bundle muss einwandfrei parsebar sein.
Keine zusätzlichen Erklärungen ausgeben.714 Runs 701 evaluated 16.8 % Score 7.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