https://www.opendental.com/site/apipatients.html
PatStatus: Either "Patient", "NonPatient", "Inactive", "Archived", "Deceased", or "Prospective".
PatStatus: Either "Patient", "NonPatient", "Inactive", "Archived", "Deceased", or "Prospective".
OD API intentionally filters out patients with a patStatus of 'Deleted'. However, if you were to use GET /patients/Simple and supply a PK of a deleted patient, the return response message would say, "Patient has been deleted." So, if you had two records that appear 'live' and call them both, the deleted one would return that response message. Then you'd know that PK has been deleted. Another solution is for you is to use a ShortQuery and select patients from the database with a deleted status.saskia wrote: ↑Tue Dec 03, 2024 10:52 amWe pull in patient demographic data via GET /patients/Simple however I can't figure out how we can see if a patient has been deleted. We have some clients who do occasionally delete patients (accidental duplicates usually) but we end up with two records that appear 'live' because I'm not seeing anything to denote them as deleted (so we keep both records). I saw in another forum the patStatus should show deleted, but I'm not seeing that in the documentation. What am I overlooking?
https://www.opendental.com/site/apipatients.html
PatStatus: Either "Patient", "NonPatient", "Inactive", "Archived", "Deceased", or "Prospective".
That is a completely valid question! A patient can only be deleted when they have no procedures, claims, payments, procedures attached to claims, or Commlog entries. Once deleted, the patient cannot be accessed from any portion of the program. Since there is no way to access that patient through Open Dental itself, it was decided to not allow them to be accessed through Open Dentals APIs as well.saskia wrote: ↑Tue Dec 03, 2024 12:41 pmGotcha - not a sexy approach when we're making the regular call to GET /patients/Simple to keep our records up to date. Sounds like we'll need to add a call in to check for deleted status. Dumb question - why not include in that endpoint? Why filter it out? Thanks!