Due to the current changes introduced by the Bootstrap integrations, including the switch to jQuery 3.4, the use of jQuery.getJSON(....).success() throws exceptions and breaks the UI when used. This is evident with the visit script.
To do. Change occurrences of jQuery.getJSON(....).success() to jQuery.getJSON(....).done() and also any .error() occurrence on the returned promise to .fail()
Related topic on talk: https://talk.openmrs.org/t/missing-patientid/26552