Description
Description
Currently, the GitHub Action only triggers validation when a questionnaire (Q) changes. If a structure map (SM) is modified without updating the questionnaire, the test does not run, and vice versa. This can lead to undetected errors.
Expected Behavior
-
If a structure map (SM) changes, find and validate its related questionnaire (Q).
-
If a questionnaire (Q) changes, find and validate its related structure map (SM).
-
Ensure validation runs for both when either changes.
Solution
Update the GitHub Action to check for related Qs when SMs change and related SMs when Qs change.
Run validation for both whenever a related change is detected.
Impact
Fixing this ensures that updates to structure maps or questionnaires are always validated together, preventing errors in FHIR resource transformations.