GET [base]/DeviceUseStatement?patient=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F30775&when-used=lt2019-09-29
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjk1ZmU4YWMtYzcyYS00NzNiLWJhOTgtNDQzODdmMTllMjcwIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "575dce08-78d7-439b-b7c6-83aa53b56ec1",
"meta": {
"lastUpdated": "2020-04-29T19:34:16.779+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%2F30775&when-used=lt2019-09-29"
}
],
"entry": [
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/153",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "153",
"meta": {
"versionId": "1",
"lastUpdated": "2020-04-29T19:34:15.649+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/53883"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/30775"
},
"whenUsed": {
"start": "2019-04-29T21:34:15+02:00",
"end": "2019-06-29T21:34:15+02:00"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/152"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/155",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "155",
"meta": {
"versionId": "1",
"lastUpdated": "2020-04-29T19:34:16.087+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/27802"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/30775"
},
"whenUsed": {
"start": "2019-08-29T21:34:15+02:00",
"end": "2019-10-29T21:34:15+01:00"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/154"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/DeviceUseStatement/163/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNTdkMDVhYWUtYTIxOC00NzIzLWI2NzUtNGNiOWJhYjQ4ZDQ1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC8zMDc3NSJ9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "163",
"meta": {
"versionId": "2",
"lastUpdated": "2020-04-29T19:34:17.900+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/35960"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/30775"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/162"
}
}
POST [base]/DeviceUseStatement
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDZjMzJkMGUtZTk1Yy00ZDc5LWJjYjktYzJkNzc5OWRjN2VjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL1BhdGllbnQvODIwODYifSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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/59710"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/82086"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/177"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "179",
"meta": {
"versionId": "1",
"lastUpdated": "2020-04-29T19:34:20.761+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/59710"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/82086"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/177"
}
}
POST [base]/DeviceUseStatement/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTJhYTA4NjYtMjUyMC00ZDQyLTkwMDktMThmNDQwZmIwYTZkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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/2514"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/41159"
},
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/30775"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/169"
}
}
}
]
}
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/163
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNTdkMDVhYWUtYTIxOC00NzIzLWI2NzUtNGNiOWJhYjQ4ZDQ1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC8zMDc3NSJ9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "163",
"meta": {
"versionId": "1",
"lastUpdated": "2020-04-29T19:34:17.713+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/35960"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/30775"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/162"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "163",
"meta": {
"versionId": "2",
"lastUpdated": "2020-04-29T19:34:17.900+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/35960"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/30775"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/162"
}
}