Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bbmri age stratifier increment 1 #10

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading