From ab87002e207dce3e0660431d174a3f95f0df836f Mon Sep 17 00:00:00 2001 From: Breck Yunits Date: Tue, 7 May 2024 08:49:44 -0400 Subject: [PATCH] checkpoint --- measures/cancerDBMeasures.scroll | 16 ++++++++++++++++ measures/commonMeasures.scroll | 13 ------------- package.json | 2 +- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/measures/cancerDBMeasures.scroll b/measures/cancerDBMeasures.scroll index 44e2902911..2b6ca6f679 100644 --- a/measures/cancerDBMeasures.scroll +++ b/measures/cancerDBMeasures.scroll @@ -205,6 +205,22 @@ medlinePlusParser string sourceDomain medlineplus.gov description What is the MedlinePlus ID for this thing? +measurementsParser + boolean isComputed true + extends abstractIntegerMeasureParser + int sortIndex 1 + boolean suggestInAutocomplete false + description How many measurements do we have about this thing? + javascript + computeValue(concept) { + let count = 0 + concept.forEach(node => { + if (node.isMeasure) + count++ + }) + return count + } + // name standsForParser description If the title is an acronym what does/did it stand for? diff --git a/measures/commonMeasures.scroll b/measures/commonMeasures.scroll index 692d52fe04..8403db872b 100644 --- a/measures/commonMeasures.scroll +++ b/measures/commonMeasures.scroll @@ -21,19 +21,6 @@ abstractYearMeasureParser cells measureNameCell yearCell extends abstractIntegerMeasureParser -abstractComputedSumMeasureParser - boolean isComputed true - boolean suggestInAutocomplete false - extends abstractIntegerMeasureParser -abstractComputedEstimateMeasureParser - boolean isComputed true - boolean suggestInAutocomplete false - extends abstractCountMeasureParser -abstractComputedRankMeasureParser - boolean isComputed true - boolean suggestInAutocomplete false - extends abstractIntegerMeasureParser - abstractAnnualPopulationCountParser cells yearCell countCell uniqueFirstWord diff --git a/package.json b/package.json index 5558c26e0e..b339a5f9e4 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,6 @@ "author": "Breck Yunits et al.", "homepage": "https://cancerdb.com", "dependencies": { - "scroll-cli": "^84.5.1" + "scroll-cli": "^84.6.0" } }