documentation:next_cdm:add_person_to_cost
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:next_cdm:add_person_to_cost [2017/03/17 11:19] – gowtham_rao | documentation:next_cdm:add_person_to_cost [2017/07/10 16:43] (current) – clairblacketer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Cost Table Changes (Add Person_id, Dates and normalize) ====== | ====== Cost Table Changes (Add Person_id, Dates and normalize) ====== | ||
| + | ===Proposals are now being tracked as github issues=== | ||
| + | [[https:// | ||
| **Proposal Owner:** Gowtham Rao, Chris Knoll, Klaus Bonadt | **Proposal Owner:** Gowtham Rao, Chris Knoll, Klaus Bonadt | ||
| Line 20: | Line 21: | ||
| **2. Add incurred_date, | **2. Add incurred_date, | ||
| - | * Add two new datetime fields in the cost table. billed_datetime and paid_datetime | + | * Add three new datetime fields in the cost table. billed_datetime and paid_datetime |
| * Incurred_date or service_date (match event table) - This is in-line with the design principle. | * Incurred_date or service_date (match event table) - This is in-line with the design principle. | ||
| * Both fields are optional (Required = No), they are date time fields (Type = DateTime - following OMOP conventions) | * Both fields are optional (Required = No), they are date time fields (Type = DateTime - following OMOP conventions) | ||
| Line 49: | Line 50: | ||
| - | **3. Change structure of Cost table from current de-normalized (for cost variables) to normalized (for cost variables)** | + | **3. Leverage cost_type_concept_id and remove |
| * Proposed structure of new table is below | * Proposed structure of new table is below | ||
| - | * The key idea here is that instead of making each cost-type a column (i.e. wide representation), | + | * The key idea here is that instead of making each cost-type a column (i.e. wide representation), |
| - | * Introduced new standard | + | * cost_type_concept_id will be used to identify |
| - | * Change | + | * Should |
| ^ Field ^ Required | ^ Field ^ Required | ||
| Line 62: | Line 63: | ||
| | cost_type_concept_id | | cost_type_concept_id | ||
| | currency_concept_id | | currency_concept_id | ||
| - | | cost_amount_type_concept_id | + | | total_cost |
| - | | cost_amount | + | | incurred_date |
| - | | service_date | + | | incurred_datetime |
| - | | service_datetime | + | |
| | billed_datetime | | billed_datetime | ||
| | paid_datetime | | paid_datetime | ||
documentation/next_cdm/add_person_to_cost.1489749561.txt.gz · Last modified: by gowtham_rao
