cqframework / cqframework/cql-execution

Support for Vocabulary Type

Open
#281 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.