diff --git a/data-requirements/compare.sh b/data-requirements/compare.sh index e707e017..3b18efb9 100755 --- a/data-requirements/compare.sh +++ b/data-requirements/compare.sh @@ -36,7 +36,7 @@ if [ ! -d "elm-parser-for-ecqms" ]; then git checkout "fhir_review" ruby parse_elm.rb --bundle qicore cd .. - if [-d "elm-parser-dr"]; then + if [ -d "elm-parser-dr" ]; then rm -rf elm-parser-dr fi mkdir elm-parser-dr diff --git a/data-requirements/fqm-e-dr.ts b/data-requirements/fqm-e-dr.ts index dd65d579..e7daf328 100644 --- a/data-requirements/fqm-e-dr.ts +++ b/data-requirements/fqm-e-dr.ts @@ -23,10 +23,13 @@ async function main() { fs.mkdirSync('./fqm-e-dr'); // get all of the file names (short and fullPath) from the jan-2024-connectathon directory - const allBundles = fs.readdirSync(JAN_2024_CONNECTATHON_BASE_PATH).map(f => ({ - shortName: f.split('v')[0], - fullPath: path.join(JAN_2024_CONNECTATHON_BASE_PATH, f) - })); + const allBundles = fs + .readdirSync(JAN_2024_CONNECTATHON_BASE_PATH) + .filter(f => f !== '.gitkeep') + .map(f => ({ + shortName: f.split('v')[0], + fullPath: path.join(JAN_2024_CONNECTATHON_BASE_PATH, f) + })); for (const bundle of allBundles) { const measureBundle = JSON.parse(fs.readFileSync(bundle.fullPath, 'utf8')) as fhir4.Bundle; diff --git a/data-requirements/summary-compare.sh b/data-requirements/summary-compare.sh index 5f4db159..a101e45e 100755 --- a/data-requirements/summary-compare.sh +++ b/data-requirements/summary-compare.sh @@ -34,14 +34,14 @@ echo "Gathering data-requirements output from the fhir_review branch of elm-pars # Clone the elm-parser-for-ecqms in the data-requirements directory if it hasn't been, swtich to the fhir_review branch, # run parse_elm.rb with --bundle qicore to get data-requirements for measure bundles from the January 2024 Connectathon -if [ ! -d "elm-parser-for-ecqms" ]; then +if [ ! -d "data-requirements/elm-parser-for-ecqms" ]; then git clone https://github.com/projecttacoma/elm-parser-for-ecqms.git git fetch --all cd elm-parser-for-ecqms git checkout "fhir_review" ruby parse_elm.rb --bundle qicore cd .. - if [-d "elm-parser-dr"]; then + if [ -d "elm-parser-dr" ]; then rm -rf elm-parser-dr fi mkdir elm-parser-dr