cancerDHC / ccdh-terminology-service

CCDH Terminology and Mapping Service
3 stars 4 forks source link

New features: Endpoints for (i) Code systems, and (ii) codeable concept #141

Open joeflack4 opened 2 years ago

joeflack4 commented 2 years ago

New endpoint(s): Code systems

Example endpoints

1. An endpoint w/ all system URLs: /systems/

Shows all systems that the terminology service knows about. Can show information like system url, prefix, version.

2. /systems/<system>

Can get the same as (1), but only for the single system referenced. I suppose could accept URL or prefix.

Discussion

TCCM already has a model and endpoints for concept systems, so it would be best if that could be used.

Where/how to determine canonical URIs?


New endpoint(s): Codeable concept

(Related issue: https://github.com/cancerDHC/ccdh-terminology-service/issues/89)

Rather than, or in addition to, current enumeration endpoint(s), we can implement an endpoint that returns such data in the structure of FHIR codeable concept (see also: coding).

Example from FHIR docs:

    {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "260385009",
                "display": "Negative"
            }, {
                "system": "https://acme.lab/resultcodes",
                "code": "NEG",
                "display": "Negative"
            }
        ],
        "text": "Negative for Chlamydia Trachomatis rRNA"
    }
joeflack4 commented 2 years ago

Maybe I should have broken this into to separate issues., but I'll keep together for right now.

joeflack4 commented 2 years ago

@turbomam @gaurav FYI