FHIR Chat · Underscores · cql

Stream: cql

Topic: Underscores


view this post on Zulip Paul Denning (Jun 25 2021 at 14:59):

MAT says CQL Library names must start with an upper case letter, followed by alpha-numeric character(s) and must not contain spaces, '_' (underscores), or other special characters.

Where does this requirement come from?

Also in MAT, Measure name does not allow underscores; where does this come from?

view this post on Zulip JP (Jun 25 2021 at 17:24):

Here's the standard for CQL identifiers:
https://cql.hl7.org/03-developersguide.html#identifiers

Here's the standard for Measure names:
https://www.hl7.org/fhir/measure.html#invs

Both allow underscores. However, FHIR ids (separate from both Measure names and CQL identifiers) do not:
https://www.hl7.org/fhir/resource.html#id

I can't speak with certainty since I'm not on the MAT team but I'd guess they've chosen to use the lowest common denominator between those requirements.

view this post on Zulip Bryn Rhodes (Jun 25 2021 at 18:49):

It's actually a new requirement based on experience with underscores causing problems, introduced as part of the latest QM IG ballot:

view this post on Zulip Bryn Rhodes (Jun 25 2021 at 18:49):

http://hl7.org/fhir/us/cqfmeasures/2021May/using-cql.html#library-name-and-url

view this post on Zulip John Silva (Jun 25 2021 at 21:10):

At the last FHIR Connectathon I noticed that some of the DaVinci DTR profile libraries use underscores, e.g. CDS_Connect_Commons_for_FHIRv400

http://www.hl7.org/fhir/us/davinci-dtr/resources__home-o2-prepopulation.html
and some can be found here: https://github.com/HL7-DaVinci/CDS-Library/tree/master/CRD-DTR

view this post on Zulip Chris Moesel (Jun 25 2021 at 21:39):

@John Silva - Thanks for noticing this. CDS_Connect_Commons_for_FHIRv400 comes from the CDS Connect project, which I am a part of. When those libraries were created, issues w/ underscores had not yet come up. As they're intended for CDS (not measures), they are not governed by the Quality Measure Implementation Guide. BUT... I've just looked now and it appears that FHIR Clinical Guidelines also prohibits underscores in names -- so... it's probably something that we should look into.

view this post on Zulip John Silva (Jun 25 2021 at 21:50):

Thanks Chris! When I was trying to use the CQL Libraries and FHIR resources from the DTR IG I ran into this and had to rename things. (Separately, I also changed to use FHIR 4.0.1 instead of the 4.0.0 used in these.)

view this post on Zulip Bryn Rhodes (Jun 27 2021 at 19:25):

The challenge was that we wanted to use the library name directly in the canonical URL, and since the publisher requires canonical URLs to match resource IDs, it made things simpler all around to introduce that constraint.


Last updated: Apr 12 2022 at 19:14 UTC