GET [base]/DeviceUseStatement?patient=http%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F67371&when-used=lt2019-04-04
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMzk1NGJkNzUtODFlNy00ZjY2LThjNGEtYmMyODNlNjUyYzhjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "c90962f8-c5d1-45ab-8424-f485f68a89a7",
"meta": {
"lastUpdated": "2019-11-04T20:07:24.670+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "http://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=http%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F67371&when-used=lt2019-04-04"
}
],
"entry": [
{
"fullUrl": "http://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/144",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "144",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:07:24.226+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/46119"
}
}
],
"status": "active",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"whenUsed": {
"start": "2019-03-04T21:07:23+01:00",
"end": "2019-05-04T21:07:23+02:00"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/143"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "http://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/142",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "142",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:07:23.951+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/15479"
}
}
],
"status": "active",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"whenUsed": {
"start": "2018-11-04T21:07:23+01:00",
"end": "2019-01-04T21:07:23+01:00"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/141"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/DeviceUseStatement/152/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTZkMTkwNmMtNWJjYS00NTMyLThjMGMtYjg5OTRjNmVlOTg3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwOi8vcGF0aWVudC5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QYXRpZW50LzY3MzcxIn0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "152",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T20:07:25.693+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/90801"
}
}
],
"status": "completed",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/151"
}
}
POST [base]/DeviceUseStatement
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNDM1NmEwZTAtYzlmZS00NjcwLTgxOGYtNjIyZWZhYjE5ODMxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cDovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC82NzM3MSJ9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/91954"
}
}
],
"status": "active",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/114"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "115",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:07:19.742+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/91954"
}
}
],
"status": "active",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/114"
}
}
POST [base]/DeviceUseStatement/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjMzYTgxYjktNTFjYy00M2IxLTg3NmItMjczY2QyZWRjZTAwIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/7564"
}
}
],
"status": "active",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/44128"
},
"source": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/158"
}
}
}
]
}
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"
}
]
}
PUT [base]/DeviceUseStatement/152
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTZkMTkwNmMtNWJjYS00NTMyLThjMGMtYjg5OTRjNmVlOTg3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwOi8vcGF0aWVudC5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QYXRpZW50LzY3MzcxIn0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "152",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:07:25.553+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/90801"
}
}
],
"status": "completed",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/151"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "152",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T20:07:25.693+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
"valueReference": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/90801"
}
}
],
"status": "completed",
"subject": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67371"
},
"device": {
"reference": "http://device.local.ehealth.sundhed.dk/fhir/Device/151"
}
}