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: complex - 8-10 fields, 3-4 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-2516539</result_id>
<patient_mrn>MRN-808236</patient_mrn>
<order_date>2026-01-01</order_date>
<panel>CMP</panel>
<results>
<test>Glucose</test>
<value>81.5</value>
<unit>mg/dL</unit>
<flag>low</flag>
</results>
<results>
<test>Hemoglobin</test>
<value>91.0</value>
<unit>mg/dL</unit>
<flag>low</flag>
</results>
<results>
<test>Glucose</test>
<value>121.1</value>
<unit>mg/dL</unit>
<flag>normal</flag>
</results>
<results>
<test>Hemoglobin</test>
<value>111.2</value>
<unit>g/dL</unit>
<flag>normal</flag>
</results>
<results>
<test>WBC</test>
<value>88.2</value>
<unit>g/dL</unit>
<flag>low</flag>
</results>
</lab_result>