GET [base]/DeviceUseStatement?patient=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F84649&when-used=lt2019-08-26
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTg1NDdjOTktMWMwZC00ZmZjLTg1ZTgtMDM3NGNkOThjMjc0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "33201f83-92e0-43a8-8d9e-43c250adb09d",
"meta": {
"lastUpdated": "2020-03-26T10:20:11.054+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F84649&when-used=lt2019-08-26"
}
],
"entry": [
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/139",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "139",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T10:20:10.363+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/21221"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/84649"
},
"whenUsed": {
"start": "2019-03-26T11:20:10+01:00",
"end": "2019-05-26T11:20:10+02:00"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/138"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/141",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "141",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T10:20:10.639+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/8933"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/84649"
},
"whenUsed": {
"start": "2019-07-26T11:20:10+02:00",
"end": "2019-09-26T11:20:10+02:00"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/140"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/DeviceUseStatement/149/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNTZlZjMyYjAtNjE0Ny00YzVkLTgyY2QtZDNiOTNiYmNjMGQ4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC84NDY0OSJ9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "DeviceUseStatement",
"id": "149",
"meta": {
"versionId": "2",
"lastUpdated": "2020-03-26T10:20:12.496+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/77308"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/84649"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/148"
}
}
POST [base]/DeviceUseStatement
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTUzNjRmMjMtYWFhMi00NDE4LWJlZTQtNzY3NGQ4MzJlOWJlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL1BhdGllbnQvNjcwODkifSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "DeviceUseStatement",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/69018"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/67089"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/163"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "165",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T10:20:15.371+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/69018"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/67089"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/163"
}
}
POST [base]/DeviceUseStatement/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMWEwMmJkNjEtMzI0OS00MTM3LTkwOWEtNWMyMDI1NjcyODRmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "DeviceUseStatement",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/89328"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/79665"
},
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/84649"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/155"
}
}
}
]
}
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"
}
]
}
PUT [base]/DeviceUseStatement/149
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNTZlZjMyYjAtNjE0Ny00YzVkLTgyY2QtZDNiOTNiYmNjMGQ4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC84NDY0OSJ9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
If-Match: "1"
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": "DeviceUseStatement",
"id": "149",
"meta": {
"versionId": "1",
"lastUpdated": "2020-03-26T10:20:12.174+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/77308"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/84649"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/148"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "149",
"meta": {
"versionId": "2",
"lastUpdated": "2020-03-26T10:20:12.496+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/77308"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/84649"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/148"
}
}