This version of CQL Execution VSAC introduces support for choosing how code systems retrieved using SVS are represented. In prior versions of CQL Exec VSAC, code system OIDs from SVS were always translated to their corresponding FHIR Code System URLs (when available). Starting in version 2.2.0, the ensureValueSetsWithAPIKey
and ensureValueSetsInLibraryWithAPIKey
functions take an additional options
argument. This options
argument supports a svsCodeSystemType
key with the following values:
url
: Convert OIDs to FHIR Code System URLs when possible (e.g.,http://loinc.org
). This is the default and corresponds with previous behavior.oid
: Retain OIDs as-is (e.g.,urn:oid:2.16.840.1.113883.6.1
)both
: Convert OIDs to FHIR Code System URLs and retain the original OIDs. While this is the most flexible, it is also the least performant due to tracking multiple representations of each code.
Note that these options only affect code systems retrieved via the SVS2 API. Code systems retrieved via the FHIR API will always use their respective FHIR Code System URLs.
Thank you, @SomethingSexy, for contributing this feature!
What's Changed
- Add configuration to support including both uri and oid when parsing valuesets by @SomethingSexy in #31
- v2.2.0 by @cmoesel in #33
New Contributors
- @SomethingSexy made their first contribution in #31
Full Changelog: v2.1.0...v2.2.0