system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
Output lab result as XML.
assistant
Approach:
1. Task: Create lab result in XML
2. Complexity: simple - 3-5 fields, minimal nesting
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>
<panel>Lipid</panel>
<result_id>LAB-2052546</result_id>
<order_date>2026-01-02</order_date>
<results>
<test>Glucose</test>
<value>97.8</value>
<unit>mg/dL</unit>
<flag>high</flag>
</results>
<results>
<test>Glucose</test>
<value>72.9</value>
<unit>g/dL</unit>
<flag>low</flag>
</results>
<results>
<test>Hemoglobin</test>
<value>78.8</value>
<unit>mg/dL</unit>
<flag>normal</flag>
</results>
<results>
<test>Glucose</test>
<value>133.9</value>
<unit>mg/dL</unit>
<flag>low</flag>
</results>
<results>
<test>Glucose</test>
<value>117.2</value>
<unit>g/dL</unit>
<flag>high</flag>
</results>
<results>
<test>Hemoglobin</test>
<value>80.1</value>
<unit>g/dL</unit>
<flag>high</flag>
</results>
<results>
<test>Glucose</test>
<value>186.4</value>
<unit>mg/dL</unit>
<flag>low</flag>
</results>
<patient_mrn>MRN-874630</patient_mrn>
</lab_result>