Skip to content

Commit

Permalink
Merge pull request #10 from samply/feature/age
Browse files Browse the repository at this point in the history
bbmri age stratifier increment 1
  • Loading branch information
enola-dkfz authored Mar 21, 2024
2 parents 256e6ba + fb8d755 commit bce53a7
Show file tree
Hide file tree
Showing 13 changed files with 742 additions and 12 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ once_cell = "1.18"

# Command Line Interface
clap = { version = "4.0", features = ["std", "env", "derive", "help"] }
uuid = "1.8.0"

[dev-dependencies]
pretty_assertions = "1.4.0"
Expand Down
172 changes: 172 additions & 0 deletions resources/body_bbmri.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"lang": "cql",
"lib": {
"content": [
{
"contentType": "text/cql",
"data": "{{LIBRARY_ENCODED}}"
}
],
"resourceType": "Library",
"status": "active",
"type": {
"coding": [
{
"code": "logic-library",
"system": "http://terminology.hl7.org/CodeSystem/library-type"
}
]
},
"url": "{{LIBRARY_UUID}}"
},
"measure": {
"group": [
{
"code": {
"text": "patients"
},
"population": [
{
"code": {
"coding": [
{
"code": "initial-population",
"system": "http://terminology.hl7.org/CodeSystem/measure-population"
}
]
},
"criteria": {
"expression": "InInitialPopulation",
"language": "text/cql-identifier"
}
}
],
"stratifier": [
{
"code": {
"text": "Gender"
},
"criteria": {
"expression": "Gender",
"language": "text/cql"
}
},
{
"code": {
"text": "Age"
},
"criteria": {
"expression": "AgeClass",
"language": "text/cql"
}
},
{
"code": {
"text": "Custodian"
},
"criteria": {
"expression": "Custodian",
"language": "text/cql"
}
}
]
},
{
"code": {
"text": "diagnosis"
},
"extension": [
{
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
"valueCode": "Condition"
}
],
"population": [
{
"code": {
"coding": [
{
"code": "initial-population",
"system": "http://terminology.hl7.org/CodeSystem/measure-population"
}
]
},
"criteria": {
"expression": "Diagnosis",
"language": "text/cql-identifier"
}
}
],
"stratifier": [
{
"code": {
"text": "diagnosis"
},
"criteria": {
"expression": "DiagnosisCode",
"language": "text/cql-identifier"
}
}
]
},
{
"code": {
"text": "specimen"
},
"extension": [
{
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
"valueCode": "Specimen"
}
],
"population": [
{
"code": {
"coding": [
{
"code": "initial-population",
"system": "http://terminology.hl7.org/CodeSystem/measure-population"
}
]
},
"criteria": {
"expression": "Specimen",
"language": "text/cql-identifier"
}
}
],
"stratifier": [
{
"code": {
"text": "sample_kind"
},
"criteria": {
"expression": "SampleType",
"language": "text/cql"
}
}
]
}
],
"library": "{{LIBRARY_UUID}}",
"resourceType": "Measure",
"scoring": {
"coding": [
{
"code": "cohort",
"system": "http://terminology.hl7.org/CodeSystem/measure-scoring"
}
]
},
"status": "active",
"subjectCodeableConcept": {
"coding": [
{
"code": "Patient",
"system": "http://hl7.org/fhir/resource-types"
}
]
},
"url": "{{MEASURE_UUID}}"
}
}
Loading

0 comments on commit bce53a7

Please sign in to comment.