Loading...

Doctor Dashboard

Sign in to manage your patients and orders

{{ error }}

{{ menuItems.find(item => item.id === currentView)?.name || 'Dashboard' }}

Pending Approval

{{ pendingApprovalCount }}

Ready to Sign

{{ approvedCount }}

Signed Orders

{{ signedCount }}

Total Patients

{{ patientsCount }}

Orders Pending Approval

Review and approve or decline patient orders

Order ID

{{ order.id.substring(0, 8) }}...

Pending

Patient

{{ order.user?.name || 'Unknown' }}

{{ order.user?.email || order.userId }}

Items

{{ order.items?.length || 0 }} items

Created

{{ formatDate(order.createdAt) }}

Approved Orders - Ready to Sign

Create signature requests for approved orders

Order ID

{{ order.id.substring(0, 8) }}...

Approved

Patient

{{ order.user?.name || 'Unknown' }}

{{ order.user?.email || order.userId }}

Items

{{ order.items?.length || 0 }} items

Approved

{{ formatDate(order.updatedAt) }}

Signed Orders

Orders that have been signed and processed

Order ID

{{ order.id.substring(0, 8) }}...

Signed

Patient

{{ order.user?.name || 'Unknown' }}

{{ order.user?.email || order.userId }}

Items

{{ order.items?.length || 0 }} items

Signed

{{ formatDate(order.updatedAt) }}

Patients

View your patients and their order history

Patient Total Orders Last Order Actions
{{ patient.user?.name || 'Unknown' }}
{{ patient.user?.email || patient.userId }}
{{ patient.orders.length }} {{ formatDate(patient.orders[0]?.createdAt) }}

Access Denied

You don't have doctor privileges to access this dashboard.

Order Details

Order Information

Order ID: {{ selectedOrder.id }}
Status: {{ selectedOrder.status }}
Created: {{ formatDate(selectedOrder.createdAt) }}
Updated: {{ formatDate(selectedOrder.updatedAt) }}

Patient Information

Name: {{ selectedOrder.user?.name || 'Unknown' }}
Email: {{ selectedOrder.user?.email || selectedOrder.userId }}
Phone: {{ selectedOrder.user?.phone || 'N/A' }}

Order Items

{{ item.productName }}
PZN: {{ item.productPzn }}
Quantity: {{ item.quantity }}
Price: €{{ item.price }}

Questionnaire Responses

{{ section.id }}
{{ question }}: {{ Array.isArray(answer) ? answer.join(', ') : answer }}
Specified: "{{ section.otherTexts[question] }}"

Signature URL

Click the buttons below to sign the prescription:

This link will take you to Yousign where you can sign the prescription electronically.

Patient Details

Patient Information

Name: {{ selectedPatient.user?.name || 'Unknown' }}
Email: {{ selectedPatient.user?.email || selectedPatient.userId }}
Phone: {{ selectedPatient.user?.phone || 'N/A' }}
Total Orders: {{ selectedPatient.orders.length }}

Order History

Order ID Status Items Created Actions
{{ order.id.substring(0, 8) }}... {{ order.status }} {{ order.items?.length || 0 }} {{ formatDate(order.createdAt) }}

Bulk Signature Request Results

Successfully created requests for {{ bulkResult.success.length }} orders:

  • {{ orderId }}

Failed to create requests for {{ bulkResult.failures.length }} orders:

Order ID Reason
{{ failure.orderId }} {{ failure.reason }}