Repository navigation
Find a Doc API
Written against v0.5.4.
The clinical provider layer decides which people are clinical providers and serves them through a read-only JSON API. It mirrors the payload the UAMS Health native app reads. The layer is on by default and PEOPLE_PROVIDER_LAYER=false turns it off (see Provider layer switch).
Both routes use the middleware api and throttle:N,1, where N is find_a_doc_api.rate_limit_per_minute. The add-on applies no authentication to them.
| Method | Path | Returns |
|---|---|---|
| GET | /api/v1/find-a-doc/providers |
{"version": "v1", "data": [provider, ...]} |
| GET | /api/v1/find-a-doc/providers/{provider} |
{"version": "v1", "data": provider} |
{provider} is the person's entry id. An id that is missing, not a person, not eligible, or not searchable answers 404 with "Provider not found or not available." The list is cached for find_a_doc_api.index_cache_ttl seconds; the single-provider route is not cached.
A person is exposed when the entry is published, eligible, and searchable.
| Field | Type |
|---|---|
id, slug
|
string, or null when empty |
url |
absolute URL string, or null when empty |
name |
object with full, full_with_credentials, short_with_prefix, prefix, each a string or null |
credentials |
list of strings |
clinical_title |
string or null |
specialties |
list of clinical_specializations entry slugs |
service_line |
list of strings |
pronouns |
string or null |
appointments |
object with accepting_new_patients and referral_required, both booleans |
is_resident |
boolean |
portrait |
object with headshot and wide, the stored asset paths |
The payload is an allow-list. It never includes an NPI, Epic SER id, Workday id, email, phone, fax or gender.
ClinicalProviderProfileEligibility reads config/clinical_provider_profile.php on every call. A person is eligible when every rule in base passes and at least one entry in paths passes (all of its rules).
Base rules, all required:
-
uams_worker_queryis true -
uams_worker_subtypeisemployee -
uams_employee_subtypeisregular -
trainee_typeis notresident -
trainee_typeis notfellow -
clinical_role_queryis true -
direct_patient_care_queryis true -
clinical_profile_disable_queryis not true -
clinical_locationshas at least one published entry (a location dated in the future counts from its date)
Paths, any one:
-
appointments_and_locations:appointments_queryandappointments_individual_queryare both true. -
clinical_credentials:credentialscontains any ofmd,m-d,do,d-o,dpm,d-p-m,od,o-d,dds,d-d-s,dmd,d-m-d,cnm,c-n-m.
Operators a rule may use: equals, not_equals, not_empty, contains_any and has_published_entry. Text comparisons ignore case, and an unknown operator fails the rule.
Eligibility is also what the provider lens and the clinical_provider_eligible modifier test.
Home | Walkthrough | Guides | Troubleshooting | Reference | README | Repository
Written against v0.5.4. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
Troubleshooting
Reference
- Reference
- Configuration
- Lenses
- Fieldtypes
- Tags and modifiers
- Computed fields
- Control Panel tools
- Find a Doc API
- Blueprints and fieldsets
- Host bindings
- README
Project