API PatFieldDefs

See API Specification

Patient Field Defs allow you to organize fields that are found in various areas of Open Dental such as the Patient Information area of the Family Module, Account Module, and Chart Module. As of version 24.1, the PickList field has been deprecated in favor of PatFieldPickItem objects. However, to preserve functionality, this field is still allowed in the POST and PUT; it will just create new or update existing PatFieldPickItems instead. PickList will always be an empty string in the database.

PatFieldDefs GET

Version Added: 22.4.9

Gets a list of patfielddefs.

Example Request
GET /patfielddefs

Example Response:
[
{
"PatFieldDefNum": 7,
"FieldName": "Outstanding",
"FieldType": "Currency",
"PickList": "",
"IsHidden": "false"
},
{
"PatFieldDefNum": 8,
"FieldName": "Ortho Status",
"FieldType": "PickList",
"PickList": "In Progress\r\nDone"
"IsHidden": "false"
},
{
"PatFieldDefNum": 11,
"FieldName": "Accommodations",
"FieldType": "Text",
"PickList": ""
"IsHidden": "false"
}
]

200 OK

PatFieldDefs POST (create)

Version Added: 23.3.26

Creates a patfielddef.

FieldName: Required. Name of the field. Must be unique.
FieldType: Required. Either "Text", "PickList", "Date", "Checkbox", "Currency", or "CareCreditStatus", "CareCreditPreApprovalAmt" (Added in version 24.1), or "CareCreditAvailableCredit" (Added in version 24.1).
PickList: Required if FieldType is "PickList". Otherwise, not allowed. Each item in the list must be separated by a \r\n.

IsHidden: Optional. Either "true" or "false". Default "false".

Example Request:
POST /patfielddefs

{
"FieldName": "Favorite Color",
"FieldType": "PickList",
"PickList": "Red\r\nBlue\r\nYellow"
}

Example Response:
{
"PatFieldDefNum": 16,
"FieldName": "Favorite Color",
"FieldType": "PickList",
"PickList": ""
"IsHidden": "false"
}

201 Created
400 BadRequest (with explanation)

PatFieldDefs PUT (update)

Version Added: 23.3.26

Updates a patfielddef.

PatFieldDefNum: Required in the URL.

FieldName: Name of the field. Cannot be changed for in-use CareCredit fields. Must be unique.
FieldType: Either "Text", "PickList", "Date", "Checkbox", "Currency", "CareCreditStatus", "CareCreditPreApprovalAmt" (Added in version 24.1), or "CareCreditAvailableCredit" (Added in version 24.1).
PickList: Only allowed if FieldType is "PickList". Each item in the list must be separated by a \r\n.
IsHidden: Either "true" or "false".

Example Requests:
PUT /patfielddefs/16

{
"PickList": "Red\r\nBlue\r\nYellow\r\nGreen"
}

Example Response:
{
"PatFieldDefNum": 16,
"FieldName": "Favorite Color",
"FieldType": "PickList",
"PickList": "Red\r\nBlue\r\nYellow\r\nGreen",
"IsHidden": "false"
}

200 OK
400 BadRequest (with explanation)
404 NotFound (with explanation)

PatFieldDefs DELETE

Version Added: 23.3.26

Deletes a patfielddef. Cannot delete a patfielddef that is in use.

PatFieldDefNum: Required in the URL.

Example Request:
DELETE /patfielddefs/16

Example Responses:
200 OK
400 BadRequest (with explanation)
404 NotFound (with explanation)