QuestionnaireResponse
Overview
The QuestionnaireResponse resource represents structured sets of questions and their answers, organized into coherent subsets that correspond to questionnaire groupings. This resource supports clinical assessments, intake forms, and patient-reported outcomes.
Important: Always validate QuestionnaireResponse resource support and available operations by retrieving the current CapabilityStatement from /metadata before implementing integrations.
Resource Schema
The QuestionnaireResponse resource follows the HL7 FHIR R4 QuestionnaireResponse specification.
Key elements include:
identifier- Unique id for this set of answersbasedOn- Request fulfilled by this QuestionnaireResponsepartOf- Part of this actionquestionnaire- Form being answeredstatus- In-progress, completed, amended, entered-in-error, stoppedsubject- The subject of the questionsencounter- Encounter created as part ofauthored- Date the answers were gatheredauthor- Person who received and recorded the answerssource- The person who answered the questionsitem- Groups and questions
Example QuestionnaireResponse Resource
{
"resourceType": "QuestionnaireResponse",
"id": "12345",
"identifier": {
"use": "official",
"system": "http://hospital.example.org/questionnaire-responses",
"value": "QR-2024-001"
},
"questionnaire": "http://hospital.example.org/questionnaires/intake-assessment",
"status": "completed",
"subject": {
"reference": "Patient/12345"
},
"encounter": {
"reference": "Encounter/67890"
},
"authored": "2024-01-15T14:30:00Z",
"author": {
"reference": "Practitioner/67890",
"display": "Dr. John Smith"
},
"source": {
"reference": "Patient/12345"
},
"item": [{
"linkId": "1",
"text": "General Health",
"item": [{
"linkId": "1.1",
"text": "How would you rate your overall health?",
"answer": [{
"valueCoding": {
"system": "http://loinc.org",
"code": "LA13914-0",
"display": "Good"
}
}]
}, {
"linkId": "1.2",
"text": "Do you have any chronic conditions?",
"answer": [{
"valueBoolean": true
}]
}]
}, {
"linkId": "2",
"text": "Medications",
"item": [{
"linkId": "2.1",
"text": "Are you currently taking any medications?",
"answer": [{
"valueBoolean": true
}]
}, {
"linkId": "2.2",
"text": "Please list your current medications",
"answer": [{
"valueString": "Lisinopril 10mg daily, Metformin 500mg twice daily"
}]
}]
}]
}
Supported Profiles
This API supports the following FHIR profiles:
Operations
The General Purpose FHIR R4 QuestionnaireResponse resource supports the following standard operations. However, support varies by the targeted CareRecord or solution.
| CareRecord / Solution | Create | Read | Update | Search |
|---|---|---|---|---|
| GEHRIMED | - | Yes | - | Yes |
| myAvatar | Yes | Yes | Yes | Yes |
| myEvolv | - | Yes | - | Yes |
| myUnity | - | Yes | - | Yes |
| Referral Manager | - | - | - | - |
Search
Not all Netsmart solutions support QuestionnaireResponse search. See supported operations table above and consult your target solution's documentation for more information.
This resource supports a combination of standard and custom search parameters in addition to the common parameters.
Standard Parameters
| Name | Type | Description |
|---|---|---|
| author | reference | The author of the questionnaire response. |
| authored | date | When the questionnaire response was last changed |
| encounter | reference | Unique identifier of the Encounter |
| patient | reference | Unique identifier of the patient |
Custom Parameters
| Name | Type | Description |
|---|---|---|
| questionnaire_type | reference | REQUIRED Category of the Questionnaire. Possible values include: TreatmentPlan. |
| practitioner | reference | OPTIONAL Unique identifier of the Practitioner |
| end | date | Deprecated. Use authored parameter with le prefix instead. |
| start | date | Deprecated. Use authored parameter with ge prefix instead. |
Search Examples
The POST method is recommended as it keeps health information out of the URL.
- Production
- Preview
curl -X POST https://fhir.netsmartcloud.com/v4/QuestionnaireResponse/_search \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123" \
-d "questionnaire_type=intake"
curl -X POST https://fhirtest.netsmartcloud.com/v4/QuestionnaireResponse/_search \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123" \
-d "questionnaire_type=intake"
Error Handling
For information about error responses when working with QuestionnaireResponse resources, see Common Errors.
Common QuestionnaireResponse-related errors include:
- Missing required patient reference
- Invalid questionnaire type parameters
- Malformed response dates
- Invalid author or encounter references
Integration Patterns
Clinical Assessments
Retrieve patient assessment responses:
# Get assessment responses for patient
curl -X GET "https://fhir.netsmartcloud.com/v4/QuestionnaireResponse?patient=12345&questionnaire_type=intake" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Outcome Tracking
Track responses over time:
# Get responses by date range
curl -X GET "https://fhir.netsmartcloud.com/v4/QuestionnaireResponse?patient=12345&authored=ge2024-01-01" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Provider Workflows
Find responses by author:
# Get responses by practitioner
curl -X GET "https://fhir.netsmartcloud.com/v4/QuestionnaireResponse?author=Practitioner/67890" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Encounter-Based Assessments
Retrieve responses from specific encounters:
# Get responses from encounter
curl -X GET "https://fhir.netsmartcloud.com/v4/QuestionnaireResponse?encounter=67890" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Relationships to Other Resources
The QuestionnaireResponse resource connects to several clinical and administrative resources:
- Patient - The individual who provided responses
- Practitioner - Healthcare providers administering questionnaires
- Encounter - Clinical encounters during which assessments occurred
- Observation - Clinical observations derived from responses
- Condition - Health conditions identified through assessments
- CarePlan - Care plans informed by assessment responses
Support
For questions about QuestionnaireResponse resource implementation or clinical assessment workflows, contact Netsmart support through your designated support channels.