It's correct: an Extension.Url is a FhirString, and so we translate the FhirString to a string to be able to compare it to the fixed extension url. furthermore, because the underlying Firely model returns a string, we'll first have to actually make it a FhirString. But the net effect are useless conversions. Since this is a very common pattern, it will hurt performance. Is there something we can do about it?
When we write CQL to check for an extension, this is what gets generated:
E.g. from DementiaCognitiveAssessmentFHIR-0.1.000.g.cs
It's correct: an Extension.Url is a FhirString, and so we translate the FhirString to a string to be able to compare it to the fixed extension url. furthermore, because the underlying Firely model returns a string, we'll first have to actually make it a FhirString. But the net effect are useless conversions. Since this is a very common pattern, it will hurt performance. Is there something we can do about it?