Converts a human-readable section name (e.g. "Chief Complaint") to the
JSON-schema property key the LLM is prompted to emit (e.g. "chief_complaint").
Lowercase + space-to-underscore because JSON Schema keys should be stable
identifiers (OpenAI's structured-output feature is sensitive to casing and
whitespace), and because lowercase_with_underscores is the convention the
rest of the schema uses. Keep this in sync with createResponseFormat.ts.
Converts a human-readable section name (e.g. "Chief Complaint") to the JSON-schema property key the LLM is prompted to emit (e.g. "chief_complaint").
Lowercase + space-to-underscore because JSON Schema keys should be stable identifiers (OpenAI's structured-output feature is sensitive to casing and whitespace), and because lowercase_with_underscores is the convention the rest of the schema uses. Keep this in sync with
createResponseFormat.ts.