GET [base]/DeviceUseStatement?patient=https%3A%2F%2Fpatient.local.ehealth.sundhed.dk%2Ffhir%2FPatient%2F668&when-used=lt2019-07-03
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmY5NDI5OWMtNTRmZS00NGViLWE3YzAtMzg4NzE4NWI0ZmYxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "216661d5-42b1-4394-b986-08bae05ef5ff",
"meta": {
"lastUpdated": "2020-02-03T12:30:41.560+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%2F668&when-used=lt2019-07-03"
}
],
"entry": [
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/142",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "142",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:30:40.727+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/60713"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"whenUsed": {
"start": "2019-02-03T13:30:40+01:00",
"end": "2019-04-03T13:30:40+02:00"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/141"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/DeviceUseStatement/144",
"resource": {
"resourceType": "DeviceUseStatement",
"id": "144",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:30:41.042+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/68016"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"whenUsed": {
"start": "2019-06-03T13:30:40+02:00",
"end": "2019-08-03T13:30:40+02:00"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/143"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/DeviceUseStatement/152/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOTRhZTMzNmUtZTNjMi00MWIwLWFkMGQtZTg3ZDdlNzg4NDMxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC82NjgifSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "2020-02-03T12:30:42.817+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/19552"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/151"
}
}
POST [base]/DeviceUseStatement
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjM0ZTFmMmEtZmQyOC00NGQ2LTgxYzktOWViYjIyNjM0OTJmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmxvY2FsLmVoZWFsdGguc3VuZGhlZC5kay9maGlyL1BhdGllbnQvNjY4In0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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/6280"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/114"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "115",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:30:33.022+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/6280"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/114"
}
}
POST [base]/DeviceUseStatement/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTU4ZGMwYTgtYmE1MS00MGNmLTkwZjUtMDRiMmE2MDFiMDU5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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/92459"
}
}
],
"status": "active",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/72099"
},
"source": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"device": {
"reference": "https://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>\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/152
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOTRhZTMzNmUtZTNjMi00MWIwLWFkMGQtZTg3ZDdlNzg4NDMxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQubG9jYWwuZWhlYWx0aC5zdW5kaGVkLmRrL2ZoaXIvUGF0aWVudC82NjgifSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "2020-02-03T12:30:42.640+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/19552"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/151"
}
}
Response
{
"resourceType": "DeviceUseStatement",
"id": "152",
"meta": {
"versionId": "2",
"lastUpdated": "2020-02-03T12:30:42.817+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/19552"
}
}
],
"status": "completed",
"subject": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/668"
},
"device": {
"reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/151"
}
}