system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
I need prescription details in XML structure.
assistant
Approach:
1. Task: Create prescription 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"?>
<prescription>
<rx_id>RX-2084107</rx_id>
<patient_mrn>MRN-607989</patient_mrn>
<prescriber>Jennifer Bradford</prescriber>
<date>2026-01-04</date>
<medications>
<name>Metformin</name>
<dosage>20mg</dosage>
<frequency>daily</frequency>
<quantity>90</quantity>
</medications>
<medications>
<name>Atorvastatin</name>
<dosage>5mg</dosage>
<frequency>BID</frequency>
<quantity>60</quantity>
</medications>
<medications>
<name>Metformin</name>
<dosage>5mg</dosage>
<frequency>TID</frequency>
<quantity>60</quantity>
</medications>
</prescription>