After removing the ‘built-in’ Visit Note form’s UUID from formentry_app.json I could indeed see that the form was not locked anymore in Configure Metadata \ Manage Forms.
But once unlocked I also saw that it is not added to any UI location, although it appears in the link list of actions for an active visit (on the right menu).
I edited the JSON precisely to then delete the UI location and get rid of the built-in form’s link. So, how can I achieve this?
It is clear from FormEntryAppService#getFormExtensions’s code that when there are no FormResource found for a Form then no Extension will be returned either.
After that it is calling a DAO layer…
It is not clear to me what those FormResource are for and so I don’t really understand why Visit Note would or wouldn’t have any.
@darius When you have a min, I basically just want to find a way to deactivate Visit Note and Vitals. That’s my bottom line…
Thanks!
I’m just peeking at the last 2 messages and not rereading the thread. I think you need to disable the extensions for the vitals and visit note forms, e.g.
If the UI doesn’t let you do this, you can do it in code by calling AppFrameworkService.disableExtension()
Thanks a million Darius, removing the Vitals and Visit Note sections from visitActions_extension.json works, as well as, alternatively, disabling those extensions through our own module’s activator via AppFrameworkService#disableExtension.
Exactly what we needed, cheers.