Possibility of changing a dropdown menu option based the input field

Above image as a reference;

In this when the National Identity Number entered based on specific logic (may be a regular expression evaluates the National Identity Number field) I need to change the Gender dropdown choice automatically.

Lets assume when the National Identity Number field first 3 digits falls below 365 then the gender should be “Male” and above 500 as “Female”.

Is that something achievable using Structured Data Capture Library?

Discussed this at today’s developers call. Try calculated expression in this case: android-fhir/catalog/src/main/assets/behavior_calculated_expression.json at master · google/android-fhir · GitHub

@francis can you share the example you posted?