How do we build our QuestionnaireResponse and what are the limits?

John Wade -

Short answer: Send one transaction Bundle per patient to the Command API, containing your QuestionnaireResponse and, if you need one, a single attachment. Keep free text under 6,000 characters, use plain keyboard characters and keep attachments to 3 MB.

What to send

  • A transaction Bundle to <Command API base>/clinical/ containing the QuestionnaireResponse. For an attachment, add a DocumentReference and a Binary.
  • One patient per request. There's no bulk endpoint, so loop through your patients and stay within your usage plan.
  • Answers that match the Questionnaire we've set up for you: its linkIds, value types and required items. The example request we send you shows the structure.

How each field appears in the record

In the record Comes from
Author (EMIS Web "Authorising user" and "Created by"; SystmOne "Done by") The practice's API user, not your payload or your token. The QuestionnaireResponse author is kept for audit. If the clinician's name must appear, include it in the note text. See Why entries written back are recorded against the API user.
Date QuestionnaireResponse.authored. It can be in the past.
Code and term The SNOMED CT coding required.
Attachment type These are filed with SNOMED CT 823941000000103 (Third party document). You don't set this code.
Attachment title and file name Set in your submission.

Codes

  • Send SNOMED CT concept IDs with the system http://snomed.info/sct, not description IDs.
  • Some codes are set to be written once per patient: if the patient already has the code, it isn't written again. This is a setting on our side, so ask us if you need it changed.
  • If SystmOne rejects a code (for example "Invalid clinical code or coding system in ClinicalCode"), nothing from that write is filed, including the note. Test new codes on Beta first.

Status

status Use it for Written to the record?
in-progress A draft you'll come back to No
completed The final submission Yes

entered-in-error doesn't withdraw an earlier entry. It's written to the record in the same way as completed.

Limits

Item Limit
Free text Under 6,000 characters.
Characters SystmOne accepts plain ASCII only. Accented letters, emoji, curly quotes and long dashes appear as "?". Letters, digits and standard keyboard punctuation are safe.
Line breaks Line breaks are accepted in Emis. For SystmOne, the practice will need at least version 2.0 of our responder service.
Attachments One per write, up to 3 MB. A larger request is rejected with 413 {"message":"Request Too Long"} and nothing is written.

Changing or resending

  • Every accepted submission creates a new entry, even with the same QuestionnaireResponse ID.
  • To change or remove an entry, edit it in the clinical system.

For when and how entries arrive, see Our write-back returned 200. Where does it go, and did it arrive?

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk