Genetic Testing Before Prescribing: Routine or Selective?
Susana Almenara; Francisco Abad-Santos
September 10, 2026
Providing the right treatment to the right individual at the right time has been the primary goal of medicine for decades.
Although personalized medicine seems difficult to achieve, its development has been driven by the identification of biomarkers that can guide targeted therapies, particularly in oncology. This approach has substantially changed the course of diseases, including chronic myeloid leukemia, certain subtypes of breast cancer and non-small cell lung cancer, and metastatic melanoma. It is now expanding into other clinical areas, with the potential to improve prevention, diagnosis, treatment, and prognosis across a growing range of conditions.
On June 23, 2023, an agreement establishing the Catalog of Genetic Tests for the Common Portfolio of Services of the Spanish National Health System (NHS) was approved.
On June 18, 2024, a ministerial order updating the Common Portfolio of Services in the field of genetics and establishing an Advisory Committee for the portfolio was published in Spain’s Official State Gazette.
The regulation was developed with direct contributions from experts representing Spain’s Autonomous Communities, various scientific societies, the Carlos III Health Institute and the Spanish Network for the Evaluation of Health Technologies and Services.
Article Key Points
Spain NHS CGEN: 12 pharmacogenetic markers for 22 drugs.
Routine pre-treatment testing required for some labels: HLA-B*57:01, DPYD, TPMT/NUDT15.
Preemptive genotyping + EHR storage supports future prescribing; useful in polypharmacy, age >70.
PREPARE trial: 12-gene panel ↓ actionable ADRs ~30%.
Current use remains reactive; major gaps in statins, PPIs, opioids, NSAIDs, psychotropics.
Dive Deeper
Which pharmacogenetic panels improve primary care safety?
What EHR systems best store genotype results?
Which statin genes predict myopathy risk best?
See clinical implications for practice. Summarize this article in patient-friendly language. See clinical sources and evidence-based research
This marked the beginning of a process to define and expand the genetic tests included in the NHS common portfolio, with the goal of improving prevention, diagnosis, treatment, and prognosis for various high-impact diseases while promoting equitable access across the country.
Spain’s National Health System operates the Common Catalog of Genetic and Genomic Tests (CGEN) to guarantee nationwide, equitable access to molecular diagnostics and pharmacogenomic evaluations. The CGEN currently includes 12 pharmacogenetic markers for 22 drugs.
Pharmacogenetics examines how genetic markers influence an individual’s response to a specific medication or the risk for adverse effects, both within and across populations. The goal is to move toward more individualized treatment by selecting the most effective medication for each individual from the outset while minimizing the risk for adverse effects. Including these tests in the common portfolio provides a framework for requesting them within the NHS, although implementation may vary across autonomous communities and healthcare centers.
Some of these genetic markers are included in drug labeling, making testing necessary before treatment initiation. Examples include HLA B57:01 before treatment with abacavir, DPYD testing before treatment with fluoropyrimidines, and TPMT and NUDT15 gene testing before treatment with thiopurines, such as azathioprine. Other markers are relevant only to certain populations because they are uncommon outside these groups. One example is testing for the HLA B15:02 genetic marker, which is required before carbamazepine treatment in individuals of Asian ancestry.
The range of tests included in the portfolio also makes an ongoing review and updating necessary. For example, since the 2023 agreement, mavacamten has been introduced in Spain for the treatment of obstructive hypertrophic cardiomyopathy. Its prescription information requires knowledge of the CYP2C19 phenotype to select the initial treatment dose.
Other drugs, including lecanemab and donanemab, have been approved for the treatment of Alzheimer’s disease but are not yet marketed in Spain. Testing for the number of APOE epsilon 4 copies before starting lecanemab is critical because the drug is contraindicated in individuals who are epsilon-4/epsilon-4 homozygotes.
Another potential pharmacogenetic application, not yet included in CGEN, involves mitochondrial ND4 gene polymorphism (mtND4 m.11232T > C). To date, this variant has been described only in individuals of Venezuelan maternal ancestry and has been proposed as a marker associated with increased sensitivity to halogenated anesthetics and a higher risk for severe neurologic toxicity.
Therefore, the current catalog is a starting point that includes the first prioritized areas and will be expanded progressively. It will be updated periodically following proposals from the Advisory Committee for the Common Portfolio of Services in Genetics
.
Technical update proposals will be submitted to the Commission on Benefits, Insurance, and Financing, after which the tests will be formally approved through an agreement by the Interterritorial Council of the NHS.
This entire process of updating and finalizing the portfolio is carried out through the advisory committee, which includes representatives from autonomous communities, and its technical working groups, which involve relevant scientific societies to ensure that updates are based on the best available scientific evidence. The Ministry of Health also has information systems for monitoring portfolios, allowing the included tests to be consulted online.
Pharmacogenetics in Primary Care
The integration of pharmacogenetics into primary care is supported by growing evidence of its cost-effectiveness for both individual tests and multigene panels. This economic feasibility is supported by the declining cost of genomic technologies and their increasing availability in clinical practice.
For this transition to be effective and safe, clinical decision support systems have been proposed to help physicians interpret genetic data and minimize prescription errors. Within this framework, preemptive genotyping has emerged as an efficient approach because genetic results can be stored permanently in the electronic health record and accessed for future prescription without repeating the tests.
This approach may be particularly useful for managing individuals with multimorbidity and polypharmacy, especially adults older than 70 years, among whom the probability of receiving ≥ one medication covered by the active pharmacogenomic guidelines is close to 90%.
Preemptive genotyping has been shown to have clinical utility in several studies. The PREPARE study is probably the most important pharmacogenetic implementation trial conducted to date. The European, multicenter, open-label, cluster randomized trial included nearly 7000 individuals from seven countries. A preemptive 12-gene pharmacogenetic panel combined with the Dutch Pharmacogenetics Working Group provides evidence-based dosing and drug-selection recommendations to tailor medication use according to a patient’s genetic profile.
Pharmacogenetically guided prescribing reduces clinically relevant adverse drug reactions by approximately 30% in patients with actionable gene-drug interactions, a major finding of the study. The study showed that a multigene panel could be implemented in clinical practice to improve medication safety, although it included individuals from primary care, as well as hospital and specialist settings.
[
Several treatments involving pharmacogenetic testing are supported by sufficient evidence and international clinical guidelines, with some particularly relevant to primary care. However, the use of pharmacogenetics within the NHS remains limited and, in many cases, is reactive, with testing performed after problems with efficacy or safety have emerged, instead of being incorporated into a preventive strategy. This applies particularly to medications including statins, proton pump inhibitors (PPI), opioid analgesics, nonsteroidal anti-inflammatory drugs (NSAIDs), and psychotropic drugs.
For statins, CGEN limits the use of the SLCO1B1 genetic marker to individuals who have previously experienced severe muscle toxicity with simvastatin.
However, international guidelines recommend preventive testing and extend consideration to other statins and genetic markers, including CYP2C19 genotyping for fluvastatin and ABCG2 genotyping for rosuvastatin.
Another drug widely used in primary care and included in CGEN is omeprazole. The drug is primarily metabolized by CYP2C19, and genotyping can help predict the treatment response at standard doses. In the Spanish guidelines, the use of this marker is restricted to individuals with Helicobacter pylori infection who do not respond to omeprazole. By contrast, international guidelines propose CYP2C19 testing before treatment to help select the dose of omeprazole and other PPI for indications including H pylori infection, gastroesophageal reflux disease, gastric and duodenal ulcers, pathologic hypersecretory conditions, and eosinophilic esophagitis.
The only psychotropic drug included in the Spanish drug formulary is pimozide, which is associated with the CYP2D6 genetic marker for drug metabolism. Testing for this marker can be requested before treatment to reduce the risk for QT interval prolongation, a serious adverse effect related to the drug’s concentration in the blood.
The catalog does not currently include initial pharmacogenetic testing for numerous opioids, NSAIDs, antidepressants, antipsychotics other than pimozide, or cardiovascular drugs. However, when a genotype has already been obtained for another indication, the results may be used to guide the selection or dosage of medications metabolized by the same genes. These include various antidepressants and antipsychotics, tramadol, codeine, hydrocodone, flecainide, metoprolol, certain statins, ondansetron, and several NSAIDs. The genetic test was performed for a specific indication, and the results can later be used to guide treatment with other medications. This means that the existing genetic result is being used for another purpose, rather than serving as a separate reason to order the test.
Some Spanish centers use panels that simultaneously analyze several pharmacogenes so that even when a pharmacogenetic marker is requested for a specific treatment, information on other pharmacogenes relevant to treatments the patient may receive now or in the future can also be obtained. However, using this additional information presents challenges, including the complexity of processing the data, difficulty of storing it in electronic health records, and differences in electronic health record management systems across the country. As a result, most centers currently do not interpret, store, or use additional pharmacogenetic information for other treatments.[
Pharmacogenetics has begun to be implemented in the NHS, but its use is likely to vary across hospitals, specialty care, and primary care. Proper interpretation, storage, and integration of pharmacogenetic data into electronic health records could help address this gap by making the information available to all healthcare professionals when prescribing medications. This remains one of the main challenges in improving the quality of care and patient safety through the reduction of adverse effects and more effective treatment selection and response.
The authors reported having no relevant conflicts of interest.
Susana Almenara and Francisco Abad Santos work in the Clinical Pharmacology Unit/Service at La Princesa University Hospital, Madrid, and Abad Santos also holds a post in the Department of Pharmacology at the School of Medicine, Autonomous University of Madrid, Spain.
This article was produced through an editorial collaboration between the Spanish Society of Clinical Pharmacology and Univadis Spain, part of the Medscape Professional Network.