Support Advanced Terminology API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- api, backend-api-design
Direzione di ricerca
Inizia da src/types/cql-code-service.interfaces.ts, in particolare dall’interfaccia TerminologyProvider esistente, quindi confrontala con il TerminologyProvider di Java CQL Engine collegato nell’issue. Chiarisci la progettazione delle operazioni e delle capability di v2, inclusi la compatibilità con v1 e il comportamento degli errori; l’issue è completata solo quando queste questioni aperte sono state risolte e l’API risultante è stata implementata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently, the TerminologyProvider (a.k.a. CodeService) API in cql-execution is quite simple:
export interface TerminologyProvider {
findValueSetsByOid: (oid: string) => ValueSet[] | Promise<ValueSet[]>;
findValueSet: (oid: string, version?: string) => ValueSet | Promise<ValueSet> | null;
}
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:
// Notional AdvanceTerminologyProvider... VERY subject to change!
export interface AdvancedTerminologyProvider {
capabilities: () => TerminologyCapabilities;
inValueSet: (code: Code | Code[], valueSet: ValueSetInfo) => Promise<boolean>;
expandValueSet: (valueSet: ValueSetInfo) => Promise<ExpandedValueSet>;
inCodeSystem: (code: Code | Code[], codeSystem: CodeSystemInfo) => Promise<boolean>;
expandCodeSystem: (codeSystem: CodeSystemInfo) => Promise<ExpandedCodeSystem>;
subsumes: (subsuming: Code | Concept, subsumed: Code | Concept) => Promise<boolean>
}
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?
- Lingua principale
- JavaScript
- Stelle
- 84
- Fork
- 39
- Merge medio
- 2g 5h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cqframework/cql-execution
-
Issue with using type testing operation on FHIR primitivesForse già presa @dehall l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 54/100
cqframework/cql-execution#391 · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
cqframework/cql-execution#390 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
cqframework/cql-execution#386 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
cqframework/cql-execution#378 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
cqframework/cql-execution#355 · 2 commenti ·
Tutte le issue di cqframework/cql-execution
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
fossasia/scrum_helper#949 ·
I maintainer di solito rispondono entro 2 giorni
-
Learn Faust tutorial: Blocks step says Faust loads block CSS, but no WordPress styles are appliedAperta[Type] Bug Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
TheOdinProject/curriculum#31493 ·
I maintainer di solito rispondono entro 1 giorno
-
[Report] Some official plugins are marked as Stable, but their Readme says they are experimentalAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
TiddlyWiki/TiddlyWiki5#10061 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation ready
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno