Marley healthcare app "Can't override the idx of standard fields in patient quick form"

I am trying to customize the Patient Quick Entry Form. By default, the First Name field has idx = 1 and Last Name has idx = 2. Normally, you would simply use Customize Form, swap the field order, and be done. However, that didn’t work.

I suspected the Quick Entry form was hardcoded, and after checking the Healthcare app, I confirmed that it is. The Healthcare app defines its own Patient Quick Entry layout in JavaScript, which ignores the field order configured through Customize Form.

To override this behavior, I created my own JavaScript implementation in my custom app (under the public/js folder) and included it through app_include_js in hooks.py. However, nothing changed.

After further investigation, I found that the Healthcare app’s assets are loaded before my app’s assets, so its Quick Entry class is registered first and my override is never applied.

Is there a proper way to override this specific Quick Entry implementation? Specifically, how can I ensure that my custom JavaScript replaces or extends the Healthcare app’s hardcoded Patient Quick Entry class instead of the original one being used?

what are you trying to achieve? merely change the field order?

btw, you can control the installed apps’ resolution order, please check this post