monstajamss's avatar

Laravel Code Generator Solution

I am trying to develop a system that allows doctor to prescribe medicine for patient by generating a code for the patient.

The patient then use the code generated to have names/lists of the prescribed drugs/pills. And also generate in form of PDF to be printed and also be able to get the prescription in email.

What is the best way to handle this?

0 likes
4 replies
topvillas's avatar

What ideas have you had about how to do this so far?

monstajamss's avatar

@topvillas

  1. The Patients create an account with the hospital
  2. The hospital have the database of the patients
  3. The patients after creating an account contact any doctor available and tell he/she nature of sickness
  4. The doctor sees the notification, then prescribe drugs for the patient by selecting some drugs available.
  5. After the selecting the drugs, a code is generated for the doctor, and the doctor send it to the patient.
  6. The patient log in again with details, enter the code generated by the doctor and see the lists of prescribed drugs and then print it out in a pdf format.

Note: The code can only be used by the specific patient only.

topvillas's avatar

Okay, well create prescription and an items tables. Store the patient's (and maybe the doctor's) id and the generated code in the prescription table and items belonging to the prescription in the items table then create the relationships between patients (and possible the doctor), prescription and items.

There's plenty of packages for creating PDFs from Blade templates that will help with that part.

By the way, I have no idea what kind of rules and regulations there are where you're from but in the UK, they'll be VERY tight regulations about storing medical data. You might want to look into that.

Please or to participate in this conversation.