One thing that would help here is an AQL function that would treat the defining_code and any mappings as a single flat list (like FHIR CodeableConcept), plus allow token matches ( terminologyId and term combined)
e.g hasTerm{"SNOMEDCT::“123456”)
1 Like