GET [base]/QuestionnaireResponse/524
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2NkMjhjMzYtZjljNC00YWEzLWFlZjAtODVmOGQzYzE1MGQ5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "QuestionnaireResponse",
"id": "524",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T11:12:25.438+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse"
]
},
"basedOn": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ProcedureRequest/69647"
}
],
"parent": [
{
"reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/523"
}
],
"questionnaire": {
"reference": "https://questionnaire.local.ehealth.sundhed.dk/fhir/Questionnaire/97727"
},
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/10185"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/74034"
},
"authored": "2020-03-26T12:12:25+01:00",
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/51107"
}
}
GET [base]/QuestionnaireResponse?subject=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F63637
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2NkMjhjMzYtZjljNC00YWEzLWFlZjAtODVmOGQzYzE1MGQ5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "0d38cfa1-cb66-407f-896e-b2782dcf47ac",
"meta": {
"lastUpdated": "2020-03-26T11:12:25.903+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://measurement.local.ehealth.sundhed.dk/fhir/QuestionnaireResponse?_format=json&_pretty=true&subject=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F63637"
}
],
"entry": [
{
"fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/QuestionnaireResponse/526",
"resource": {
"resourceType": "QuestionnaireResponse",
"id": "526",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T11:12:25.758+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse"
]
},
"basedOn": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ProcedureRequest/47134"
}
],
"parent": [
{
"reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/525"
}
],
"questionnaire": {
"reference": "https://questionnaire.local.ehealth.sundhed.dk/fhir/Questionnaire/21260"
},
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/63637"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/62001"
},
"authored": "2020-03-26T12:12:25+01:00",
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/36970"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/QuestionnaireResponse/238/_history/1
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMmRjZTJhNDAtMDE0Yi00MzkzLWJjZDItMjdmNDA4MTYxOTQ0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlF1ZXN0aW9ubmFpcmVSZXNwb25zZS5yZWFkIl19LCJjb250ZXh0Ijp7ImNhcmVfdGVhbV9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL0NhcmVUZWFtLzc4ODMiLCJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL0VwaXNvZGVPZkNhcmUvMTI2MDQifSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "QuestionnaireResponse",
"id": "238",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T11:11:06.101+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse"
]
},
"basedOn": [
{
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ProcedureRequest/66383"
}
],
"questionnaire": {
"reference": "https://questionnaire.local.ehealth.sundhed.dk/fhir/Questionnaire/54676"
},
"status": "completed",
"subject": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/7222"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/12604"
},
"authored": "2020-03-26T12:11:06+01:00",
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/10287"
}
}
POST [base]/QuestionnaireResponse/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMzFkMmRiMzItOWViYy00OTY0LTkwYmEtNzViMmU1MjUyMjgzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlF1ZXN0aW9ubmFpcmVSZXNwb25zZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/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.local.ehealth.sundhed.dk/fhir/ProcedureRequest/69970"
}
],
"questionnaire": {
"reference": "https://questionnaire.local.ehealth.sundhed.dk/fhir/Questionnaire/95883"
},
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/89718"
},
"context": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/3876"
},
"authored": "2020-03-26T12:11:07+01:00",
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/16418"
}
}
}
]
}
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>\r\r\r</tr>\r<tr>\r<td style=\"font-weight: bold;\">INFORMATION</td>\r<td>[]</td>\r\r\r\r<td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r</table>\r</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
},
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
}
]
}