CMSgov / price-transparency-guide-validator

Validation tool to check output files required by the price-transparency-guide
Apache License 2.0
29 stars 13 forks source link

Find references to other files for download and validation #96

Closed mint-thompson closed 1 year ago

mint-thompson commented 1 year ago

Based on the defined schemas, a "table-of-contents" file may contain references to "in-network" and "allowed-amount" files. An "in-network" file may contain references to "provider-reference" files. These references are collected during validation. When these references exist, show the user the list of references and ask if they want to validate those files. If they say yes, download and validate the referenced files. When an output file is specified, the results for all files are included in the output.

This PR also includes some refactoring of existing functions into SchemaManager and DockerManager classes. The goal of this refactoring is to reduce code duplication and move logic out of the main command-handling functions. There is definitely more refactoring that can be done, but the amount in this PR feels like a good start.