Hello, is there a way to make the MRN generate automatically during the creation of a patient record in “senaite.patient”?
Having a patient registration number is mandatory here.
I saw that it is possible to create a patient record directly from the new sample form and use the “temporary” checkbox to generate an MRN automatically, but in our case, the number needs to be generated automatically in the senaite.patient form and must be permanent, not temporary.
I’m interested too, or if there is a way to completly remove it.
Due to the lack of response from this community, I was forced to find an alternative on my own that met my urgent need.
Senaite already generates a patient number automatically, but this number is only visible in the URL, as shown below:
/senaite/patients/P000025?_authenticator=bfa0ed7da43758
In my case, the solution was to create some code to automatically copy this P000025 into the MRN field of the senaite.patient add-on.
Most people don’t have a clue either, i wish I could help too. I tried disabling the number in add on settings but it creates a lot of bugs and you can no longer see samples from a specific patient
Yes, the MRN field is tied to several other internal codes in Senaite’s logic. I faced the same issue you did.

