FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
26 stars 15 forks source link

Map a CqlCode to a Coding and not Code #342

Closed baseTwo closed 1 month ago

baseTwo commented 1 month ago

ℹ️Work for issue #340

Fix mapping from Cql Code -> FHIR Coding

baseTwo commented 1 month ago

I would be in favour of having an accurate mapping:

  • If CqlCode only contains a code and not a system, version or display -> FHIRAllTypes.code
  • Else -> FHIRAllTypes.Coding

@alexzautke This mapper only works on type information, it does not have access to an instance of CqlCode