Skip to content

Commit 79b4bd4

Browse files
CopilotbaseTwo
andcommitted
Revert last commit changes as requested
Co-authored-by: baseTwo <[email protected]>
1 parent 687d3b2 commit 79b4bd4

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

Cql/Cql.Firely/Comparers/CodeableConceptVsCqlCodeComparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ internal class CodeableConceptVsCqlCodeComparer() : CqlComparerWrapper<object /*
2626
{
2727
CodeableConcept { Coding: [{ } coding] } => new CqlCode(coding.Code, coding.System, coding.Version, coding.Display),
2828
CqlCode c => c,
29-
_ => throw new CouldNotConvertInstanceToTargetType(outer ?? new object(), typeof(CqlCode)).ToException(),
29+
_ => throw new CouldNotConvertInstanceToTargetType(outer, typeof(CqlCode)).ToException(),
3030
});

Cql/CqlToElmTests/(tests)/EquivalentTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,7 @@ include FHIRHelpers version '4.0.1'
15221522
}
15231523

15241524
[TestMethod]
1525+
[Ignore("Will fix in https://github.com/FirelyTeam/firely-cql-sdk/issues/788")]
15251526
public void FhirCodeableConcept_EquivalentTo_Code()
15261527
{
15271528
var cqlToolkit = CreateCqlToolkit().AddFHIRHelpers();
@@ -1545,7 +1546,7 @@ include FHIRHelpers version '4.0.1'
15451546
15461547
define "Code1": Code { system: 'http://loinc.org', code: '8480-6', display: 'Systolic blood pressure' }
15471548
1548-
define "AreEquivalent": EquivalentCodeableConceptCode("Fhir Codeable Concept", "Code1")
1549+
define "AreEquivalent": "Fhir Codeable Concept" ~ "Code1"
15491550
""");
15501551
Assert.IsNotNull(library.statements);
15511552
}

Cql/CqlToElmTests/CqlToolkitTestExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static InvocationBuilder GetInvocationBuilder(this CqlToolkit cqlToolkit)
3737
public static SystemLibrary GetSystemLibrary(this CqlToolkit cqlToolkit) =>
3838
cqlToolkit.GetCqlRequiredService<SystemLibrary>();
3939

40-
private static CqlLibraryString FHIRHelpers { get; } = CqlLibraryString.Parse(File.ReadAllText(Path.Combine("Input", "FHIRHelpers-4.0.1.cql")));
40+
private static CqlLibraryString FHIRHelpers { get; } = CqlLibraryString.Parse(File.ReadAllText(@"Input\FHIRHelpers-4.0.1.cql"));
4141

4242
public static CqlToolkit AddFHIRHelpers(this CqlToolkit cqlToolkit) => cqlToolkit.AddCqlLibraries(FHIRHelpers);
4343

Cql/CqlToElmTests/Input/FHIRHelpers-4.0.1.cql

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,6 @@ define function ToConcept(concept FHIR.CodeableConcept):
109109
display: concept.text.value
110110
}
111111

112-
define function "~"(left FHIR.CodeableConcept, right System.Code):
113-
exists (left.coding C where ToCode(C) ~ right)
114-
115-
define function "~"(left System.Code, right FHIR.CodeableConcept):
116-
exists (right.coding C where left ~ ToCode(C))
117-
118-
define function "EquivalentCodeableConceptCode"(left FHIR.CodeableConcept, right System.Code):
119-
exists (left.coding coding where ToCode(coding) ~ right)
120-
121112

122113
define function ToString(value AccountStatus): value.value
123114
define function ToString(value ActionCardinalityBehavior): value.value

0 commit comments

Comments
 (0)