QuestionnaireResponse

See FHIR specification

Semantical type

The following methods are tried in order to determine the semantical type of the resource:

  • If the resource contains an extension with system “http://midata.coop/extensions/response-code” and a valueCoding that code will be used as semantical type.
  • If the resource contains a questionnaire reference the platform will try to resolve that reference and take the semantical type from the “code” field of the Questionnaire. This will only work if the referenced Questionnaire is readable using the current access filter.
  • Otherwise the static value “QuestionnaireResponse” is used as semantical type.

Resource owner

If the resource contains a subject which is a Patient or Practitioner that user is the owner of the resource. Otherwise the creator of the resource is the owner.

Default value for “subject”

If a resource with no subject field is send to MIDATA, the backend will set the subject to the current user.

Read

Read a single QuestionnaireResponse by id.

Request:

[GET] /fhir/QuestionnaireResponse/<id>

Read specific version

Read a specific version of a single QuestionnaireResponse by id.

Request:

[GET] /fhir/QuestionnaireResponse/<id>/_history/<version>

Retrieve history

Retrieve all versions of a single resource.

Request:

[GET] /fhir/QuestionnaireResponse/<id>/_history

Search for resources of type QuestionnaireResponse

Request:

[GET] /fhir/QuestionnaireResponse?searchParams

List of supported search parameters:

Supported query parameters:

Name Type Description
_id string The resource identity
_lastUpdated date Only return resources which were last updated as specified by the given range
_page string  
author reference The author of the questionnaire response
authored date When the questionnaire response was last changed
based-on reference Plan/proposal/order fulfilled by this questionnaire response
encounter reference Encounter associated with the questionnaire response
identifier token The unique identifier for the questionnaire response
part-of reference Procedure or observation this questionnaire response was performed as a part of
patient reference The patient that is the subject of the questionnaire response
questionnaire token The questionnaire the answers are provided for
source reference The individual providing the information reflected in the questionnaire respose
status token The status of the questionnaire response
subject reference The subject of the questionnaire response

Create

Create a new resource of type QuestionnaireResponse.

Request:

[POST] /fhir/QuestionnaireResponse

Update

Updates a resource of type QuestionnaireResponse.

Request:

[PUT] /fhir/QuestionnaireResponse/<id>