-
Notifications
You must be signed in to change notification settings - Fork 18
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
No conversion from <type> to Hl7.Fhir.Model.Quantity #584
Comments
See Slack:
|
The main bit is this:
What the author is doing here is equivalent to an A deeper question is: does this |
Start by writing a unit test for |
Evan suggested this test:
|
This CQL:
Produces this (correct) C#: 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.4.0")]
[CqlLibrary("AsTest", "1.0.0")]
public class AsTest_1_0_0
{
internal CqlContext context;
#region Cached values
#endregion
public AsTest_1_0_0(CqlContext context)
{
this.context = context ?? throw new ArgumentNullException("context");
}
[CqlDeclaration("ObsValue")]
public Quantity ObsValue(Observation obs)
{
DataType a_ = obs?.Value;
return a_ as Quantity;
}
} when compiled using our CQL-to-ELM tool. |
Will investigate again |
The following types cannot convert to
Hl7.Fhir.Model.Quantity
:Hl7.Cql.Primitives.CqlQuantity
see screenshot in VONK-7083The text was updated successfully, but these errors were encountered: