Dataset Viewer
Auto-converted to Parquet Duplicate
registration_number
stringlengths
4
21
position
int64
0
56
ingredient_id
int64
2
99.9k
ingredient_code
stringlengths
2
7
ingredient_name
stringlengths
4
248
quantity
stringlengths
1
36
unit
stringclasses
87 values
42991
0
176
176A
ACETILSALICILICO ACIDO
100
mg
42956
0
176
176A
ACETILSALICILICO ACIDO
500
mg
81012
0
1,111
1111A
ABACAVIR
600
mg
81012
1
7,371
7371A
LAMIVUDINA
300
mg
82591
0
1,111
1111CH
ABACAVIR CLORHIDRATO
676.401
mg
82591
1
7,371
7371A
LAMIVUDINA
300
mg
84182
0
1,111
1111A
ABACAVIR
600
mg
84182
1
7,371
7371A
LAMIVUDINA
300
mg
80803
0
1,111
1111CH
ABACAVIR CLORHIDRATO
676,401
mg
80803
1
7,371
7371A
LAMIVUDINA
300
mg
82913
0
1,111
1111A
ABACAVIR
600
mg
82913
1
7,371
7371A
LAMIVUDINA
300
mg
86190
0
8,349
8349AC
ABIRATERONA ACETATO
500
mg
87969
0
8,349
8349AC
ABIRATERONA ACETATO
500
mg
86024
0
8,349
8349AC
ABIRATERONA ACETATO
500
mg
86037
0
8,349
8349AC
ABIRATERONA ACETATO
500
mg
07428001
0
2,698
2698A
PACLITAXEL
100
mg
85180
0
8,295
8295A
BILASTINA
20
mg
1231752001
0
51,340
51340A
VIRUS SINCITIAL RESPIRATORIO, SUBGROUPO A, SUBUNIDAD F PROTEINA 847A ESTABILIZADA EN PREFUSION
0,06
mg
1231752001
1
51,340
51340B
VIRUS SINCITIAL RESPIRATORIO, SUBGROUPO B, SUBUNIDAD F PROTEINA 847B ESTABILIZADA EN PREFUSION
0,06
mg
65382
0
7,432
7432A
EZETIMIBA
10,0
mg
65059
0
2,793
2793A
LORNOXICAM
8
mg
61836
0
2,793
2793A
LORNOXICAM
4
mg
61837
0
2,793
2793A
LORNOXICAM
8
mg
60014
0
63
63PK
CITRATO POTASIO
1080
mg
70452
0
2,113
2113A
ACARBOSA
100
mg
70451
0
2,113
2113A
ACARBOSA
50
mg
69223
0
2,552
2552A
ACECLOFENACO
100,0
mg
79696
0
2,552
2552A
ACECLOFENACO
100
mg
64658
0
150
150AD
FLUOCINOLONA ACETONIDO
0,25
mg
64658
1
2,049
2049CH
CIPROFLOXACINO HIDROCLORURO
3,49
mg
61791
0
2,049
2049A
CIPROFLOXACINO
3
mg
68629
0
602
602AC
CIPROTERONA ACETATO
2
mg
68629
1
898
898A
ETINILESTRADIOL
0,035
mg
62389
0
233
233A
ACETILCISTEINA
200
mg
62390
0
233
233A
ACETILCISTEINA
600
mg
66460
0
233
233A
ACETILCISTEINA
100
mg
66459
0
233
233A
ACETILCISTEINA
200
mg
67763
0
233
233A
ACETILCISTEINA
600,0
mg
66458
0
233
233A
ACETILCISTEINA
600
mg
85923
0
233
233A
ACETILCISTEINA
600
mg
67621
0
233
233A
ACETILCISTEINA
200
mg
67988
0
233
233A
ACETILCISTEINA
600
mg
67874
0
233
233A
ACETILCISTEINA
600
mg
64920
0
233
233A
ACETILCISTEINA
200
mg
64921
0
233
233A
ACETILCISTEINA
600
mg
65048
0
233
233A
ACETILCISTEINA
200
mg
65049
0
233
233A
ACETILCISTEINA
600
mg
58154
0
2,554
2554CL
ACETILCOLINA CLORURO
20
mg
84468
0
201
201A
ACICLOVIR
200
mg
62478
0
201
201A
ACICLOVIR
800
mg
85061
0
201
201A
ACICLOVIR
800
mg
62298
0
201
201A
ACICLOVIR
200
mg
62127
0
201
201A
ACICLOVIR
50
mg
62297
0
201
201A
ACICLOVIR
800
mg
68296
0
201
201A
ACICLOVIR
5
g
62685
0
201
201A
ACICLOVIR
200
mg
62686
0
201
201A
ACICLOVIR
800
mg
61721
0
201
201A
ACICLOVIR
200.00
mg
62751
0
201
201A
ACICLOVIR
5000
mg
61722
0
201
201A
ACICLOVIR
800.00
mg
74266
0
176
176A
ACETILSALICILICO ACIDO
100
mg
76287
0
176
176A
ACETILSALICILICO ACIDO
100,00
mg
76237
0
176
176A
ACETILSALICILICO ACIDO
100,00
mg
81214
0
176
176A
ACETILSALICILICO ACIDO
100
mg
86705
0
176
176A
ACETILSALICILICO ACIDO
100
mg
70911
0
2,781
2781RV
ALENDRONATO SODIO TRIHIDRATO
91,370
mg
69827
0
2,781
2781RV
ALENDRONATO SODIO TRIHIDRATO
91,3
mg
67028
0
2,781
2781RV
ALENDRONATO SODIO TRIHIDRATO
91,36
mg
68919
0
2,781
2781RV
ALENDRONATO SODIO TRIHIDRATO
91,35
mg
83548
0
2,781
2781A
ALENDRONICO ACIDO
70
mg
83548
1
36
36A
COLECALCIFEROL
2800
UI
83549
0
2,781
2781A
ALENDRONICO ACIDO
70
mg
83549
1
36
36A
COLECALCIFEROL
5600
UI
74407
0
2,762
2762A
IBANDRONICO ACIDO
150
mg
74636
0
2,762
2762A
IBANDRONICO ACIDO
150
mg
73046
0
2,762
2762A
IBANDRONICO ACIDO
150
mg
74639
0
2,762
2762A
IBANDRONICO ACIDO
150
mg
78183
0
2,762
2762A
IBANDRONICO ACIDO
150
mg
73395
0
2,762
2762A
IBANDRONICO ACIDO
150
mg
79535
0
7,330
7330SO
MICOFENOLATO SODIO
192,350
mg
79536
0
7,330
7330SO
MICOFENOLATO SODIO
384,700
mg
77502
0
7,790
7790ET
ACIDOS OMEGA 3 ESTERES ETILICOS
C.SPARA1,000.00
mg
76326
0
7,790
7790ET
ACIDOS OMEGA 3 ESTERES ETILICOS
1000
mg
77451
0
7,790
7790ET
ACIDOS OMEGA 3 ESTERES ETILICOS
1000
mg
69661
0
7,245
7245A
TOPIRAMATO
100
mg
69662
0
7,245
7245A
TOPIRAMATO
200
mg
69659
0
7,245
7245A
TOPIRAMATO
25
mg
69660
0
7,245
7245A
TOPIRAMATO
50
mg
84402
0
2,892
2892A
TADALAFILO
10
mg
84403
0
2,892
2892A
TADALAFILO
20
mg
84404
0
2,892
2892A
TADALAFILO
5
mg
71590
0
2,863
2863A
ETORICOXIB
120,0
mg
71587
0
2,863
2863A
ETORICOXIB
30,0
mg
71588
0
2,863
2863A
ETORICOXIB
60,0
mg
71589
0
2,863
2863A
ETORICOXIB
90,0
mg
77675
0
272
272A
FLUOROURACILO
0,5000
g
77675
1
136
136A
SALICILICO ACIDO
10,0000
g
59494
0
2,253
2253A
ALTEPLASA
10
mg
78761
0
1,119
1119CH
MOXIFLOXACINO HIDROCLORURO
436,8
mg
End of preview. Expand in Data Studio

AEMPS CIMA Research Dataset

This directory builds a research-ready snapshot of CIMA, the medicine information system maintained by the Spanish Agency of Medicines and Medical Devices (AEMPS).

The source exposes official information about authorized and non-authorized medicines, commercial presentations, active ingredients, ATC codes, pharmaceutical forms, administration routes, regulatory status, safety-related indicators, segmented summaries of product characteristics and patient leaflets.

The project is intended exclusively for research and data exploration. It is not medical advice and must not be used to make prescribing, dispensing, diagnosis, treatment, regulatory, or safety decisions. Users should consult AEMPS and qualified healthcare professionals for current authoritative information.

Original source and credit

All source records are provided by Agencia Española de Medicamentos y Productos Sanitarios (AEMPS) through CIMA.

AEMPS describes these data as public and reusable, subject where applicable to source attribution. The generated provenance file records the exact retrieval time and source endpoints. Before public release, the maintainer must review the current AEMPS legal notice and set the precise Hugging Face license metadata if a standard license identifier applies.

Hugging Face contents

The staging process creates one dataset configuration per relational table. Every configuration uses a single train split because CIMA is an entity and document collection, not a predefined supervised-learning benchmark.

Configuration Unit Main content
medications One medicine registration Names, regulatory state, prescription and safety flags, dose and pharmaceutical form
presentations One commercial presentation National code, status, commercialization and supply flags
active_ingredients One medicine–ingredient edge Ingredient identifiers and names
excipients One medicine–excipient edge Excipient identifiers, amounts, units, and ordering
atc_codes One medicine–ATC edge ATC code, description and level
administration_routes One medicine–route edge Route identifiers and descriptions
documents One segmented document section Product information or patient leaflet section in HTML and plain text
document_links One source document reference Document type, URL and segmented-content availability
photos One source image reference Packaging or pharmaceutical-form image URLs and update times
No raw API responses are uploaded. The release also includes machine-readable schema, profile, quality, provenance, and checksum files.

This first release is a complete current-state snapshot at the retrieval date. Historical change events are intentionally excluded: they are not required to represent the current catalogue, and collecting the full event register would substantially delay publication. A future release may expose history as a separate dataset configuration.

Installation

Python 3.11 or newer is recommended.

cd aemps-cima
python -m venv .venv
python -m pip install -e ".[dev]"

Usage

Run a small end-to-end sample first:

cima-pipeline run --config configs/sample.json

Run the full snapshot:

cima-pipeline run --config configs/default.json

The run command downloads, normalizes, profiles, validates, and stages the release. Individual stages are also available:

cima-pipeline download --config configs/default.json
cima-pipeline normalize --config configs/default.json
cima-pipeline analyze --config configs/default.json
cima-pipeline stage --config configs/default.json

The default configuration excludes the historical change register. Set include_change_register to true only when intentionally building a separate historical release; that endpoint contains more than one million events and is not needed for the current-state snapshot.

Inspect hf_staging/ before publishing. Uploading is deliberately separate and explicit:

cima-pipeline upload --config configs/default.json --repo-id ORGANIZATION/DATASET_NAME

Set HF_TOKEN in the environment or authenticate with the Hugging Face CLI. The upload command never includes data/raw.

Storage lifecycle

After a release is verified on Hugging Face, delete data/raw, data/processed, and hf_staging locally. They are reproducible and ignored by Git. Keep the code, configuration, schemas, tests, and lightweight artifacts metadata in the repository.

Splits, classes, and limitations

There is no target label and therefore no class count. Fields such as ATC group, regulatory state, prescription status, and pharmaceutical form are categorical attributes, not benchmark classes. All configurations contain a 100% train split. Researchers creating prediction tasks should define their own patient-safe, leakage-aware, and preferably temporal evaluation design.

CIMA changes over time. A snapshot can become outdated, records may be corrected retrospectively, text availability varies by medicine, and relationships reflect the source representation at retrieval time. Dates returned by the API require careful timezone interpretation. The pipeline preserves source values and records its normalization decisions.

Downloads last month
21