system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
Produce a XML document for a lab result.
assistant
Approach:
1. Task: Create lab result in XML
2. Complexity: medium - 5-8 fields, 2-3 levels
3. Format rules: well-formed tags, proper nesting, escaped special chars
4. Structure: Organize data logically with appropriate nesting
5. Populate fields with realistic example data based on the schema.

Output:
<?xml version="1.0" encoding="UTF-8"?>
<lab_result>
<result_id>LAB-2969434</result_id>
<patient_mrn>MRN-921030</patient_mrn>
<order_date>2026-01-03</order_date>
<panel>CBC</panel>
<results>
<test>Glucose</test>
<value>90.1</value>
<unit>mg/dL</unit>
<flag>high</flag>
</results>
<results>
<test>Glucose</test>
<value>139.5</value>
<unit>g/dL</unit>
<flag>normal</flag>
</results>
<results>
<test>Glucose</test>
<value>100.3</value>
<unit>mg/dL</unit>
<flag>low</flag>
</results>
<results>
<test>Hemoglobin</test>
<value>114.5</value>
<unit>g/dL</unit>
<flag>normal</flag>
</results>
<results>
<test>Glucose</test>
<value>167.1</value>
<unit>g/dL</unit>
<flag>high</flag>
</results>
<results>
<test>Hemoglobin</test>
<value>173.6</value>
<unit>g/dL</unit>
<flag>low</flag>
</results>
</lab_result>