cqframework / cqf-tooling

Tooling for CQL and IG Authors
Apache License 2.0
19 stars 22 forks source link

Add HSLOC code system to CodeSystemLookupDictionary #173

Open mholck opened 3 years ago

mholck commented 3 years ago

The full May 2020 eCQM valuesets from VSAC include a handful of codes from HSLOC which is not found as a valid code system

Defining URL: http://terminology.hl7.org/CodeSystem/hsloc
Version: 2.0.0
Name: Hsloc
Title: Healthcare Service Location
Status: Active
Content: None of the concepts defined by the code system are included in the code system resource
Definition: A comprehensive classification of locations and settings where healthcare services are provided. This value set is based on the National Healthcare Safety Network (NHSN) location code system that has been developed over a number of years through CDC's interaction with a variety of healthcare facilities and is intended to serve a variety of reporting needs where coding of healthcare service locations is required.The HSLOC content, including relationships can be acced at the following location: http://www.cdc.gov/phin/activities/standards/vocabulary/index.html
Publisher: TBD - External Body
OID: 2.16.840.1.113883.6.259 (for OID based terminology systems)
brynrhodes commented 2 years ago

This issue is impacting current value sets in the ecqm-content-r4-2022 and ecqm-content-qicore-2022 repositories: https://github.com/cqframework/ecqm-content-r4-2022/issues/5

brynrhodes commented 2 years ago

Per current release of THO, this is the defining URL: https://www.cdc.gov/nhsn/cdaportal/terminology/codesystem/hsloc.html

p9g commented 2 years ago

While you are at it, see https://terminology.hl7.org/3.1.0/NamingSystem-CDCREC.html and change https://github.com/cqframework/cqf-tooling/blob/master/src/main/java/org/opencds/cqf/tooling/terminology/CodeSystemLookupDictionary.java (lines #L125 and #L191) to return urn:oid:2.16.840.1.113883.6.238 and update #L64

Consistent with US Core 5.0.0