Copied Reference Queries
These files were copied from the working Snowflake-Queries repo because they were already explicitly template-like.
Use these as reference examples, not as the first place to start a new query. Several contain historic assumptions such as Norfolk and Waveney geography, hardcoded SNOMED codes, or notes that were current when the original work was done.
For new work, start from the cleaned templates in the numbered folders at the repo root.
Contents
medicine_lookup_checks/: original short checks for prescribing or dispensing by VTM or VMP.pqs_long_format/: original PQS long-format and rolling-period templates.useful_short_queries/: original compact lookup, freshness, price/unit, and practice-list queries.
The original CheckPrescribingByPseudo.sql file was deliberately not copied because it contains a hardcoded patient pseudonym.