Get a list of custom field for Patient

Hello,

I have added some custom fields to the Patient entity.
Is there a way to retrieve a list of the custom fields I added, so I can use them to create a new patient through the API?

Best,
Nikos

Hello @nikos Welcome to the OpenEMR community!
Can you give more information pls?
How did you add the custom fields to the Patient identity? Did you edit a php form, or the Demographics LBF, or some other method?

  • HT

Hello @htuck

Thank you for your reply.
I want to connect OpenEMR with Keragon, a no-code automation platform (I am one of software engineers in Keragon).
We have a client who wants to create a patient as part of their workflow, so we have developed a connector with “default” fields

However, clients also have custom fields. (these can be created through Admin > Forms > Layout). I want to make it easier for them, so I would like to create a similar input for each custom field, allowing them to set those fields easily. So I am looking for a way to get the list of field.

Nikos

Hi @nikos
Thanks for the details that helps know what you’re looking for.
It’s been too long since I was an expert in the details but these forum searches should help. And modifying the search terms can get more focused returns if needed.

which returns mult references including:

That post has brief summary statement of what you’re looking for and a link to more details.

Good luck in your quest!

  • Harley

You can get the fields list from column field_id in the layout_options table by filtering column form_id for entries starting with LBF*

Hello @moussa

I am looking for a way to retrieve them through the API, but it seems that LBF tables are not exposed via the API (as I didn’t see anything related in the Swagger documentation).

Nikos