@ian.mcnicoll For ehrbase you might need to wrap the TERMINOLOGY statement in {
{
See here an example of a working AQL Query with terminology