You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows for easy implementation of terminology providers because it pushes most of the terminology operations to the CQL engine itself. The terminology provider need only support simple lookups and return the expanded value set(s). This, however, has performance implications since large value sets must be stored in memory and membership lookup is done by iterating the full set of codes. It also doesn't support other terminology-related operations like subsumption and code system membership.
We should introduce a v2 TerminologyProvider API that allows terminology operations to be implemented by the provider. This would allow for the provider to be backed by a terminology service or a database that can do operations more efficiently. It would also allow for implementation of advanced terminology operations that are not supported by the current engine.
The Java CQL Engine provides a fairly simple TerminologyProvider API (here) that currently supports in (VS membership), expand (VS expansion), and lookup (code display lookup). I think we can borrow some from that, but would suggest that we also cover a bit more ground:
The cql-execution framework can check a terminology provide to see if it has a capabilities function, and if so, inspect its capabilities and then call it as appropriate. If it doesn't have a capabilities function, then it's assumed to be a v1 provider. We should continue to support both.
This design is still very subject to change and there are some open questions:
Does it make sense for a terminology provider to advertise its capabilities? Or should the engine just always try (and know that sometimes it won't work).
If a terminology provider can't process one of these requests, should it throw? Or return null?
The text was updated successfully, but these errors were encountered:
Currently, the TerminologyProvider (a.k.a.
CodeService
) API in cql-execution is quite simple:This allows for easy implementation of terminology providers because it pushes most of the terminology operations to the CQL engine itself. The terminology provider need only support simple lookups and return the expanded value set(s). This, however, has performance implications since large value sets must be stored in memory and membership lookup is done by iterating the full set of codes. It also doesn't support other terminology-related operations like subsumption and code system membership.
We should introduce a v2
TerminologyProvider
API that allows terminology operations to be implemented by the provider. This would allow for the provider to be backed by a terminology service or a database that can do operations more efficiently. It would also allow for implementation of advanced terminology operations that are not supported by the current engine.The Java CQL Engine provides a fairly simple
TerminologyProvider
API (here) that currently supportsin
(VS membership),expand
(VS expansion), andlookup
(code display lookup). I think we can borrow some from that, but would suggest that we also cover a bit more ground:The cql-execution framework can check a terminology provide to see if it has a
capabilities
function, and if so, inspect its capabilities and then call it as appropriate. If it doesn't have acapabilities
function, then it's assumed to be a v1 provider. We should continue to support both.This design is still very subject to change and there are some open questions:
The text was updated successfully, but these errors were encountered: