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: complex - 8-10 fields, 3-4 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"": ""Atorvastatin"", ""dosage"": ""5mg"", ""frequency"": ""BID"", ""quantity"": 90}, {""name"": ""Atorvastat",MRN-340912,Derek Gonzalez,RX-2186180
2026-01-03,"[{""name"": ""Metformin"", ""dosage"": ""10mg"", ""frequency"": ""BID"", ""quantity"": 90}, {""name"": ""Metformin"", ",MRN-100045,Tonya Duncan,RX-4349025
2026-01-02,"[{""name"": ""Lisinopril"", ""dosage"": ""10mg"", ""frequency"": ""BID"", ""quantity"": 30}]",MRN-300270,Caroline Allen,RX-1581655
2026-01-04,"[{""name"": ""Lisinopril"", ""dosage"": ""10mg"", ""frequency"": ""daily"", ""quantity"": 90}]",MRN-541036,Laurie Gutierrez,RX-9481756
2026-01-02,"[{""name"": ""Lisinopril"", ""dosage"": ""10mg"", ""frequency"": ""BID"", ""quantity"": 90}, {""name"": ""Lisinopril""",MRN-444550,Mark Diaz,RX-9906179
