Skip to content

Auto-inject UCD/age dependencies for V_D76.V23, V_D76.V28, V_D76.V29 #27

Open

Description

@brendensm

#2 added auto-injection of output-option dependencies for V_D76.V4 and
V_D76.V12 in apply_param_dependencies(). Three more D76 cause-list
fields almost certainly follow the same pattern but are not yet verified:

Field Description Hypothesized dependency
V_D76.V23 Injury Mechanism & All Other Leading Causes O_ucd = D76.V23
V_D76.V28 15 Leading Causes of Death (adult) O_ucd = D76.V28
V_D76.V29 15 Leading Causes of Death (Infants) O_ucd = D76.V29 + O_age = D76.V6

Test recipe

For each field, one API call (space ≥15s apart):

getData("D76",
  list(
    list("<field label>", "<valid code from codebook>"),
    list("O_ucd", "<hypothesized D76.VXX>")
    # plus list("O_age", "D76.V6") for V29
  ),
  save = TRUE,
  fn = "test_VXX.xml"
)

If the result is filtered (small focused dataset) → hypothesis confirmed,
add the field to apply_param_dependencies() following the V4/V12 pattern.
If CDC errors or returns unfiltered → investigate further before patching.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions