Build the extraction prompt for one study
Details
The variable names and group categories defined in the project's
_rules.yml are included (placeholders {{known_variables}} and
{{group_categories}}), so the LLM uses the project's vocabulary. Adding
synonyms does not make cached extractions outdated, because that would
trigger costly re-extraction of every study; use force = TRUE in
df_extract_batch() to redo studies deliberately.