MCHS Stata file/CLI boundary adapter

Delegates MCHS workflows to the external CLI/file boundary. No formula logic is implemented in this ado adapter.

Syntax

mchs import using results.csv [, clear saveas(results.dta) replace]

mchs run using input.csv, calculator(id) year(YYYY) output(results.csv) [import clear replace cli(command)]

mchs validate [, required(varlist)]

Description

mchs import imports a shared-core CSV result into Stata and can save a native .dta copy for downstream analysis.

mchs run invokes the shared-core CLI through Stata's shell boundary, confirms the output file exists, and can immediately import that output. The default CLI command is funding-calculator.

mchs validate checks that imported file-boundary outputs contain provenance columns. By default it requires contract_version, calculator_id, pricing_year, and fixture_gate.

Examples

. mchs import using "results.csv", clear

. mchs run using "acute_input.csv", calculator(acute) year(2025) output("acute_results.csv") replace import clear

. mchs validate