Check for a Group Membership
Entities, such as diagnoses, procedures, messages, etc., are grouped into different groups. You can use a predefined method to check if an entity belongs to a group.
Following is an example to check if a procedure belongs to a procedure group:
procedure.inProcedureGroup('MBS_MANDATORY_TIME_ACP')
There is also another way to check for an entity using the SearchBuilder in the following way:
However, this is not the best practice as:
Therefore, it is advisable to use the predefined method to avoid database queries wherever possible. |