outcomesinsights / generalized_data_model

Outcomes Insights' Data Model for Clinical Research
MIT License
16 stars 3 forks source link

Divide the cost table into two parts #104

Closed markdanese closed 7 years ago

markdanese commented 7 years ago

The first table will be payer_reimbursements and the second will be called costs.

Payer_reimbursements will contain all of the columns from the current cost table except total_cost and total_cost_concept_id.

The costs table will contain context_id, clinical_code_id, patient_id, currency_concept_id, cost_base, value and value_concept_id. For the costs table, this will be an EAV-style table where the value_concept_id will define the type of economic information in the value field. Context records could have multiple rows attached to them.

marc-outins commented 7 years ago

Closed by commits c222a46, e704fef, 362d35b, and 62037ff