From e019f3c0594a252b155bae21841e12f5484b49a0 Mon Sep 17 00:00:00 2001 From: Emmanuel Nyachoke Date: Thu, 13 Jun 2024 08:02:08 +0300 Subject: [PATCH] KH-539: Add default Superset datasets --- .../databases/PostgreSQL.yaml | 16 + .../datasets/PostgreSQL/appointments.yaml | 485 ++++++++++++++++ .../datasets/PostgreSQL/concepts.yaml | 137 +++++ .../datasets/PostgreSQL/conditions.yaml | 257 +++++++++ .../PostgreSQL/encounter_diagnoses.yaml | 197 +++++++ .../datasets/PostgreSQL/encounters.yaml | 233 ++++++++ .../datasets/PostgreSQL/locations.yaml | 461 ++++++++++++++++ .../datasets/PostgreSQL/observations.yaml | 413 ++++++++++++++ .../datasets/PostgreSQL/orders.yaml | 521 ++++++++++++++++++ .../datasets/PostgreSQL/patient_programs.yaml | 341 ++++++++++++ .../datasets/PostgreSQL/patients.yaml | 485 ++++++++++++++++ .../datasets/PostgreSQL/sale_order_lines.yaml | 245 ++++++++ .../datasets/PostgreSQL/visits.yaml | 257 +++++++++ .../superset/dashboard-assets/metadata.yaml | 3 + distro/configs/superset/superset-init.sh | 12 +- 15 files changed, 4054 insertions(+), 9 deletions(-) create mode 100644 distro/configs/superset/dashboard-assets/databases/PostgreSQL.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/appointments.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/concepts.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/conditions.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounter_diagnoses.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounters.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/locations.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/observations.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/orders.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patient_programs.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patients.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/sale_order_lines.yaml create mode 100644 distro/configs/superset/dashboard-assets/datasets/PostgreSQL/visits.yaml create mode 100644 distro/configs/superset/dashboard-assets/metadata.yaml diff --git a/distro/configs/superset/dashboard-assets/databases/PostgreSQL.yaml b/distro/configs/superset/dashboard-assets/databases/PostgreSQL.yaml new file mode 100644 index 0000000..358384f --- /dev/null +++ b/distro/configs/superset/dashboard-assets/databases/PostgreSQL.yaml @@ -0,0 +1,16 @@ +database_name: PostgreSQL +sqlalchemy_uri: postgresql://analytics:{ANALYTICS_DB_PASSWORD}@postgresql:5432/analytics +cache_timeout: null +expose_in_sqllab: true +allow_run_async: false +allow_ctas: true +allow_cvas: true +allow_dml: false +allow_file_upload: true +extra: + metadata_params: {} + engine_params: {} + metadata_cache_timeout: {} + schemas_allowed_for_file_upload: [] +uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe +version: 1.0.0 diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/appointments.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/appointments.yaml new file mode 100644 index 0000000..6337ef0 --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/appointments.yaml @@ -0,0 +1,485 @@ +table_name: appointments +main_dttm_col: start_date_time +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM appointments ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: b9c2b2f1-8c03-44a8-a418-562534409189 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: appointment_service_type_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_start_time + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_end_time + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: start_date_time + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: end_date_time + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_changed + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_voided + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_max_appointments_limit + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_type_duration_mins + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_speciality_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_duration_mins + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_type_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: related_appointment_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_appointment_provider + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_appointment_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: changed_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_initial_appointment_status + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_type_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_appointment_provider_response + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_type_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_description + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_color + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_service_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_number + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: appointment_kind + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: status + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: comments + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/concepts.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/concepts.yaml new file mode 100644 index 0000000..e9a67dd --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/concepts.yaml @@ -0,0 +1,137 @@ +table_name: concepts +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM concepts ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: 1c653214-9016-47db-8e78-6e2515b15fd9 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: locale_preferred + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: retired + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: concept_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: concept_mappings_source_codes + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_concepts_uuids + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: member_concepts_uuids + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: locale + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/conditions.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/conditions.yaml new file mode 100644 index 0000000..4e7779d --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/conditions.yaml @@ -0,0 +1,257 @@ +table_name: conditions +main_dttm_col: onset_date +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM conditions ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: 743f9340-37e5-46e2-970b-437afbbce253 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_voided + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: end_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: onset_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: condition_coded_name + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: changed_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: condition_coded + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: condition_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: previous_version + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: condition_non_coded + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: additional_detail + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: clinical_status + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: verification_status + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounter_diagnoses.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounter_diagnoses.yaml new file mode 100644 index 0000000..ddcb5bc --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounter_diagnoses.yaml @@ -0,0 +1,197 @@ +table_name: encounter_diagnoses +main_dttm_col: date_created +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM encounter_diagnoses ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: d1a53dfb-d354-455b-b165-731bd595e727 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_voided + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: diagnosis_coded_name + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: diagnosis_coded + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: diagnosis_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: diagnosis_non_coded + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: certainty + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounters.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounters.yaml new file mode 100644 index 0000000..b3efd9f --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/encounters.yaml @@ -0,0 +1,233 @@ +table_name: encounters +main_dttm_col: encounter_datetime +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM encounters ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: 8cb187f9-4ea2-45da-9c88-575daff6e5d8 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: encounter_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_date_started + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_date_stopped + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_datetime + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_type_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: form_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_type + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: form_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: form_version + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_type + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/locations.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/locations.yaml new file mode 100644 index 0000000..d819ca6 --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/locations.yaml @@ -0,0 +1,461 @@ +table_name: locations +main_dttm_col: date_created +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM locations ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: e38d61fa-152e-484c-bd04-3c9fa26159de +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: address10 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address11 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address12 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address13 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address14 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address15 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address1 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address2 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address3 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address4 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address5 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address6 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address7 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address8 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address9 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: retired + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_changed + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_retired + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: parent_location + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: changed_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: retired_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_tags + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: postal_code + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: state_province + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: city_village + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: retire_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: county_district + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: latitude + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: description + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: country + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: longitude + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/observations.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/observations.yaml new file mode 100644 index 0000000..9f011c0 --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/observations.yaml @@ -0,0 +1,413 @@ +table_name: observations +main_dttm_col: obs_date_time +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM observations ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: add3064b-ce12-4f90-b374-d297159afccf +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: obs_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_date_started + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: obs_date_time + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_date_stopped + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_datetime + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_numeric + verbose_name: null + is_dttm: false + is_active: true + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: previous_version_obs_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: parent_obs_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_drug + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: obs_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: form_namespace_and_path + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: obs_void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_coded_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: accession_number + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: question_label + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_coded + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_complex + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_modifier + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: answer_text + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: question_mapping + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: obs_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_type + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: question_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_type + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: comments + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/orders.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/orders.yaml new file mode 100644 index 0000000..883a01d --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/orders.yaml @@ -0,0 +1,521 @@ +table_name: orders +main_dttm_col: encounter_datetime +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: SELECT * FROM orders +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: 54ef1779-8dd1-4825-8cfc-89ce854051c6 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: care_setting_retired + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_type_retired + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_type_retired + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: auto_expire_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_activated + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: scheduled_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_datetime + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_voided + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_stopped + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: sort_weight + verbose_name: null + is_dttm: false + is_active: true + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: previous_order_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_type_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_group_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: care_setting + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_reason + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: concept_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: orderer + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_type_java_class_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_reason_non_coded + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: care_setting_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: care_setting_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_type_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: care_setting_type + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_type_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: encounter_type_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: comment_to_fulfiller + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_type_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: accession_number + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_action + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: order_number + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: instructions + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patient_programs.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patient_programs.yaml new file mode 100644 index 0000000..9bf779a --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patient_programs.yaml @@ -0,0 +1,341 @@ +table_name: patient_programs +main_dttm_col: date_enrolled +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: SELECT * FROM patient_programs +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: ad802192-8951-478d-8324-b0849f6429c7 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: program_retired + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_changed + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_completed + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_voided + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_enrolled + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: program_outcomes_concept_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_program_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: program_concept_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: outcome_concept_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: changed_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: program_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: voided_by + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: outcomes_concept_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: outcomes_concept_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: program_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: concept_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: program_description + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: program_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: concept_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patients.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patients.yaml new file mode 100644 index 0000000..1eecf98 --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/patients.yaml @@ -0,0 +1,485 @@ +table_name: patients +main_dttm_col: birthdate +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM patients ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: 34e209b6-fc04-4787-a892-9fd90fcf9bb3 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: address_10 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_11 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_12 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_13 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_14 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_15 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_1 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_2 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_3 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_4 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_5 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_6 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_7 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_8 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_9 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: birthdate_estimated + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: person_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: dead + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_created + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: death_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: birthdate + verbose_name: null + is_dttm: true + is_active: true + type: DATE + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: cause_of_death + verbose_name: null + is_dttm: false + is_active: true + type: INTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_state_province + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_county_district + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: person_void_reason + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_latitude + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: family_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_city + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_country + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: address_longitude + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: middle_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: given_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: attributes + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: identifiers + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: gender + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/sale_order_lines.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/sale_order_lines.yaml new file mode 100644 index 0000000..4ac9db0 --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/sale_order_lines.yaml @@ -0,0 +1,245 @@ +table_name: sale_order_lines +main_dttm_col: line_creation_date +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM sale_order_lines ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: ca368613-61d0-47ec-a2ec-0e32d0fc2d51 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: unit_price + verbose_name: null + is_dttm: false + is_active: true + type: DECIMAL + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: subtotal + verbose_name: null + is_dttm: false + is_active: true + type: DECIMAL + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: quantity + verbose_name: null + is_dttm: false + is_active: true + type: DECIMAL + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: total + verbose_name: null + is_dttm: false + is_active: true + type: DECIMAL + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: line_last_modified_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: line_creation_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: sale_order_line_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: product_id + verbose_name: null + is_dttm: false + is_active: true + type: INTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: sequence + verbose_name: null + is_dttm: false + is_active: true + type: INTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: sale_order_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: product_external_id + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: product_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: customer_email + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: customer_name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: invoicing_status + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: product_code + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: customer_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: customer_phone + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/visits.yaml b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/visits.yaml new file mode 100644 index 0000000..2c2804c --- /dev/null +++ b/distro/configs/superset/dashboard-assets/datasets/PostgreSQL/visits.yaml @@ -0,0 +1,257 @@ +table_name: visits +main_dttm_col: date_started +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: 'SELECT * FROM visits ' +params: null +template_params: null +filter_select_enabled: true +fetch_values_predicate: null +extra: null +normalize_columns: false +always_filter_main_dttm: false +uuid: fefa8b10-bdf1-47b9-b081-89003c5e0583 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + currency: null + extra: null + warning_text: null +columns: +- column_name: patient_birthdate_estimated + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_dead + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_voided + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_age_at_visit + verbose_name: null + is_dttm: false + is_active: true + type: DECIMAL + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_death_date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_started + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: date_stopped + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_birthdate + verbose_name: null + is_dttm: true + is_active: true + type: DATE + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_id + verbose_name: null + is_dttm: false + is_active: true + type: LONGINTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_cause_of_death + verbose_name: null + is_dttm: false + is_active: true + type: INTEGER + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_type_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_attributes + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: creator_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_gender + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: patient_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: visit_uuid + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: location + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +- column_name: type + verbose_name: null + is_dttm: false + is_active: true + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null + extra: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/distro/configs/superset/dashboard-assets/metadata.yaml b/distro/configs/superset/dashboard-assets/metadata.yaml new file mode 100644 index 0000000..a1c03dd --- /dev/null +++ b/distro/configs/superset/dashboard-assets/metadata.yaml @@ -0,0 +1,3 @@ +version: 1.0.0 +type: SqlaTable +timestamp: '2024-06-11T03:56:43.263292+00:00' diff --git a/distro/configs/superset/superset-init.sh b/distro/configs/superset/superset-init.sh index f51c1db..b537e77 100755 --- a/distro/configs/superset/superset-init.sh +++ b/distro/configs/superset/superset-init.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -STEP_CNT=6 +STEP_CNT=5 echo_step() { cat <