Skip to main content

Core Table Descriptions

(Last updated: 2025-09-26, Created: 2025-09-26)

Note: The Core layer is out in an early release and bigger changes can happen in the future

Dim Form Configurations

ewa_core.dim_form_configurations: Dimension table containing metadata about form configurations.

Column NameData TypeDescription
sk_formStringSurrogate key for the form dimension.
form_nameStringName of the form as defined by the user.
form_stateIntState of the form (0 = non-completed, 1 = completed).
metadata_inserted_atDateTimeTimestamp for when the row was first inserted.
metadata_updated_atDateTimeTimestamp for the last update of the row.

Dim Form Sections

ewa_core.dim_form_sections: Dimension table for form sections, linked to dim_form.

Column NameData TypeDescription
sk_sectionStringSurrogate key for the section dimension.
section_idStringUnique identifier for the section, used in form responses.
section_titleStringTitle or heading of the section.
section_descriptionStringOptional description or help text for the section.
metadata_inserted_atDateTimeTimestamp for when the row was first inserted.
metadata_updated_atDateTimeTimestamp for the last update of the row.

Dim Form Elements

ewa_core.dim_form_elements: Dimension table for form elements/questions.

Column NameData TypeDescription
sk_elementStringSurrogate key for the element dimension.
section_idStringForeign key reference to the section the element belongs to.
element_idStringUnique identifier for the element, used in form responses.
element_field_typeStringType of the element (e.g., text input, dropdown, checkbox).
element_labelStringLabel shown to the user for the element/question.
element_descriptionStringOptional description or help text for the element.
metadata_inserted_atDateTimeTimestamp for when the row was first inserted.
metadata_updated_atDateTimeTimestamp for the last update of the row.

Dim Form Options

ewa_core.dim_form_options: Dimension table for selectable options within form elements.

Column NameData TypeDescription
sk_optionStringSurrogate key for the option dimension.
section_idStringKey reference to the section containing the element.
option_idStringKey reference to the option.
element_idStringKey reference to the element the option belongs to.
option_valueStringDisplay value shown to the user (e.g., "Yes", "No").
option_scoreIntNumeric score associated with the option, used for calculations.
metadata_inserted_atDateTimeTimestamp for when the row was first inserted.
metadata_updated_atDateTimeTimestamp for the last update of the row.

Fact Form Responses

ewa_core.fact_form_responses: Fact table capturing individual responses to form elements.

Column NameData TypeDescription
sk_responseStringSurrogate key for this response record.
sk_formStringForeign key reference to the form configuration.
sk_sectionStringForeign key reference to the section containing the element.
sk_elementStringForeign key reference to the question or form element.
sk_optionStringForeign key reference to the selected option (if applicable).
response_idStringUnique ID representing a specific form response.
form_idStringForeign key reference to the form being responded to.
section_idStringForeign key reference to the section containing the element.
element_idStringForeign key reference to the question or form element.
option_idStringForeign key reference to the selected option (if applicable).
element_response_valueStringThe raw value entered or selected by the user.
element_response_typeStringThe input type of the element (e.g., text, number, multiple_choice).
response_scoreIntScore calculated for this response (option-based or parsed from input).
record_idIntForeign key to the record/context where the form was submitted.
metadata_inserted_atDateTimeTimestamp for when the row was first inserted.
metadata_updated_atDateTimeTimestamp for the last update of the row.

Bridge Accompanying Personnel

ewa_core.bridge_accompanying_personnel: Bridge table used to connect fact_records together with dim_accompanying_personnel.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_accompanying_personnelStringSurrogate key generated for each unique accompanying personnel entry.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Assistance

ewa_core.bridge_assistance: Bridge table used to connect fact_records together with dim_assistance.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_assistanceStringSurrogate key generated for each unique assistance entry.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Circumstances

ewa_core.bridge_circumstances: Bridge table used to connect fact_records together with dim_circumstances.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_circumstanceStringSurrogate key generated for each unique circumstance entry.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Drugs

ewa_core.bridge_drugs: Bridge table used to connect fact_records together with dim_drugs and dim_personnel.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_drugStringSurrogate key generated for each unique drug entry.
doseStringThe dose of the drug administered.
unitStringThe unit of the drug dose, such as mg, stk, etc.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Interventions

ewa_core.bridge_interventions: Bridge table used to connect fact_records together with dim_interventions and dim_personnel.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_interventionStringSurrogate key generated for each unique intervention based on name and intervention group.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Locations

ewa_core.bridge_locations: Bridge table used to connect fact_records together with dim_locations and dim_location_types.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_locationStringSurrogate key generated for each unique location based on location GUID.
sk_location_typeStringSurrogate key generated for each unique location type (incident, via, start, destination).
zipStringThe ZIP code of the location, if available.
cityStringThe city where the location is situated.
latitudeStringThe latitude coordinate of the location, if available.
longitudeStringThe longitude coordinate of the location, if available.
descriptionStringA description of the location or its purpose.
addressStringThe full address of the location, if available.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Personnel

ewa_core.bridge_personnel: Bridge table used to connect fact_records together with dim_personnel and dim_personnel_roles.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
sk_personnel_roleStringSurrogate key generated for each unique personnel role. Combines crew role type and resource type for configurable crew roles, or just crew role type for standard personnel records.
sk_personnelStringSurrogate key generated for each unique personnel member based on user ID and full name.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Bridge Times

ewa_core.bridge_times: Bridge table used to connect fact_records together with dim_time_types.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
time_idDateTimeThe actual timestamp when the event occurred.
sk_time_typeStringSurrogate key generated for each unique time type (e.g., arrival, departure, treatment start).
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Accompanying Personnel

ewa_core.dim_accompanying_personnel: Dimension table containing unique accompanying personnel entries.

Column NameData TypeDescription
sk_accompanying_personnelStringSurrogate key generated for each unique accompanying personnel entry.
accompanying_personnelStringThe name or identifier of the accompanying personnel.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Assistance

ewa_core.dim_assistance: Dimension table containing unique assistance entries.

Column NameData TypeDescription
sk_assistanceStringSurrogate key generated for each unique assistance entry.
assistanceStringThe type of assistance provided.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Chief Complaints

ewa_core.dim_chief_complaints: Dimension table containing unique chief complaint entries.

Column NameData TypeDescription
sk_chief_complaintStringSurrogate key generated for each unique chief complaint based on group and complaint.
sk_chief_complaint_groupStringSurrogate key generated for each unique chief complaint group.
chief_complaint_groupStringThe group or category of the chief complaint.
chief_complaintStringSpecific chief complaint recorded in the record.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Circumstances

ewa_core.dim_circumstances: Dimension table containing unique circumstance entries.

Column NameData TypeDescription
sk_circumstanceStringSurrogate key generated for each unique circumstance entry.
circumstanceStringThe specific circumstance recorded for the medical record.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Contagions

ewa_core.dim_contagions: Dimension table containing unique contagion risk entries.

Column NameData TypeDescription
sk_contagionStringSurrogate key generated for each unique contagion risk entry.
risk_textStringDescription text for the contagion risk.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Drugs

ewa_core.dim_drugs: Dimension table containing unique drug entries.

Column NameData TypeDescription
sk_drugStringSurrogate key generated for each unique drug entry.
drug_nameStringThe name of the drug administered.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Interventions

ewa_core.dim_interventions: Dimension table containing unique intervention entries.

Column NameData TypeDescription
sk_interventionStringSurrogate key generated for each unique intervention based on name and intervention group.
sk_intervention_groupStringSurrogate key generated for each unique intervention group.
interventionStringThe name of the intervention performed.
intervention_groupStringThe group or category of the intervention.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Location Types

ewa_core.dim_location_types: Dimension table containing unique location type entries.

Column NameData TypeDescription
sk_location_typeStringSurrogate key generated for each unique location type.
location_typeStringThe type of location, indicating whether it is an incident, via, start, or destination place.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Locations

ewa_core.dim_locations: Dimension table containing unique location entries.

Column NameData TypeDescription
sk_locationStringSurrogate key generated for each unique location based on location GUID.
county_idIntThe unique identifier for the county where the location is situated.
county_nameStringThe name of the county where the location is situated.
municipality_idIntThe unique identifier for the municipality where the location is situated.
municipality_nameStringThe name of the municipality where the location is situated.
location_group_idIntThe unique identifier for the location group.
location_group_nameStringThe name of the location group.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Mission Types

ewa_core.dim_mission_types: Dimension table containing unique mission type entries.

Column NameData TypeDescription
sk_mission_typeStringSurrogate key generated for each unique mission type.
mission_type_idStringThe predecessor mission type id, if applicable.
mission_type_nameStringThe name of the configurable mission type.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Organizations

ewa_core.dim_organizations: Dimension table containing unique organization entries.

Column NameData TypeDescription
sk_organizationStringSurrogate key generated for each unique organization.
organization_idIntUnique identifier from EWA for each organization.
organization_nameStringName of the organization.
updated_atDateTimeUpdated at timestamp.
created_atDateTimeCreated at timestamp.
deleted_atDateTimeDeleted at timestamp.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Oxygen

ewa_core.dim_oxygen: Dimension table containing unique oxygen administration entries.

Column NameData TypeDescription
sk_oxygenStringSurrogate key generated for each unique combination of oxygen route, quantity, and unit.
routeStringThe method of oxygen administration.
quantityStringThe quantity of oxygen administered.
unitStringThe unit of oxygen quantity, typically liters (L).
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Patients

ewa_core.dim_patients: Dimension table containing unique patient entries.

Column NameData TypeDescription
sk_patientStringSurrogate key for each unique patient entry, using the unique_id from the source table.
record_idIntThe unique identifier for a record.
patient_idIntThe unique identifier from EWA for each patient.
full_nameStringThe full name of the patient, generated by concatenating first and last names.
date_of_birthDateTimeThe date of birth of the patient.
id_typeIntType of identification used.
national_id_numberStringThe national identification number for the patient.
unknown_patient_identification_numberStringA temporary ID assigned to unidentified patients, e.g., during mass casualty events.
unknown_patient_identification_type_nameStringA human-readable name for the temporary patient ID type corresponding to the 'unknown_patient_identification_type' table.
home_address_or_placeStringThe home address or place of residence for the patient.
home_zipIntThe ZIP code of the patient's residence.
home_cityStringThe city of the patient's residence.
home_municipalityStringThe municipality or country of the patient's residence, if available.
genderStringGender of the patient.
extra_textStringAdditional information related to the patient, if available.
weightIntThe weight of the patient, if recorded.
patient_id_verification_methodStringMethod used to verify the patient's identity.
next_of_kin_relationshipStringThe relationship of the next of kin to the patient.
next_of_kin_notificationStringAdditional information regarding notification of next of kin.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Personnel Roles

ewa_core.dim_personnel_roles: Dimension table containing unique personnel role entries.

Column NameData TypeDescription
sk_personnel_roleStringSurrogate key generated for each unique personnel role.
sk_resource_typeStringSurrogate key generated for each unique resource type.
personnel_roleStringThe name of the personnel role or crew role type.
resource_type_idStringThe identifier for the resource type associated with the crew role.
resource_type_nameStringThe name of the resource type.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Personnel

ewa_core.dim_personnel: Dimension table containing unique personnel entries.

Column NameData TypeDescription
sk_personnelStringSurrogate key generated for each unique personnel member based on user ID and full name.
user_idStringThe unique identifier for the user associated with the personnel.
full_nameStringThe full name of the personnel member.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Resource Types

ewa_core.dim_resource_types: Dimension table containing unique resource type entries.

Column NameData TypeDescription
sk_resource_typeStringSurrogate key generated for each unique resource type.
resource_type_idStringThe unique identifier for the resource type.
resource_type_nameStringThe name of the resource type.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Resources

ewa_core.dim_resources: Dimension table containing unique resource entries.

Column NameData TypeDescription
sk_resourceStringSurrogate key generated for each unique resource.
sk_resource_typeStringSurrogate key for the resource type associated with this resource.
resource_idIntThe unique identifier for the resource.
resource_nameStringThe name of the resource.
station_idIntThe identifier of the station to which the resource is linked.
station_nameStringThe name of the station to which the resource is linked.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Retts Priority Levels

ewa_core.dim_retts_priority_levels: Dimension table containing unique RETTS priority level entries.

Column NameData TypeDescription
sk_retts_priority_levelStringSurrogate key generated for each unique RETTS priority level.
idIntThe unique identifier from EWA for each RETTS priority level.
colorStringColor associated with the RETTS priority level.

Dim Sats Priority Levels

ewa_core.dim_sats_priority_levels: Dimension table containing unique SATS priority level entries.

Column NameData TypeDescription
sk_sats_priority_levelStringSurrogate key generated for each unique SATS priority level.
idIntThe unique identifier from EWA for each SATS priority level.
colorStringColor associated with the SATS priority level.

Dim Stations

ewa_core.dim_stations: Dimension table containing unique station entries.

Column NameData TypeDescription
sk_stationStringSurrogate key generated for each unique station.
organization_idIntThe identifier for the organization that owns the station.
station_idIntUnique identifier for each station.
station_nameStringName of the station.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Time Types

ewa_core.dim_time_types: Dimension table containing unique time type entries.

Column NameData TypeDescription
sk_time_typeStringSurrogate key generated for each unique time type.
time_typeStringType of the timestamp event.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Times

ewa_core.dim_times: Dimension table containing unique time entries with date/time attributes.

Column NameData TypeDescription
time_idDateTimeThe timestamp converted to UTC for consistency.
yearIntYear extracted from the timestamp.
monthIntMonth extracted from the timestamp.
dayIntDay extracted from the timestamp.
day_of_the_weekIntDay of the week extracted from the timestamp.
hour_of_the_dayIntHour of the day extracted from the timestamp.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Transferred Locations

ewa_core.dim_transferred_locations: Dimension table containing unique transferred location entries.

Column NameData TypeDescription
sk_transferred_locationStringSurrogate key generated for each unique transferred location.
transferred_location_nameStringThe name of the location where the patient was transferred from or to.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Translations

ewa_core.dim_translations: Dimension table containing multilingual translations for various entities.

Column NameData TypeDescription
idIntAuto-generated sequential identifier for each translation entry.
entity_typeStringType of entity being translated (urgency_levels, mission_types).
sk_entity_idStringSurrogate key of the entity being translated.
field_nameStringName of the field being translated.
language_codeStringLanguage code for the translation (en-GB, da-DK, fr-FR, etc.).
translated_valueStringThe translated text value in the specified language.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Dim Urgency Levels

ewa_core.dim_urgency_levels: Dimension table containing unique urgency level entries.

Column NameData TypeDescription
sk_urgency_levelStringSurrogate key generated for each unique urgency level based on ID and name.
urgency_idStringUnique identifier for each urgency level.
urgency_level_nameStringThe name of the urgency level in the default language.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Fact Records

ewa_core.fact_records: Central fact table containing medical emergency records with foreign keys to all related dimensions.

Column NameData TypeDescription
record_idIntThe unique identifier for a record.
start_time_stampDateTimeThe primary timestamp for the record, using ambulance alerted time when available, otherwise falling back to record created timestamp.
sk_resourceStringSurrogate key linking to the resource dimension.
sk_resource_typeStringSurrogate key linking to the resource type dimension.
sk_stationStringSurrogate key linking to the station dimension.
sk_organizationStringSurrogate key linking to the organization dimension.
sk_mission_typeStringSurrogate key linking to the mission type dimension.
sk_oxygenStringSurrogate key linking to the oxygen dimension.
sk_contagionStringSurrogate key linking to the contagion dimension.
sk_chief_complaintStringSurrogate key linking to the chief complaint dimension.
sk_urgency_levelStringSurrogate key linking to the urgency level dimension.
sk_retts_priority_levelStringSurrogate key linking to the RETTS priority level dimension.
sk_sats_priority_levelStringSurrogate key linking to the SATS priority level dimension.
sk_transferred_from_locationStringSurrogate key linking to the transferred from location dimension.
sk_transferred_to_locationStringSurrogate key linking to the transferred to location dimension.
sk_patientStringSurrogate key linking to the patient dimension.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
created_atDateTimeCreated at timestamp.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Fact Missions

ewa_core.fact_missions: Fact table containing mission-specific information for medical emergency records.

Column NameData TypeDescription
sk_missionStringSurrogate key for the mission.
record_idIntThe unique identifier for a record.
emcc_mission_idStringThe mission identifier in the EMCC system.
mission_resource_idStringThe identifier for the resource assigned to the mission.
dispatch_codeStringThe dispatch code associated with the mission.
distanceIntThe distance covered during the mission, if recorded.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.

Fact Triages

ewa_core.fact_triages: Fact table containing triage assessment scores for medical emergency records.

Column NameData TypeDescription
sk_triageStringSurrogate key for the triage.
record_idIntThe unique identifier for a record.
sats_total_scoreStringThe total SATS (Severity Assessment Triage System) score for the patient.
news_total_scoreIntThe total NEWS2 (National Early Warning Score 2) for the patient.
gcs_total_scoreIntThe total GCS (Glasgow Coma Scale) score calculated by summing motor response, verbal response, and eye opening scores.
record_updated_atDateTimeThe timestamp when the record was last updated in EWA.
metadata_inserted_atDateTimeRow inserted at timestamp.
metadata_updated_atDateTimeRow updated at timestamp.