Skip to content

Commit 40d6f2c

Browse files
committed
adds button in the patinet prescription
1 parent ce6a222 commit 40d6f2c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • client/src/components/Patient/AppointmentDetails/prescription

client/src/components/Patient/AppointmentDetails/prescription/Medications.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ const Medications = ({ medications }) => {
3131
<td className="p-1.5 sm:p-3 text-gray-600 text-[10px] sm:text-sm">
3232
{med.instructions || 'As directed'}
3333
</td>
34+
<td>
35+
{med.quickmed === true && (
36+
<a
37+
href={`/quick-med/medicine/${encodeURIComponent(med.name || med.medicineName)}`}
38+
target="_blank"
39+
rel="noopener noreferrer"
40+
className="quickmed-button"
41+
>
42+
See in QuickMed
43+
</a>
44+
)}
45+
</td>
3446
</tr>
3547
))}
3648
</tbody>

0 commit comments

Comments
 (0)