Database schema

Country data

Table "public.product_cases_per_country"

ColumnTypeCollationNullableDefault
high level codebigint
countrytext
valuebigint

Table "public.substance_cases_per_country"

ColumnTypeCollationNullableDefault
high level codebigint
countrytext
valuebigint

Line Listings

All line listings contain field names on the first row. These field names are mapped to convenient database table column names for better readability. This table contains the mapping of the fields to columns plus a description.

CSV field nameDatabase column nameDescription
EU Local Numberlocal_numberThe identifier of the individual case safety repport (ICSR)
Report Typereport_typethe value of this field is always "Spontanous"
EV Gateway Receipt Datereport_dateDate/time the report was issued
Primary Source QualificationqualificationCan be "Healthcare Professional", "Non Healthcare Professional" or "Not Specified"
Primary Source Country for Regulatory PurposescountryCan be "European Economic Area" "Non European Economic Area" or "Not Specified"
Literature Referencetable import.___literature
Patient Age Groupage_group_lower_months age_group_upper_monthssplit in lower and upper values in months as this is the lowest resolution present f.i. for children aged 0 to 2 months. Calculating the lower and upper age value allows measuring withing groups as the age groups are sometimes shifted.
Patient Age Group (as per reporter)N/AAll rows in the CSV files contained the value "Not specified" so we skipped it
Parent Child Reportis_child_reportCan be true or false
Patient SexsexCan be "Female" or "Male"
Reaction List PT (Duration – Outcome - Seriousness Criteria)table import.___reaction
Suspect/interacting Drug List (Drug Char - Indication PT - Action taken - [Duration - Dose - Route])table import.___subject_drug_list
Concomitant/Not Administered Drug List (Drug Char - Indication PT - Action taken - [Duration - Dose - Route])table import.___concomitant_drug_list
ICSR FormN/ASkipped because it can be reconstructed from the local_number

Products

Table "import.products"

This table contains the product_id used in the other product related tables and queries and a human readable name.

ColumnTypeCollationNullableDefault
product_idbigint
nametext

Table "import.product"

ColumnTypeCollationNullableDefault
product_idinteger
local_numbercharacter varying
report_typecharacter varying
report_datedate
qualificationcharacter varying
countrycharacter varying
age_group_lower_monthssmallint
age_group_upper_monthssmallint
age_group_reportercharacter varying
is_child_reportboolean
sexcharacter varying
seriousboolean

Table "import.product_reaction"

ColumnTypeCollationNullableDefault
product_idinteger
local_numbercharacter varying
report_datedate
reactioncharacter varying
durationcharacter varying
outcomecharacter varying
seriousness_criteriacharacter varying

Table "import.product_literature"

ColumnTypeCollationNullableDefault
product_idinteger
local_numbercharacter varying
report_datedate
literaturecharacter varying

Table "import.product_concomitant_drug_list"

ColumnTypeCollationNullableDefault
product_idinteger
local_numbercharacter varying
report_datedate
drugscharacter varying
characteristiccharacter varying
indicationcharacter varying
actioncharacter varying
durationcharacter varying
dosecharacter varying
routecharacter varying

Table "import.product_subject_drug_list"

ColumnTypeCollationNullableDefault
product_idinteger
local_numbercharacter varying
report_datedate
drugscharacter varying
characteristiccharacter varying
indicationcharacter varying
actioncharacter varying
durationcharacter varying
dosecharacter varying
routecharacter varying

Substances

Table "import.substances"

This table contains the substance_id used in the other substance related tables and queries and a human readable name.

ColumnTypeCollationNullableDefault
substance_idbigint
nametext

Table "import.substance"

ColumnTypeCollationNullableDefault
substance_idinteger
local_numbercharacter varying
report_typecharacter varying
report_datedate
qualificationcharacter varying
countrycharacter varying
age_group_lower_monthssmallint
age_group_upper_monthssmallint
age_group_reportercharacter varying
is_child_reportboolean
sexcharacter varying
seriousboolean

Table "import.substance_reaction"

ColumnTypeCollationNullableDefault
substance_idinteger
local_numbercharacter varying
report_datedate
reactioncharacter varying
durationcharacter varying
outcomecharacter varying
seriousness_criteriacharacter varying

Table "import.substance_literature"

ColumnTypeCollationNullableDefault
substance_idinteger
local_numbercharacter varying
report_datedate
literaturecharacter varying

Table "import.substance_concomitant_drug_list"

ColumnTypeCollationNullableDefault
substance_idinteger
local_numbercharacter varying
report_datedate
drugscharacter varying
characteristiccharacter varying
indicationcharacter varying
actioncharacter varying
durationcharacter varying
dosecharacter varying
routecharacter varying

Table "import.substance_subject_drug_list"

ColumnTypeCollationNullableDefault
substance_idinteger
local_numbercharacter varying
report_datedate
drugscharacter varying
characteristiccharacter varying
indicationcharacter varying
actioncharacter varying
durationcharacter varying
dosecharacter varying
routecharacter varying