-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #650 from FirelyTeam/458-upgrade-java-tooling-and-…
…cms-measures-to-latest 458 upgrade java tooling
- Loading branch information
Showing
11 changed files
with
430 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Collections.Generic; | ||
using Hl7.Cql.Runtime; | ||
using Hl7.Cql.Primitives; | ||
using Hl7.Cql.Abstractions; | ||
using Hl7.Cql.ValueSets; | ||
using Hl7.Cql.Iso8601; | ||
using System.Reflection; | ||
using Hl7.Cql.Operators; | ||
using Hl7.Fhir.Model; | ||
using Range = Hl7.Fhir.Model.Range; | ||
using Task = Hl7.Fhir.Model.Task; | ||
|
||
[System.CodeDom.Compiler.GeneratedCode(".NET Code Generation", "2.0.8.0")] | ||
[CqlLibrary("MeasureExample", "0.0.1")] | ||
public partial class MeasureExample_0_0_1 : ILibrary, ISingleton<MeasureExample_0_0_1> | ||
{ | ||
private MeasureExample_0_0_1() {} | ||
|
||
public static MeasureExample_0_0_1 Instance { get; } = new(); | ||
|
||
#region Library Members | ||
public string Name => "MeasureExample"; | ||
public string Version => "0.0.1"; | ||
public ILibrary[] Dependencies => []; | ||
#endregion Library Members | ||
|
||
[CqlDeclaration("Patient")] | ||
public Patient Patient(CqlContext context) | ||
{ | ||
IEnumerable<Patient> a_ = context.Operators.Retrieve<Patient>(new RetrieveParameters(default, default, default, "http://hl7.org/fhir/StructureDefinition/Patient")); | ||
Patient b_ = context.Operators.SingletonFrom<Patient>(a_); | ||
|
||
return b_; | ||
} | ||
|
||
|
||
[CqlDeclaration("Initial population")] | ||
[CqlTag("measure", "Measure Resource Example")] | ||
[CqlTag("year", "2024")] | ||
[CqlTag("domain", "Testing Measures")] | ||
[CqlTag("group", "1")] | ||
[CqlTag("group", "2")] | ||
[CqlTag("population", "initial-population")] | ||
[CqlTag("description", "Patients in the IP")] | ||
public bool? Initial_population(CqlContext context) => | ||
true; | ||
|
||
|
||
[CqlDeclaration("Exclusion")] | ||
[CqlTag("group", "1")] | ||
[CqlTag("group", "2")] | ||
[CqlTag("population", "denominator-exclusion")] | ||
public bool? Exclusion(CqlContext context) => | ||
false; | ||
|
||
|
||
[CqlDeclaration("Denominator")] | ||
[CqlTag("group", "1")] | ||
[CqlTag("group", "2")] | ||
[CqlTag("population", "denominator")] | ||
public bool? Denominator(CqlContext context) | ||
{ | ||
bool? a_ = this.Initial_population(context); | ||
bool? b_ = this.Exclusion(context); | ||
bool? c_ = context.Operators.Not(b_); | ||
bool? d_ = context.Operators.And(a_, c_); | ||
|
||
return d_; | ||
} | ||
|
||
|
||
[CqlDeclaration("Numerator 1")] | ||
[CqlTag("group", "1")] | ||
[CqlTag("population", "numerator")] | ||
public bool? Numerator_1(CqlContext context) => | ||
true; | ||
|
||
|
||
[CqlDeclaration("Numerator 2")] | ||
[CqlTag("group", "2")] | ||
[CqlTag("population", "numerator")] | ||
public bool? Numerator_2(CqlContext context) => | ||
false; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
library MeasureExample version'0.0.1' | ||
|
||
using FHIR version '4.0.1' | ||
|
||
context Patient | ||
|
||
/** | ||
* @measure: Measure Resource Example | ||
* @year: 2024 | ||
* @domain: Testing Measures | ||
*/ | ||
|
||
/* | ||
* @group: 1 | ||
* @group: 2 | ||
* @population: initial-population | ||
* @description: Patients in the IP | ||
*/ | ||
define "Initial population": | ||
true | ||
|
||
/* | ||
* @group: 1 | ||
* @group: 2 | ||
* @population: denominator | ||
*/ | ||
define "Denominator": | ||
"Initial population" | ||
and not "Exclusion" | ||
|
||
/* | ||
* @group: 1 | ||
* @group: 2 | ||
* @population: denominator-exclusion | ||
*/ | ||
define "Exclusion": | ||
false | ||
|
||
/* | ||
* @group: 1 | ||
* @population: numerator | ||
*/ | ||
define "Numerator 1": | ||
true | ||
|
||
/* | ||
* @group: 2 | ||
* @population: numerator | ||
*/ | ||
define "Numerator 2": | ||
false |
Oops, something went wrong.