File size: 648 Bytes
877add7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export default function MedicationTable({ meds }: { meds: Array<Record<string, unknown>> }) {
  return (
    <section className="panel">
      <h3>Medication Table</h3>
      <table>
        <thead>
          <tr>
            <th>Drug</th>
            <th>Dose</th>
            <th>Indication</th>
          </tr>
        </thead>
        <tbody>
          {meds.map((m, idx) => (
            <tr key={idx}>
              <td>{String(m.drug ?? "-")}</td>
              <td>{String(m.dose_bucket ?? "-")}</td>
              <td>{String(m.indication ?? "-")}</td>
            </tr>
          ))}
        </tbody>
      </table>
    </section>
  );
}