Case study
Medical Templates Framework
The problem. Keep analytical field identity consistent while form definitions change.
My role. I defined metadata rules, SQL-generation boundaries and acceptance criteria, and reviewed the framework’s evolution. Implementation and operation were shared across teams.
Approach. Capture a definitions snapshot, separately from operational records.
Context
Changing form labels, types and versions require stable definitions for downstream analysis. A readable name alone does not establish that two fields mean the same thing.
Approach
- Capture a definitions snapshot, separately from operational records.
- Resolve identity using usage, validity and definition date; surface ambiguity for human review.
- Generate SQL for inspection rather than executing warehouse changes locally.
- Review the generated changes and check results after external execution.
What this work produced
The framework provides reusable analytical structures and explicit review points. Information was used by medical teams at the documented review; a consolidated layer for form usage and completeness was still in development.
Technical detail
Python / Flask supports the local maintainer; BigQuery SQL expresses catalogs, transformations and views. Upstream ingestion belongs to data engineering. SQL execution is external to the maintainer, while domain users contribute field meaning.
Engineering considerations
Separating SQL generation from execution makes changes reviewable and requires a handoff. Naming rules reduce hidden assumptions but leave ambiguous identity for human resolution. Generator tests, SQL parsing and join-multiplication checks cover specific failure modes rather than every view.
Illustrative example using synthetic data
Illustrative example using synthetic data. These labels are not an institutional catalog or actual generator output.
| Source label | Candidate name | Review |
|---|---|---|
| Work area | work_area | Candidate only |
| Requested on | requested_on | Candidate only |
| WORK-AREA | work_area | Review identity collision |
Matching candidate names prompt a review; they do not establish equivalent field meaning.