Usage of maapi_do_display()

If you implement your own northbound interface based on MAAPI, you can use that function to check if an item should be displayed.

I believe you can find when statements in the schema, but if you want to find out about tailf.display-when extensions, you need to add that as meta-data.

Regarding meta-data, see for example this post Is the schema range available via confd_cs_node_info?