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

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

Series

2

Categories

fhir, json, hfir, bundle

Evaluation

LLM judge

Prompt SHA-256

66bf84f902b1d6e3880a5b8a9f97edecba542f0663c944dddf06d28b02230971

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 JSON 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 a syntactically valid JSON object. Markdown code fences may be removed for evaluation; extra prose, comments and trailing commas are not allowed.

  • The root object contains resourceType with value Bundle.

  • Bundle.entry is an array whose resource objects have the correct resourceType values Patient and Observation.

  • FHIR primitives are JSON values with the correct data type. XML attributes or namespace declarations must not be imitated.

  • The Observation has at least status and code. Observation.subject.reference consistently references the Patient in the 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 entry.fullUrl is a string in the form urn:uuid:<UUID>.

Error criteria

  • The output is not a parseable JSON object or contains prose or comments outside JSON.

  • resourceType Bundle is missing, or Patient and Observation are not modeled in entry[].resource.

  • XML-style value attributes, xmlns fields treated as mandatory structure, or other mixed syntax are used.

  • 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: FHIR JSON has no XML namespace. A missing xmlns field is therefore never an error. Valid FHIR R4 JSON structure is decisive. Clinical HFIR text is judged by semantic plausibility, not particular wording.

Prompt

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

733 Runs 718 evaluated 21.0 % Score 11.4 % 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