As mentioned in your proposal, I'll code you a desktop application using which you can write prescriptions. The application will have a list of popular medicines already filled in the database and also their recommended dosage which the doctor can modify if required. The prescription will be printed in a formal layout. The data will also be saved in the application for generating reports like medicine usage, etc.