I’m working on an application that contains an interface to search for and select SNOMED codes plus their child codes, but am struggling to do it in a simple way with the Terminology Server.
I can use $expand to generate a list of codes filtered by a search term.
When a user selects a specific code I’d like to then query the API and return a navigable tree view containing the children (and a flag if they have children so I can provide another expansion on the tree view). Upon clicking a child that is expandable, I’d then perform another query to get its children.
I’ve tried the $lookup function, but that doesn’t return the display names of the child properties, just their codes.
I’m going to blow through the rate limit pretty quickly if I have to then do a lookup for each child property to get their name, so I was hoping there’d be a way to include their names in a query.
I can see in the Terminology Browser that there’s a call to a /sct-browser-api endpoint that returns children plus information about their status as a leaf node (e.g. /sct-browser-api/snomed/uk-edition/v20241120/concepts/73211009/children), but as that’s not part of the FHIR spec, I’m guessing that’s a limited access endpoint purely for the browser application as I can’t find it documented anywhere.
Could anyone point me in the right direction to achieve this?