Skip to content

Commit

Permalink
Merge pull request #96 from OHDSI/95-create-empty-source_to_concept_m…
Browse files Browse the repository at this point in the history
…ap-model-instead-of-seeding-it
  • Loading branch information
lawrenceadams authored Nov 5, 2024
2 parents 1c148f2 + e65d1f4 commit a90b50a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 29 deletions.
12 changes: 11 additions & 1 deletion models/omop/source_to_concept_map.sql
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
SELECT * FROM {{ ref('stg_vocabulary__source_to_concept_map') }}
SELECT
cast(null AS int) AS source_code
, cast(null AS varchar) AS source_concept_id
, cast(null AS int) AS source_vocabulary_id
, cast(null AS varchar) AS source_code_description
, cast(null AS int) AS target_concept_id
, cast(null AS varchar) AS target_vocabulary_id
, cast(null AS date) AS valid_start_date
, cast(null AS date) AS valid_end_date
, cast(null AS varchar(1)) AS invalid_reason
WHERE false
11 changes: 0 additions & 11 deletions models/staging/vocabulary/_vocabulary__model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,3 @@ models:
- name: valid_start_date
- name: valid_end_date
- name: invalid_reason
- name: stg_vocabulary__source_to_concept_map
columns:
- name: source_code
- name: source_vocabulary_id
- name: source_code_description
- name: target_concept_id
- name: target_vocabulary_id
- name: target_domain_id
- name: valid_start_date
- name: valid_end_date
- name: invalid_reason
2 changes: 0 additions & 2 deletions models/staging/vocabulary/_vocabulary__sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ sources:
identifier: "{% if var('seed_source', false) %}relationship_seed{% else %}relationship{% endif %}"
- name: vocabulary
identifier: "{% if var('seed_source', false) %}vocabulary_seed{% else %}vocabulary{% endif %}"
- name: source_to_concept_map
identifier: "{% if var('seed_source', false) %}source_to_concept_map_seed{% else %}source_to_concept_map{% endif %}"

This file was deleted.

1 change: 0 additions & 1 deletion seeds/vocabulary/source_to_concept_map_seed.csv

This file was deleted.

0 comments on commit a90b50a

Please sign in to comment.