GET [base]/QuestionnaireResponse
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYWNhMjRiMjAtMTViNC00NGVkLThiNzQtODc1ZGRhYTQ0OTkxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIk9ic2VydmF0aW9uLnNlYXJjaCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "ba60b17d-942d-4cd0-83b9-84acd765baea",
"meta": {
"lastUpdated": "2020-12-21T12:42:08.703+00:00",
"tag": [
{
"system": "http://hl7.org/fhir/v3/ObservationValue",
"code": "SUBSETTED",
"display": "Resource encoded in summary mode"
}
]
},
"type": "searchset",
"total": 71
}
GET [base]/QuestionnaireResponse?subject=https%3A%2F%2Fpatient.cit-measurement-1150.local%2Ffhir%2FPatient%2F89836&_revinclude=Provenance%3Atarget
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmFlMjlmZWQtNDMwNi00MGFhLTljZjUtYWYzYTM5M2MyNWU2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIk9ic2VydmF0aW9uLnNlYXJjaCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "bc387400-4066-4dff-aef5-51d5c174746f",
"meta": {
"lastUpdated": "2020-12-21T12:42:12.627+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://measurement.cit-measurement-1150.local/fhir/QuestionnaireResponse?_format=json&_pretty=true&_revinclude=Provenance%3Atarget&subject=https%3A%2F%2Fpatient.cit-measurement-1150.local%2Ffhir%2FPatient%2F89836"
}
],
"entry": [
{
"fullUrl": "https://measurement.cit-measurement-1150.local/fhir/QuestionnaireResponse/531",
"resource": {
"resourceType": "QuestionnaireResponse",
"id": "531",
"meta": {
"versionId": "1",
"lastUpdated": "2020-12-21T12:42:12.374+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse"
]
},
"basedOn": [
{
"reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/3142"
}
],
"questionnaire": {
"reference": "https://questionnaire.cit-measurement-1150.local/fhir/Questionnaire/82863"
},
"status": "completed",
"subject": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/89836"
},
"context": {
"reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/31093"
},
"authored": "2020-12-21T12:42:12+00:00",
"source": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/12415"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://measurement.cit-measurement-1150.local/fhir/Provenance/532",
"resource": {
"resourceType": "Provenance",
"id": "532",
"meta": {
"versionId": "1",
"lastUpdated": "2020-12-21T12:42:12.513+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance"
]
},
"target": [
{
"reference": "https://measurement.cit-measurement-1150.local/fhir/QuestionnaireResponse/531"
}
],
"recorded": "2020-12-21T12:42:12.467+00:00",
"policy": [
"policy"
],
"agent": [
{
"whoReference": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/2602"
}
}
]
},
"search": {
"mode": "include"
}
}
]
}
GET [base]/QuestionnaireResponse/498/_history/1
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjY5NjMxNGYtZmJiNy00YjIzLTgwOTEtZTY0NzUxZWFmZDdlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIk9ic2VydmF0aW9uLnNlYXJjaCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "QuestionnaireResponse",
"id": "498",
"meta": {
"versionId": "1",
"lastUpdated": "2020-12-21T12:41:57.327+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse"
]
},
"basedOn": [
{
"reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/66157"
}
],
"questionnaire": {
"reference": "https://questionnaire.cit-measurement-1150.local/fhir/Questionnaire/80196"
},
"status": "completed",
"subject": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/74534"
},
"context": {
"reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/91264"
},
"authored": "2020-12-21T12:41:57+00:00",
"source": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/83705"
}
}
POST [base]/QuestionnaireResponse/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNzI2ZjQzZWQtYmNhNC00MTIwLWE0MzYtZmNiMjc1NGJhOTJkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIk9ic2VydmF0aW9uLnNlYXJjaCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "QuestionnaireResponse",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse"
]
},
"basedOn": [
{
"reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/57158"
}
],
"questionnaire": {
"reference": "https://questionnaire.cit-measurement-1150.local/fhir/Questionnaire/96983"
},
"status": "completed",
"subject": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/49715"
},
"context": {
"reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/73326"
},
"authored": "2020-12-21T12:42:14+00:00",
"source": {
"reference": "https://patient.cit-measurement-1150.local/fhir/Patient/768"
}
}
}
]
}
Response
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr></table></div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
},
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
}
]
}