<?php

$path = '../../../';
require_once $path . 'core/includes/header.inc.php';
$page_meta['title'] = 'View Prescription';

if(!isset($_REQUEST['order'])) {
    throw new Exception('No order ID provided');
} else {
    $order = Order::getById((int)$_REQUEST['order']);
    $item = new Item();
    $item->Get_Item($_REQUEST['item_id']);
}

echo Order::getPharmacyLabelHTML($order, $item, $twig);
