feat(seeds): add central cohort definitions registry#419
Conversation
Introduces seeds/cohort_definitions.csv as the authoritative source of cohort_definition_id values across all BES deployments. Deployment-specific coh__ models must reference IDs from this registry rather than assigning them locally. Registers the NCD program registry as cohort_definition_id = 1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @julianam-w's task in 1m 31s —— View job PR Review
|
Summary
seeds/cohort_definitions.csvas the authoritative source ofcohort_definition_idvalues across all BES deploymentscoh__models must reference IDs from this registry — never assign one locallyseeds/cohort_definitions.ymlwith schema documentation andnot_null/uniquetests on the primary keycohort_definition_id = 1for the NCD program registryThis supports the OMOP-inspired cohort conventions introduced in the
.mauisubmodule (see maui-team #10).Test plan
dbt seed --profiles-dir config --select cohort_definitionsruns without errordbt test --profiles-dir config --select cohort_definitionspasses (not_null,unique)omop_concept_id4214956 (SNOMED: Non-communicable disease) is appropriate🤖 Generated with Claude Code