Creating a utility function that can help find if an extension exists in a particular Questionnaire.Item #200
kunjan8794
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
@jingtang10 has suggested that the return value can be the extension itself or null - that's better it seems |
Beta Was this translation helpful? Give feedback.
0 replies
-
great idea! might be worth looking into kotlin extension function |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We can create a utility function that can be useful for finding if the Questionnaire.Item has a particular extension.
It can go like a simple function for example, named --> hasExtension(extensionName) which can return a boolean value showing whether the extension exists.
This can significantly reduce redundant code for finding extensions' existence(!) maybe that would be written for every possible validation check
@jingtang10 @joiskash
Beta Was this translation helpful? Give feedback.
All reactions