Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Breck Yunits authored and Breck Yunits committed May 7, 2024
1 parent d4571ba commit ab87002
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
16 changes: 16 additions & 0 deletions measures/cancerDBMeasures.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
13 changes: 0 additions & 13 deletions measures/commonMeasures.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"author": "Breck Yunits et al.",
"homepage": "https://cancerdb.com",
"dependencies": {
"scroll-cli": "^84.5.1"
"scroll-cli": "^84.6.0"
}
}

0 comments on commit ab87002

Please sign in to comment.