Chief Complaints
Search
Section titled “Search”MD Live offers the ability to search against a list of chief complaints to be used for offering auto-complete suggestions as a patient is scheduling a visit.
HTTP Request
Section titled “HTTP Request”GET {server_url}/api/v1/patients/chief_complaints
This request must include a valid User JWT token, please see our documentation
Header Parameter
Section titled “Header Parameter”| Parameter | Default |
|---|---|
| Content-type | application/json |
| Authorization | Bearer {jwt_token} |
The following parameters are accepted when searching chief complaints.
Request Body
Section titled “Request Body”| Attribute | Required | Description |
|---|---|---|
| search | true | parent attribute for search criteria |
| ↳ term | true | The term to match (string) |
| ↳ language | false | Options are ‘EN’ (English) and ‘ES’ (Spanish), default language is English |
| ↳ limit | false | Limit size of the result set, default size is 10 |
Example Request
Section titled “Example Request”curl -X GET {server_url}/api/v1/patients/chief_complaints-H "Content-type: application/json" \-H "Authorization: Bearer {jwt_token}" \-H 'Accept: application/json' \-d '{ "search": { "term": "throat", "language": "EN", "limit": "3" } }'RestClient::Request.new( :method => :get, :url => "{server_url}/api/v1/patients/chief_complaints", :headers => { "Content-type" => "application/json", "Authorization" => "Bearer {jwt_token}", "Accept" => "application/json" }, :payload => { "search"=> { "term"=> "throat", "language"=> "EN", "limit"=> "3" } }).executeExample Response
Section titled “Example Response”{ "chief_complaints": [ { "id": 896, "concept_id": 64, "ccc": true, "dx": true, "alternate_term": "Painful Throat", "title": "Throat pain (sore throat)", "title_plain_language": "Throat pain (sore throat)", "title_spanish": null, "icd9": "784.1", "icd10": "R07.0", "snomed": "267102003", "language_id": 1, "request_image": 2, "image_required": true, "alternate_term_english_version": "Painful Throat", "frequency": 103112, "created_at": "2021-07-23T01:26:08.582-04:00", "updated_at": "2021-07-23T01:26:08.582-04:00", "active": true, "suggestable_alternate_term": "Painful Throat", "is_blocked": false, "escalation_level": null, "rejectable_chief_complaint_id": null }, { "id": 901, "concept_id": 64, "ccc": true, "dx": true, "alternate_term": "Sore Throat", "title": "Throat pain (sore throat)", "title_plain_language": "Throat pain (sore throat)", "title_spanish": null, "icd9": "784.1", "icd10": "R07.0", "snomed": "267102003", "language_id": 1, "request_image": 2, "image_required": true, "alternate_term_english_version": "Sore Throat", "frequency": 103112, "created_at": "2021-07-23T01:26:08.582-04:00", "updated_at": "2021-07-23T01:26:08.582-04:00", "active": true, "suggestable_alternate_term": "Sore Throat", "is_blocked": false, "escalation_level": null, "rejectable_chief_complaint_id": null }, { "id": 906, "concept_id": 64, "ccc": true, "dx": true, "alternate_term": "Throat Hurts", "title": "Throat pain (sore throat)", "title_plain_language": "Throat pain (sore throat)", "title_spanish": null, "icd9": "784.1", "icd10": "R07.0", "snomed": "267102003", "language_id": 1, "request_image": 2, "image_required": true, "alternate_term_english_version": "Throat Hurts", "frequency": 103112, "created_at": "2021-07-23T01:26:08.582-04:00", "updated_at": "2021-07-23T01:26:08.582-04:00", "active": true, "suggestable_alternate_term": "Throat Hurts", "is_blocked": false, "escalation_level": null, "rejectable_chief_complaint_id": null } ]}