# Real-world data sources: pharma rwd-sources

The pharma rwd-sources commands, with each dataset's columns, units and source credit.

A real-world data source registered in the HMA-EMA catalogue of real-world data sources and studies: what the data holder declares it records, how current it is, its size, common data model and linkages, and the registered studies that named it. Metadata a holder typed into a voluntary register, with no records from the databases themselves. Licensable tier, PROVISIONAL.

Id: The register's own Data source ID, digits, the id in the web page address (/rwd-sources/<id>). Every data source dataset takes this same id in its data_source_id column. Matching is exact.

## Commands

| Command | Reads |
| --- | --- |
| pharma rwd-sources list | Real-world data sources (HMA-EMA catalogue) |
| pharma rwd-sources get <id> | One real-world data source and the datasets reachable from it |
| pharma rwd-sources get <id> rwd-source-age-bands | Real-world data source age bands |
| pharma rwd-sources get <id> rwd-source-conditions | Real-world data sources named by registered studies of a condition |
| pharma rwd-sources get <id> rwd-source-etl-mappings | Real-world data source common data model mappings |
| pharma rwd-sources get <id> rwd-source-linkages | Real-world data source linkages |
| pharma rwd-sources get <id> rwd-source-types | Real-world data source types |
| pharma rwd-sources get <id> rwd-source-vocabularies | Real-world data source coding schemes |
| pharma rwd-sources get <id> rwd-study-data-sources | Registered real-world data study data sources |

Every command takes the paging, sorting and output flags described on the CLI page; the CLI prints the source credit with every result.

- [Pharma Observatory CLI](https://pharmaobservatory.com/cli)

## Real-world data sources (HMA-EMA catalogue)

**Command**

```sh
pharma rwd-sources list
```

The rwd_sources object type's primary dataset: one row per real-world data source registered in the HMA-EMA catalogue of real-world data sources and studies, with its identity, the two clocks on how current it is, what it declares it records (exposure and outcome capabilities, tri-state), its size, common data model and linkage declarations, governance answers and the studies that named it. Metadata a holder typed into a voluntary register, with no records from the databases themselves. Source fit for a request: filter this dataset by country (an OR of '<country>' = ANY(country_names)) and by each required capability flag, rank on active_population_size, then read rwd_source_conditions for the MeSH descriptors and merge on data_source_id; the condition is a sort key, never a filter, and a source it names is a source named by registered studies of X, never a source with data on X. A capability flag is the register export's Yes or No: the export cannot tell an unanswered question from No, so a false flag reads register export: No and never declared no. The query text, the output contract and the two worked scenarios are in docs/api-datasets.md, Source fit for a request (#6182).

One row per: registered real-world data source. Key columns: `data_source_id`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| data_source_name | text |  | The data source's name as the data holder registered it; null on a stub entry with no name. |
| data_source_acronym | text |  | The acronym the data holder registered for the source. |
| data_holder | text |  | The organisation that holds the data, as typed in the register (free text, not resolved to a company). |
| data_source_type | text |  | The data source type(s) the holder ticked, as one comma-separated string as the register exports it; rwd_source_types has one row per declared type. |
| data_source_type_other | text |  | The holder's free-text description when it chose the register's other data source type. |
| data_source_domain | text |  | The register's data source domain (for example Claims, Primary care, Secondary care). |
| care_setting | text |  | The care setting the holder declares for the source. |
| main_financial_support | text |  | The main financial support of the data source as the holder declared it. |
| country_names | text[] |  | The countries the source covers, one array element per register country, split by the register's own country list (so Iran, Islamic Republic of stays one country). Matches the group-by-able membership filter 'Spain' = ANY(country_names). |
| unmatched_country_fragments | text[] |  | Country text items the country vocabulary of this build does not hold. |
| country_count | integer |  | The number of countries in country_names. |
| catalogue_url | text |  | The address of this entry on the HMA-EMA catalogue site (the register's URL LINK). |
| data_source_website | text |  | The data source's own website as the holder registered it. |
| is_darwin_eu_data_partner | boolean |  | Whether the holder declares the source a DARWIN EU data partner (the EMA-coordinated European network of real-world data sources); null when unanswered. |
| is_qualified | boolean |  | The register's Data source qualification answer; true when the holder declares a qualification, null when unanswered. |
| refresh_cadence | text |  | How often the holder says the database takes new data, as typed (the register's Data source refresh). |
| last_refreshed_on | date |  | The date the holder says the database last took new data (the register's Data source last refresh). |
| record_updated_at | timestamp |  | When the registrant last edited this catalogue entry. A different clock from last_refreshed_on: it dates the web form, not the database. |
| record_first_published_at | timestamp |  | When the catalogue entry was first published. |
| is_outdated | boolean |  | EMA's own Outdated flag, carried through untouched; the register flags none of the data sources, so read false as EMA's answer and not as a currency finding. |
| record_updated_over_12_months_ago | boolean |  | True when the catalogue entry was last edited more than twelve months before the snapshot. About the web form only; it says nothing about whether the database has taken new data (see database_refresh_state). |
| refresh_interval_days | integer |  | The interval in days the longest declared refresh cadence is read as; the threshold the database_refresh_state verdict used. Null when no declared cadence was recognised. |
| refresh_interval_basis | text |  | Which declared cadence refresh_interval_days came from. |
| refresh_interval_days_shortest | integer |  | The interval in days of the strictest declared cadence, for a source that declared several. |
| refresh_interval_basis_shortest | text |  | Which declared cadence refresh_interval_days_shortest came from. |
| refresh_cadence_declared | text[] |  | Every cadence the holder declared, in declared order; the month names of one answer count as one declaration. Positionally paired with refresh_cadence_interval_days and refresh_cadence_is_month_names. Empty when none was declared. |
| refresh_cadence_interval_days | text[] |  | The interval in days each declared cadence was read as, positionally paired with refresh_cadence_declared, rendered as text because the catalog has only text arrays. |
| refresh_cadence_is_month_names | text[] |  | Whether each declared cadence is a list of month names (priced as 365 days over the number of months named); rendered as text (true or false per element) because the catalog has only text arrays. |
| days_since_last_refresh | integer |  | Days from last_refreshed_on to the catalogue snapshot date; null when no refresh date is declared. |
| database_refresh_state | text |  | Adherence verdict about the holder's own promise: the declared cadence against the declared last refresh, measured to the snapshot date. Not a currency answer: use refresh_recency_band for how old the data is. |
| refresh_state_strict | text |  | The same adherence verdict as database_refresh_state, read against the strictest declared cadence instead of the longest. |
| refresh_recency_band | text |  | Absolute age of the last database refresh at the snapshot date, in disjoint bands, with no reference to any declared cadence. Sources that declared no refresh date have their own band; they are unanswered, not stale. |
| collection_last_band | text |  | The band of the declared last collection date (the observable window), banded with the same ruler as refresh_recency_band; null when no collection date is declared. |
| collection_contradicts_refresh_band | boolean |  | True when the last collection date and the last refresh date fall in different currency bands. A fact to print beside the currency screen, not a control. |
| prescriptions_of_medicines | boolean |  | Whether the data holder declares that prescriptions of medicines are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| prescriptions_vocabulary | text |  | The coding scheme(s) the holder declares for prescriptions, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| prescriptions_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| dispensing_of_medicines | boolean |  | Whether the data holder declares that dispensing of medicines is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| dispensing_vocabulary | text |  | The coding scheme(s) the holder declares for dispensing, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| dispensing_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| medicinal_product_vocabulary | text |  | The coding scheme(s) the holder declares for medicinal product information, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| medicinal_product_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| indication_for_use | boolean |  | Whether the data holder declares that the indication for use of a medicine is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| indication_vocabulary | text |  | The coding scheme(s) the holder declares for the indication for use, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| indication_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| diagnostic_codes | boolean |  | Whether the data holder declares that diagnostic codes are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| diagnosis_medical_event_vocabulary | text |  | The coding scheme(s) the holder declares for diagnoses and medical events, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| diagnosis_medical_event_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| hospital_admission_and_or_discharge | boolean |  | Whether the data holder declares that hospital admission and/or discharge is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| icu_admission | boolean |  | Whether the data holder declares that intensive care unit (ICU) admission is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| cause_of_death | boolean |  | Whether the data holder declares that cause of death is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| cause_of_death_vocabulary | text |  | The coding scheme(s) the holder declares for cause of death, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| cause_of_death_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| disease_information | boolean |  | Whether the data holder declares that disease information is collected: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| rare_diseases | boolean |  | Whether the data holder declares that rare diseases are identifiable: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| pregnancy_and_or_neonates | boolean |  | Whether the data holder declares that pregnancy and/or neonates are covered: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| advance_therapy_medicinal_products_atmp | boolean |  | Whether the data holder declares that advanced therapy medicinal products (ATMP) are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| contraception | boolean |  | Whether the data holder declares that contraception is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| medical_devices | boolean |  | Whether the data holder declares that medical devices are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| administration_of_vaccines | boolean |  | Whether the data holder declares that administration of vaccines is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| procedures | boolean |  | Whether the data holder declares that procedures are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| procedures_vocabulary | text |  | The coding scheme(s) the holder declares for procedures, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| procedures_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| clinical_measurements | boolean |  | Whether the data holder declares that clinical measurements are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| healthcare_provider | boolean |  | Whether the data holder declares that the healthcare provider is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| genetic_data | boolean |  | Whether the data holder declares that genetic data are held: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| genetic_data_vocabulary | text |  | The coding scheme(s) the holder declares for genetic data, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| genetic_data_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| biomarker_data | boolean |  | Whether the data holder declares that biomarker data are held: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| biomarker_data_vocabulary | text |  | The coding scheme(s) the holder declares for biomarker data, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| biomarker_vocabulary_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| patient_reported_outcomes | boolean |  | Whether the data holder declares that patient-reported outcomes are held: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| patient_generated_data | boolean |  | Whether the data holder declares that patient-generated data are held: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| units_of_healthcare_utilisation | boolean |  | Whether the data holder declares that units of healthcare utilisation are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| unique_identifier_for_persons | boolean |  | Whether the data holder declares that a unique identifier for persons exists: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| quality_of_life_measurements | boolean |  | Whether the data holder declares that quality of life measurements are held: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| quality_of_life_measurements_vocabulary | text |  | The coding scheme(s) the holder declares for quality of life measurements, comma-joined as typed; rwd_source_vocabularies has one row per scheme. |
| quality_of_life_measurements_other | text |  | The holder's free-text description of the other coding scheme it declares for this capability. |
| lifestyle_factors | boolean |  | Whether the data holder declares that lifestyle factors are recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| sociodemographic_information | boolean |  | Whether the data holder declares that sociodemographic information is recorded: true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| population_size | bigint |  | The population size the holder declared for the source (all registered persons). |
| active_population_size | bigint |  | The active population size the holder declared for the source. |
| median_observation_time_years | numeric |  | The median observation time in years exactly as the holder declared it. Never corrected: see median_observation_time_plausibility. |
| median_observation_time_active_years | numeric |  | The median observation time in years for the active population exactly as the holder declared it. Never corrected: see median_observation_time_active_plausibility. |
| established_on | date |  | The date the data source was established. |
| collection_first_on | date |  | The date of the first data collection. |
| collection_last_on | date |  | The date of the last data collection; null on most sources and a future date on some, so it is a fact to read and not a field to sort on. |
| declared_history_span_years | numeric |  | The data window in years the holder's own dates give the database (earliest of established and first collection, to last collection or the snapshot). |
| median_observation_time_plausibility | text |  | Classifies the declared median observation time without correcting it: plausible, exceeds_ceiling (more than 100 years), exceeds_declared_span (more than a year longer than the holder's own data window) or not_declared. |
| median_observation_time_active_plausibility | text |  | The same classification for the active-population median observation time. |
| estimated_population_coverage_text | text |  | The estimated percentage of the population covered, as free text exactly as typed (values include Unsure and Not available); deliberately not parsed into a number. |
| age_groups | text |  | The age groups the holder declares the source covers, as one comma-separated string. |
| age_band_count | integer |  | The number of declared age bands (rwd_source_age_bands has one row per band). |
| has_population_breakdown | boolean |  | Whether the holder published a population size breakdown by age band at all. |
| has_active_population_breakdown | boolean |  | Whether the holder published an active population breakdown by age band at all. |
| age_bands_are_nested | boolean |  | True when the declared age bands overlap (an open-ended elderly band declared beside narrower bands inside it). Age bands from such a source must not be summed; no sum is published. |
| cdm_mapping | boolean |  | Whether the holder declares the data are mapped to a common data model (CDM), such as OMOP. Read it with cdm_readiness, which says whether the transform is finished. |
| etl_status | text |  | The extract-transform-load (ETL) status of the CDM mapping as typed; one comma-joined answer per declared mapping (rwd_source_etl_mappings has one row per mapping). |
| etl_cdm_version | text |  | The CDM version(s) declared for the ETL, comma-joined as typed. |
| etl_frequency | text |  | The ETL frequency declared, comma-joined as typed. |
| etl_specifications_file | text |  | The ETL specifications file the holder attached, if any (empty at source on the registered sources). |
| declared_mapping_count | integer |  | How many CDM mappings the holder declared, after register join artefacts are removed; 0 when the question was never answered. |
| cdm_readiness | text |  | The CDM fact as one closed label that carries the word the holder wrote about the transform, so cdm_mapping alone is never read as ready. Exhaustive and never null: not_declared, no_mapping, mapping_without_etl_status, etl_completed, etl_in_progress, etl_planned, etl_not_done, etl_mixed (several mappings whose statuses differ or one has none) or etl_other (an unrecognised word). |
| linkage | boolean |  | Whether the holder declares that the data can be linked to other data sources. |
| has_pre_linked_declaration | boolean |  | Whether the holder gave a description of a linkage already made (pre-linked). |
| has_possible_linkage_declaration | boolean |  | Whether the holder gave a description of a linkage that is possible but not done. |
| linked_data_source | text |  | The linked data source name(s) as typed, comma-joined; rwd_source_linkages has one row per declared linkage. |
| linked_data_source_other | text |  | The linked data source named in free text when the holder chose Other data source. |
| linked_linkage_completeness | text |  | The linkage completeness the holder declared, as typed. |
| linked_linkage_variable | text |  | The linkage variable(s) the holder declared, as typed. |
| linked_linkage_strategy | text |  | The linkage strategy the holder declared, as typed. |
| declared_linkage_count | integer |  | How many linkages the holder declared; 0 when none. |
| linkage_state | text |  | Five states, exhaustive and never null: pre_linked, possible_not_done, declared_without_detail, no_linkage, not_declared. Pre-linked and possible linkage are kept apart on purpose. |
| biospecimen_access | boolean |  | Whether biospecimens can be accessed through the source; true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| access_to_subject_details | boolean |  | Whether the holder can access subject details; true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| possibility_of_data_validation | boolean |  | Whether the data can be validated; true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| records_are_preserved_indefinitely | boolean |  | Whether records are preserved indefinitely; true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| data_source_preservation_length_years | text |  | How long the data are preserved, in years, as typed. |
| approval_for_publication | boolean |  | Whether approval for publication is needed; true when the data holder declares it, false when the holder declares it absent, null when the holder did not answer (never read null as no). |
| informed_consent_for_use_of_data_for_research | text |  | The informed consent regime for research use as the holder declared it, as typed. |
| governance_details_link | text |  | A link to the source's governance details, as the holder registered it. |
| declared_capability_count | integer |  | How many of the 35 capability and governance questions carry a Yes or No in the register export (a count of non-blank form fields, not a measure of the data held). The export cannot tell a No from an unanswered question, so this sits at or near 35 and does not measure how many questions the holder actually answered. |
| declarable_capability_count | integer |  | How many such questions the form offers (35); the denominator of declared_capability_count. |
| register_source_count | integer |  | The number of data sources in the whole data source register at the snapshot: the denominator every source count is over. Not a count of real-world data sources in the world. |
| study_count | integer |  | How many registered studies named this source. A registered study NAMED the source; it is never evidence that the source holds data on a condition. Read it with study_register_total and studies_naming_a_registered_source, because a zero is not a finding that the source is unused. |
| study_register_total | integer |  | The number of studies in the whole study register at the snapshot. |
| studies_naming_a_registered_source | integer |  | How many registered studies name at least one data source that is itself registered; the denominator under study_count. |
| snapshot_label | text |  | The label of the catalogue snapshot the row was read from (a date). |
| accessed_month | text |  | The month and year the catalogue was accessed (YYYY-MM), which EMA's site asks to be cited with its URL. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Real-world data source age bands

**Command**

```sh
pharma rwd-sources get <id> rwd-source-age-bands
```

The population size breakdown by age band each registered source declares, one row per source and band. The sources themselves are the rwd_sources dataset.

One row per: data source and declared age band. Key columns: `data_source_id`, `band_ordinal`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| band_ordinal | integer |  | The position of the age band in the source's declared list, from 1. |
| age_band | text |  | The age band label as the holder declared it. Bands can overlap (see is_nested_scheme); never sum them. |
| population_size | bigint |  | The population size the holder declared for the source (all registered persons). |
| active_population_size | bigint |  | The active population size the holder declared for the source. |
| has_population_breakdown | boolean |  | Whether the holder published a population size breakdown by age band at all. |
| has_active_population_breakdown | boolean |  | Whether the holder published an active population breakdown by age band at all. |
| is_nested_scheme | boolean |  | True when the source's bands overlap, so a sum over bands double counts. |
| snapshot_label | text |  | The label of the catalogue snapshot the row was read from (a date). |
| accessed_month | text |  | The month and year the catalogue was accessed (YYYY-MM), which EMA's site asks to be cited with its URL. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Real-world data sources named by registered studies of a condition

**Command**

```sh
pharma rwd-sources get <id> rwd-source-conditions
```

The only route from a condition to a registered data source: one row per data source and MeSH condition for which a registered study of that condition named that source. A row says a study NAMED the source; it never says the source holds data on the condition. Enter on a condition for its sources, or on a data source for its conditions.

One row per: registered data source and MeSH condition that a registered study linked. Key columns: `data_source_id`, `condition_id`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| data_source_name_key | text |  | The normalised name key the study register is joined to the data source on (the study register carries no data source id). |
| condition_id | text |  | The condition's MeSH descriptor id (D followed by six to nine digits), the id of the conditions object type. |
| condition_label | text |  | The condition's MeSH heading. |
| mesh_tree_category | text |  | The MeSH tree category the condition sits under. |
| mesh_tree_prefix | text |  | The MeSH tree prefix of that category. |
| is_disease_descriptor | boolean |  | Whether the MeSH descriptor is a disease descriptor. |
| ema_condition_terms | text[] |  | The register's own condition terms that resolved to this MeSH descriptor. |
| ema_condition_term_count | integer |  | The number of register condition terms behind the row. |
| study_count | integer |  | How many registered studies named this source. A registered study NAMED the source; it is never evidence that the source holds data on a condition. Read it with study_register_total and studies_naming_a_registered_source, because a zero is not a finding that the source is unused. |
| linked_study_ids | text[] |  | The ids of the registered studies behind the row (studies of this condition that named this source). |
| source_study_count | integer |  | How many registered studies named this source, whatever their condition: the denominator under study_count on this row. |
| source_condition_study_count | integer |  | How many distinct registered studies of this source carry any MeSH-resolved condition, whatever the condition. |
| source_condition_count | integer |  | How many distinct conditions have a row for this source. |
| register_source_count | integer |  | The number of data sources in the whole data source register at the snapshot: the denominator every source count is over. Not a count of real-world data sources in the world. |
| sources_with_any_study_link | integer |  | How many registered sources are named by at least one registered study. |
| sources_with_any_condition_link | integer |  | How many registered sources have at least one condition row (named by a study with a resolved condition). |
| study_register_total | integer |  | The number of studies in the whole study register at the snapshot. |
| studies_naming_a_registered_source | integer |  | How many registered studies name at least one data source that is itself registered; the denominator under study_count. |
| condition_term_total | integer |  | How many distinct condition terms the study register holds. |
| condition_term_resolved | integer |  | How many of those terms resolved to a MeSH descriptor. |
| linked_condition_count | integer |  | How many distinct MeSH conditions appear on any row of the dataset. |
| snapshot_label | text |  | The label of the catalogue snapshot the row was read from (a date). |
| accessed_month | text |  | The month and year the catalogue was accessed (YYYY-MM), which EMA's site asks to be cited with its URL. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Real-world data source common data model mappings

**Command**

```sh
pharma rwd-sources get <id> rwd-source-etl-mappings
```

The common data model (CDM) mappings each registered source declares, one row per source and mapping, with the extract-transform-load (ETL) status, CDM version and frequency of that mapping. The sources themselves are the rwd_sources dataset.

One row per: data source and declared CDM mapping. Key columns: `data_source_id`, `mapping_ordinal`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| mapping_ordinal | integer |  | The position of the mapping among the source's declared CDM mappings, from 1. |
| declared_mapping_count | integer |  | How many CDM mappings the holder declared, after register join artefacts are removed; 0 when the question was never answered. |
| etl_status | text |  | The extract-transform-load (ETL) status of the CDM mapping as typed; one comma-joined answer per declared mapping (rwd_source_etl_mappings has one row per mapping). |
| etl_status_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of mappings declared; the row value is then null and the whole answer is in etl_status_source. |
| etl_status_source | text |  | The whole answer the ETL status was split from. |
| etl_cdm_version | text |  | The CDM version(s) declared for the ETL, comma-joined as typed. |
| etl_cdm_version_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of mappings declared; the row value is then null and the whole answer is in etl_cdm_version_source. |
| etl_cdm_version_source | text |  | The whole answer the CDM version was split from. |
| etl_frequency | text |  | The ETL frequency declared, comma-joined as typed. |
| etl_frequency_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of mappings declared; the row value is then null and the whole answer is in etl_frequency_source. |
| etl_frequency_source | text |  | The whole answer the ETL frequency was split from. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Real-world data source linkages

**Command**

```sh
pharma rwd-sources get <id> rwd-source-linkages
```

The linkages each registered source declares to other data sources, one row per source and linkage, with the completeness, variable and strategy that belong to that linkage. The sources themselves are the rwd_sources dataset.

One row per: data source and declared linkage. Key columns: `data_source_id`, `linkage_ordinal`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| linkage_ordinal | integer |  | The position of the linkage among the source's declared linkages, from 1. |
| declared_linkage_count | integer |  | How many linkages the holder declared; 0 when none. |
| is_pre_linked | boolean |  | Whether the holder answered Yes to Pre linked for this linkage. |
| pre_linked_answer | text |  | The holder's Yes or No answer to Pre linked for this linkage. |
| linked_data_source_name | text |  | The linked data source named for this linkage, from the register's list. |
| linked_data_source_name_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of linkages declared; the row value is then null and the whole answer is in linked_data_source_name_source. |
| linked_data_source_name_source | text |  | The whole comma-joined answer the linked data source name was split from, kept so an unaligned row can still be read. |
| names_other_sentinel | boolean |  | True when the linked data source name is the register's Other data source sentinel. |
| names_registered_source | boolean |  | True when the linked data source name is itself a registered data source. |
| linked_data_source_other | text |  | The linked data source named in free text when the holder chose Other data source. |
| linked_data_source_other_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of linkages declared; the row value is then null and the whole answer is in linked_data_source_other_source. |
| linked_data_source_other_source | text |  | The whole answer the other-data-source text was split from. |
| linkage_completeness | text |  | The linkage completeness declared for this linkage, as typed. |
| linkage_completeness_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of linkages declared; the row value is then null and the whole answer is in linkage_completeness_source. |
| linkage_completeness_source | text |  | The whole answer linkage completeness was split from. |
| linkage_variable | text |  | The linkage variable declared for this linkage, as typed. |
| linkage_variable_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of linkages declared; the row value is then null and the whole answer is in linkage_variable_source. |
| linkage_variable_source | text |  | The whole answer the linkage variable was split from. |
| linkage_strategy | text |  | The linkage strategy declared for this linkage, as typed. |
| linkage_strategy_aligned | boolean |  | False when the register list for this column splits into a different number of pieces than the number of linkages declared; the row value is then null and the whole answer is in linkage_strategy_source. |
| linkage_strategy_source | text |  | The whole answer the linkage strategy was split from. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Real-world data source types

**Command**

```sh
pharma rwd-sources get <id> rwd-source-types
```

The data source types each registered source declares, one row per source and declared type, for filtering and counting sources by type. The sources themselves are the rwd_sources dataset.

One row per: data source and declared data source type. Key columns: `data_source_id`, `item_ordinal`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| item_ordinal | integer |  | The position of the item in the register's own list, from 1. |
| type_value | text |  | The declared data source type, as typed after the register's list is split. |
| type_key | text |  | A stable lowercase key for the data source type; the filter value. |
| type_label | text |  | The register's most common spelling of the type. |
| is_other_sentinel | boolean |  | True when the item is the register's Other sentinel; the holder's free text for it is on the source row. |
| source_value | text |  | The whole register answer the item was split from. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Real-world data source coding schemes

**Command**

```sh
pharma rwd-sources get <id> rwd-source-vocabularies
```

The coding schemes each registered source declares for its exposure and outcome capabilities, one row per source, capability and scheme, for finding sources that code diagnoses, medicines or procedures in a given vocabulary. The sources themselves are the rwd_sources dataset.

One row per: data source, capability and declared coding scheme. Key columns: `data_source_id`, `capability_key`, `item_ordinal`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| capability_key | text |  | Which capability the coding scheme answers: exposure (prescriptions, dispensing, medicinal product, indication) or outcomes (diagnosis, cause of death, procedures, and so on). |
| capability_label | text |  | The capability's label as the register words it. |
| source_column | text |  | The register column the vocabulary item came from. |
| item_ordinal | integer |  | The position of the item in the register's own list, from 1. |
| vocabulary_value | text |  | The declared coding scheme as typed. |
| vocabulary_key | text |  | A stable lowercase key for the coding scheme; the filter value. |
| vocabulary_label | text |  | The register's most common spelling of the coding scheme. |
| is_free_text | boolean |  | True when the item is a free-text answer to the register's other-vocabulary question, not a coding scheme from its list. |
| is_other_sentinel | boolean |  | True when the item is the register's Other sentinel; the holder's free text for it is on the source row. |
| source_value | text |  | The whole register answer the item was split from. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |

## Registered real-world data study data sources

**Command**

```sh
pharma rwd-sources get <id> rwd-study-data-sources
```

The data sources each registered study names in its Data source(s) list, one row per study and item, resolved to the register's data source id where the name reaches exactly one registered source. Enter on a study for the sources it names, or on a data source for the studies that named it.

One row per: registered study and named data source item. Key columns: `study_id`, `item_ordinal`.

Source: HMA-EMA Catalogues of real-world data sources and studies ((c) EMA. No free-reuse grant on the catalogue host; EU sui generis database right (Directive 96/9/EC). PROVISIONAL licensable tier, legal read pending (#1916).)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| study_id | text |  | The register's own Study ID. The entry key of the rwd_studies object type; the EU PAS number is an attribute. |
| item_ordinal | integer |  | The position of the item in the register's own list, from 1. |
| data_source_name | text |  | The data source name as the study named it, from the register's Data source(s) list. |
| data_source_name_key | text |  | The normalised name key the study register is joined to the data source on (the study register carries no data source id). |
| matched_data_source_register | boolean |  | Whether the name matches a registered data source. |
| data_source_id | text |  | The register Data source ID. The entry key of the rwd_sources object type. On a row built from a study's data source name it is null unless the name reaches exactly one registered source (see data_source_ids). |
| data_source_ids | text[] |  | Every registered data source id the name matches (more than one when two entries share a name). |
| register_row_count | integer |  | How many register entries share the name. |
| study_status | text |  | The study's status as the register words it (Planned, Ongoing, Finalised, and so on). |
| mandate_stratum | text |  | mandated when a regulator required the study (a post-authorisation obligation), voluntary when the registrant says it did not, unknown when unanswered. Delivery timeliness is only comparable within a stratum. |
| required_by_regulator | text |  | The registrant's answer to whether a regulatory body required the study (Yes, No or Unknown). |
| study_start_actual_on | date |  | Actual study start date. |
| started_in_last_5_years | boolean |  | Whether the study started within five years of the snapshot. |
| condition_count | integer |  | How many distinct condition terms the study names. |
| conducting_institution_count | integer |  | How many conducting institutions the study names. |
| snapshot_label | text |  | The label of the catalogue snapshot the row was read from (a date). |
| accessed_month | text |  | The month and year the catalogue was accessed (YYYY-MM), which EMA's site asks to be cited with its URL. |
| restriction_tier | text |  | The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending). |
| attribution | text |  | The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row. |
