Receta Digital: National Control of Electronic Prescription and Medication Dispensing
Institution: Ministry of Health of Costa Rica
The Challenge:
Electronic prescription and dispensing control are critical topics for drug regulatory agencies worldwide, as they have a strong impact on public health policies and pharmacovigilance processes, especially regarding specific drug families and the consequences of their misuse or incorrect use.
This regulatory control began in Costa Rica over a decade ago for controlled substances (psychotropics and narcotics), under a strict framework requiring monitoring of the entire medication lifecycle—from manufacturing or importation, through the entire distribution chain, prescription, and finally dispensing to the patient.
More recently, in 2025, the Ministry of Health published a new decree on antimicrobial control, expanding oversight of systemic antibiotics, antivirals, and antiparasitic drugs through new rules and requirements. The goal of this new phase is to combat bacterial and fungal resistance and its consequences, including increased medical complexity, higher healthcare costs, and ultimately the deaths associated with such resistance.

Our solution:
Receta Digital is a national electronic prescription and medication dispensing platform, designed, implemented, and operated by SOIN for the Ministry of Health under a managed service model. The platform is highly configurable in terms of the medication catalog, the level of control per therapeutic family, and prescription and dispensing rules.
• Receta Digital interoperates with the national database of legally approved medications (Regístrelo) to obtain the official list of authorized drugs for commercialization in the country. It relies on a structured and normalized medication database using international coding and classification standards.
• The solution interoperates with the professional associations involved in the prescription and dispensing cycle—physicians, dentists, nurses, and pharmacists—to verify that all elements of the process are valid: an authorized medication with all active permits and a certified, active professional. It also integrates with the national Civil Registry and Costa Rica's customs database to ensure valid patient identification.
• When all process elements are valid, the platform generates a unique electronic prescription code that can be used only once at any pharmacy in the country.
• Receta Digital has its own electronic prescribing tool (web and mobile) and its own dispensing record module. It provides HL7 FHIR® services that enable integration with external electronic prescribing systems, electronic health records, and pharmacy point-of-sale systems.
• The electronic prescribing tools can also provide information on the World Health Organization's AWaRe classification (Access, Watch, and Reserve), helping prevent antimicrobial misuse.
• Receta Digital incorporates an advanced analytics module providing all the KPIs and reports required by the Ministry of Health, supporting the country's participation in health surveillance initiatives such as WHO's One Health and GLASS.
• It includes a FHIR® Clinical Data Repository that stores all information in standard FHIR® format. All data is managed in strict compliance with current regulations and is registered with PRODHAB, aligned with GDPR and HIPAA standards.
Results:
Receta Digital currently manages all prescriptions and dispensing of psychotropic, narcotic, and systemic antimicrobial medications in Costa Rica, integrating data from over 6,000 prescribing professionals and 3,000 pharmacies, with approximately 2.5 million prescriptions per year.
This has enabled the Ministry of Health to:
• Implement and operate a unified, structured, and interoperable national medication database, incorporating SNOMED CT coding and WHO-ATC classification.
• Implement national FHIR® interoperability guidelines for medication catalogs, prescriptions, and dispensing records.
• Maintain comprehensive control over medication use, including inventory audits when regulations require it.
• Combat the illegal medication market.
• Obtain medication usage statistics and generate granular, georeferenced public health and pharmacovigilance reports.
• Detect incorrect prescribing or dispensing patterns that do not align with best clinical practices.
• Generate structured international reports on medication use, aligned with WHO standards and classified by drug and anatomical-therapeutic group.
• Improve medication safety and reduce problems associated with misuse, such as addictions or antimicrobial resistance.
• Contribute to improving public health outcomes in Costa Rica, reducing risks and costs for the healthcare system.
Technologies used:
• Oracle Web Application Firewall: Web traffic protection and filtering service against cyber threats and attacks.
• Oracle Base Database Service: Managed Oracle database service.
• OCI Compute: Compute service for virtual machines.
• OCI Object Storage: Scalable and secure storage service for files and unstructured data.
• OCI Audit: Audit and monitoring service for actions performed on OCI resources.
• OCI Load Balancer: Load balancing service that distributes traffic across multiple servers to improve availability and performance.
• OCI Custom Images: Functionality to create and manage custom instance images, enabling fast and standardized deployments.
• OCI Virtual Cloud Network: Private virtual network service for creating and managing secure networks, subnets, and access rules within OCI.
• OCI Site-to-Site VPN: Secure connectivity service using IPSec tunnels between on-premise networks and OCI, enabling private and encrypted communication between infrastructures.
• OCI Cloud Guard: Security posture service that detects misconfigurations and anomalous activity in real time within OCI.
• OCI Monitoring: Metrics collection and alerting service for continuous monitoring of OCI resources and applications.
• OCI Vault: Centralized management service for secrets, encryption keys, and certificates to protect sensitive data.
• OCI Bastion: Secure and restricted access service to resources in private networks without direct internet exposure.
• OCI Identity and Access Management (IAM): Service for managing identities, users, groups, and access policies for OCI resources.
• OCI Tagging: Service to organize and classify OCI resources using tags, facilitating management, auditing, and cost control.
• OCI Cost Management: Service for analyzing and controlling OCI spending, with budgeting tools, alerts, and consumption reports.
• OCI Resource Manager: Infrastructure-as-code (IaC) service based on Terraform for automating the provisioning and management of OCI resources.