A major reference hospital in Barcelona needs an informatic application to help prescribe medical specialties for its Emergency Department. On one hand, a simple and agile use must rule due to distribution area characteristics (boxes and emergency service rooms); on the other hand, agility is necessary to consult, filter and locate thousands of pharmaceutical products. In terms of printing, once the prescription has been completed, the healthcare professional decides whether the patient is a pensioner or an active person, for social security purposes. The application must automatically choose the corresponding printer tray. Fields such as posology, observations and any other input collected by the official prescription must be made available to the doctor. Also, the application must use a barcode reader in order to incorporate the prescription number of the official document. Strict compliance of the LOPD must be taken into account, since this is third level personal data.

An application to help prescribe medical specialties is needed for the Emergency Department


A front-end Windows forms will be the communication point between the doctor and the application. All business logic is separated into object classes that are assembled into independent dll’s, thus achieving optimal encapsulation, code reuse, scalability, readability and maintainability. Simultaneously, a Web front-end must be incorporated in order to obtain information from the responsible person about all printers involved in the process, their trays, paper type and other parameters.


Windows Forms application developed in Visual Basic .NET. It is a “multi-tier” application where the business objects are located in the application server. Similarly, data access is partitioned into other assemblies. The communication between the user interface, the business layer and the data layer is done through .NET remoting. The data repository is located in SQL Server. Printer administration is developed through a WEB ASP .NET application.


After the medical team training, patients leave the emergency room with the official prescriptions issued to get their medicine in the pharmacies. Doctors avoid writing “in doctor’s handwriting” in a hurry. The information is encrypted in order to respect medical and personal data confidentiality

Share this post