Skip to main content

In the EHR

Practice users complete structured questionnaires from a patient’s clinical profile. Each response holds the answers to the questionnaire’s questions and, for scored questionnaires, the calculated score. See Clinical Profile Guide - Structured Questionnaires.

Working with clinical questionnaire responses via the API

Only the latest response for each patient and questionnaire is returned. When a practice user completes a questionnaire again, the new response replaces the previous one in the chart, so list results hold at most one response per patient and questionnaire. A response that has been replaced or deleted returns 404 on retrieve. Plan to store earlier responses on your side if your workflow needs the history. “Latest” means the most recently recorded response, not the most recent screening_date. screening_date is when the screening took place. Use it to place a response in time, not to decide which response is current. Completing a questionnaire again publishes a clinical_questionnaire_responses event for the new response. The response it replaces is no longer returned, so retrieving it by id returns 404. Treat the event for the new response as the signal to replace what you stored for that patient and questionnaire. An event can reference a response that retrieve returns 404 for. When a patient has more than one undeleted response to the same questionnaire, such as after a chart merge, only the most recently recorded one is returned, while saving any of them still publishes an event. After an event, retrieve the response before you store it, and drop it if the request returns 404. A selected choice is in chosen_answer, and answer is empty. answer holds the value only for answers that are not a selected choice, such as a number or text, and DECLINED_TO_SPECIFY when the patient declined. Read chosen_answer.display_text and chosen_answer.score for a selected choice.

Field notes

  • clinical_form_id, clinical_form_name, clinical_form_category, clinical_form_code and clinical_form_code_system identify the questionnaire that was answered, such as “PHQ-9 Questionnaire”. The product calls it a questionnaire; the API names these fields after the clinical form it is built on.