FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
31 stars 17 forks source link

Types with dot-deliminted names in models are not resolving #452

Open EvanMachusak opened 3 months ago

EvanMachusak commented 3 months ago

In this CQL:

define instance:
    FHIR.Parameters.Parameter {
       part: FHIR.Parameters.Parameter { name: 'name' }
    }

our model type resolver is unable to resolve the Parameters.Parameter type in the FHIR model, which is defined in the model XML as:

<typeInfo baseType="FHIR.BackboneElement" namespace="FHIR" name="Parameters.Parameter" retrievable="false" xsi:type="ClassInfo">
      <element name="name" elementType="FHIR.string"/>
      <element name="value">
      ....
</typeInfo>

Specifically, it can't handle the part element:

<elementTypeSpecifier xsi:type="ListTypeSpecifier">
  <elementTypeSpecifier namespace="FHIR" name="Parameters.Parameter" xsi:type="NamedTypeSpecifier"/>
</elementTypeSpecifier>