cqframework / cqframework/cql-execution
Support for Vocabulary Type
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 84
- Forks
- 38
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 1
Description
The CQL Vocabulary type represents a reference to a code system or value set, allowing either one to be passed into CQL functions.
To demonstrate how this might work, consider the following example:
library MyLibrary version '0.0.1'
valueset MyVS: 'http://example.org/vs/myvs'
codesystem MyCS: 'http://example.org/cs/mycs'
code Foo: 'Foo' from "MyCS" display 'Foo'
define function FooInVocabulary(CSorVS Vocabulary):
if CSorVS is CodeSystem
then Foo in (CSorVS as CodeSystem)
else
Foo in (CSorVS as ValueSet)
define IsFooInMyVS:
FooInVocabulary(MyVS)
define IsFooInMyCVS:
FooInVocabulary(MyCS)
Much like the case for ValueSet (#226) and CodeSystem (#259), the ELM representation of a function that takes a Vocabulary argument would be invoked with a ValueSetRef or CodeSystemRef.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the related ValueSet (#226) and CodeSystem (#259) work, then trace how ELM ValueSetRef and CodeSystemRef arguments are represented and executed. Done means a function accepting Vocabulary can receive either reference and the example functions behave as shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100