# Terminology functions in openEHR Terminology Package **Category:** [Implementation](https://discourse.openehr.org/c/implem/39) **Created:** 2025-01-06 10:25 UTC **Views:** 58 **Replies:** 2 **URL:** https://discourse.openehr.org/t/terminology-functions-in-openehr-terminology-package/6110 --- ## Post #1 by @richard.kavanagh I have been looking at the RM (v1.1.0) , specifically at the ISM_Transition Class ![image|645x500](upload://s0uqM387ljbeeG8e2vD6i9wyXDx.png) You will see that it refers to some terminology functions in the invariants. Looking at the Ternminoloy Package, I see the following: ![image|690x466](upload://6N7NSCDlCr62pOf0NYy3YOb7iTt.png) Is there an issue with the signature for **has_code_for_group_id()** as it suggests that it takes no parameters - yet the narrative in the meaning does refer to some. --- ## Post #2 by @ian.mcnicoll Archie seemingly interprets that function as having parameters, I think, although not implemented directly as 'has_code_for_group_id()` ``` @Invariant("Current_state_valid") public boolean currentStateValid() { return InvariantUtil.belongsToTerminologyByGroupId(currentState, "instruction states"); } @Invariant("Transition_valid") public boolean transitionValid() { return InvariantUtil.belongsToTerminologyByGroupId(transition, "instruction transitions"); } ``` https://github.com/openEHR/archie/blob/master/openehr-rm/src/main/java/com/nedap/archie/rm/composition/IsmTransition.java --- ## Post #3 by @ian.mcnicoll So perhaps this just needs reported as an error and JIRA SPEC PR --- **Canonical:** https://discourse.openehr.org/t/terminology-functions-in-openehr-terminology-package/6110 **Original content:** https://discourse.openehr.org/t/terminology-functions-in-openehr-terminology-package/6110