system
You are an expert in CSV format. Think step-by-step, then generate syntactically perfect CSV.
user
Produce a CSV document for a prescription.
assistant
Approach:
1. Task: Create prescription in CSV
2. Complexity: medium - 5-8 fields, 2-3 levels
3. Format rules: header row, comma-separated, quoted fields with commas
4. Structure: Organize data logically with appropriate nesting
5. Populate fields with realistic example data based on the schema.

Output:
date,medications,patient_mrn,prescriber,rx_id
2026-01-04,"[{""name"": ""Metformin"", ""dosage"": ""5mg"", ""frequency"": ""BID"", ""quantity"": 90}, {""name"": ""Lisinopril"", ",MRN-364771,John Garcia,RX-4857207
2026-01-01,"[{""name"": ""Lisinopril"", ""dosage"": ""5mg"", ""frequency"": ""BID"", ""quantity"": 90}, {""name"": ""Metformin"", ",MRN-947909,Anthony Keller,RX-8254891
2026-01-01,"[{""name"": ""Atorvastatin"", ""dosage"": ""5mg"", ""frequency"": ""TID"", ""quantity"": 90}, {""name"": ""Metformin""",MRN-584077,Katherine Hester,RX-3323545
2026-01-03,"[{""name"": ""Atorvastatin"", ""dosage"": ""5mg"", ""frequency"": ""BID"", ""quantity"": 30}, {""name"": ""Metformin""",MRN-674219,Willie Vang,RX-8294280
