Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping and transformation models #8

Merged
merged 11 commits into from
Aug 23, 2023
Prev Previous commit
cleaning up conflicts
  • Loading branch information
thutuva committed Aug 23, 2023
commit 220157498ac1e6e44a477c5af965a84b0c7f07e7
71 changes: 0 additions & 71 deletions models/_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,10 @@ models:
schema: elation_stage
alias: lab_result

<<<<<<< HEAD
- name: elation_stage__medication_fill
config:
schema: elation_stage
alias: medication_fill
=======
- name: elation_stage__medication
config:
schema: elation_stage
alias: medication
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0

- name: elation_stage__misc_orders
config:
Expand Down Expand Up @@ -114,21 +107,13 @@ models:

- name: elation_core__allergy
config:
<<<<<<< HEAD
schema: core_stage
=======
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: allergy
materialized: table

- name: elation_core__appointment
config:
<<<<<<< HEAD
schema: core_stage
=======
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: appointment
materialized: table

Expand All @@ -144,19 +129,11 @@ models:
- name: patient_id
tests:
- not_null
<<<<<<< HEAD
- name: source_description
tests:
- not_null
config:
schema: core_stage
=======
- name: source_code
tests:
- not_null
config:
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: condition

- name: elation_core__encounter
Expand All @@ -175,11 +152,7 @@ models:
tests:
- not_null
config:
<<<<<<< HEAD
schema: core_stage
=======
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: encounter

- name: elation_core__lab_result
Expand All @@ -194,29 +167,17 @@ models:
- name: patient_id
tests:
- not_null
<<<<<<< HEAD
- name: source_description
tests:
- not_null
config:
schema: core_stage
=======
- name: source_code
tests:
- not_null
config:
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: lab_result
materialized: table

- name: elation_core__location
config:
<<<<<<< HEAD
schema: core_stage
=======
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: location

- name: elation_core__medication
Expand All @@ -231,19 +192,11 @@ models:
- name: patient_id
tests:
- not_null
<<<<<<< HEAD
- name: source_description
tests:
- not_null
config:
schema: core_stage
=======
- name: source_code
tests:
- not_null
config:
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: medication
materialized: table

Expand All @@ -259,19 +212,11 @@ models:
- name: patient_id
tests:
- not_null
<<<<<<< HEAD
- name: source_description
tests:
- not_null
config:
schema: core_stage
=======
- name: source_code
tests:
- not_null
config:
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: observation
materialized: table

Expand All @@ -282,11 +227,7 @@ models:
- unique
- not_null
config:
<<<<<<< HEAD
schema: core_stage
=======
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: patient

- name: elation_core__practitioner
Expand All @@ -296,11 +237,7 @@ models:
- unique
- not_null
config:
<<<<<<< HEAD
schema: core_stage
=======
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: practitioner
materialized: table

Expand All @@ -316,18 +253,10 @@ models:
- name: patient_id
tests:
- not_null
<<<<<<< HEAD
- name: source_description
tests:
- not_null
config:
schema: core_stage
=======
- name: source_code
tests:
- not_null
config:
schema: elation_core
>>>>>>> 54b2bbd9702f9c2541feb47eb7d5b147181d57f0
alias: procedure
materialized: table
43 changes: 0 additions & 43 deletions models/stage/elation_stage__medication.sql

This file was deleted.

Loading