Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The QuestionnaireResponse endpoint does not currently support search parameters. We expect to implement support the following search parameters in March 2024:

  • subject

  • authored basedOn

  • based-on

  • status

Searching for a QuestionnaireResponse based on subject

...

To search for QuestionnaireResponses related to a particular questionnaire, construct a chained search using the basedOn field based-on search parameter:

Code Block
GET https://aggregated-fhir.sandbox.patientsknowbest.com/fhir/QuestionnaireResponse?basedOnbased-on:ServiceRequest.identifier=QUESTIONNAIRE_ID

...

Note: In previous versions of FHIR, the questionnaire field on a QuestionnaireResponse contained a direct reference to the Questionnaire resource that was sent to the patient. However, this questionnaire field has been replaced in FHIR R4 with a canonical reference, meaning it cannot be used in searches. This is the reason that a chained search on the ServiceRequest is now required.

The field on the QuestionnaireResponse is called basedon, but the search parameter is called based-on. To read more about search parameters, see the FHIR QuestionnaireResponse resource spec.

Searching for a QuestionnaireResponse based on status

...