GET [base]/Device?manufacturer%3Aexact=4ac526f1-657a-4616-a715-9e65236ebd50&model%3Aexact=d8fa28e1-8ef6-4725-b193-f617552b8a92
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDBhYTMyODYtMGU0Ny00YWFiLWI5ZmMtMmM2MzFkYThmMGI2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "278a082c-dd2d-49b6-9cc9-565317d6c7c1",
"meta": {
"lastUpdated": "2020-02-03T12:29:58.228+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://device.local.ehealth.sundhed.dk/fhir/Device?_format=json&_pretty=true&manufacturer%3Aexact=4ac526f1-657a-4616-a715-9e65236ebd50&model%3Aexact=d8fa28e1-8ef6-4725-b193-f617552b8a92"
}
],
"entry": [
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/Device/22",
"resource": {
"resourceType": "Device",
"id": "22",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:29:57.365+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
}
],
"status": "active",
"manufacturer": "4ac526f1-657a-4616-a715-9e65236ebd50",
"model": "d8fa28e1-8ef6-4725-b193-f617552b8a92"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://device.local.ehealth.sundhed.dk/fhir/Device/20",
"resource": {
"resourceType": "Device",
"id": "20",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:29:56.615+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
}
],
"status": "active",
"manufacturer": "4ac526f1-657a-4616-a715-9e65236ebd50",
"model": "d8fa28e1-8ef6-4725-b193-f617552b8a92"
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Device/83/_history/1
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNDc2M2Q0YmUtNjIxMS00NjBmLWIzMjYtMGM0YTRkZWZkNzJjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZU1ldHJpYy5yZWFkIiwiRGV2aWNlLnJlYWQiLCJEZXZpY2VNZXRyaWMud3JpdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "Device",
"id": "83",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:30:21.993+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
}
],
"status": "active"
}
POST [base]/Device
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTFlZGZkM2YtZTYwZi00YmFiLThlMmEtYjRiZWMyMjkxNWEwIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZS5yZWFkIiwiRGV2aWNlLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "Device",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-suppliers",
"extension": [
{
"url": "supplier",
"valueReference": {
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/5278"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/device-supplier-roles",
"code": "TBD"
}
]
}
}
]
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/device-types",
"code": "59181002",
"display": "Oxygen analyser"
}
]
}
}
Response
{
"resourceType": "Device",
"id": "10",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:29:52.234+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-suppliers",
"extension": [
{
"url": "supplier",
"valueReference": {
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/5278"
}
},
{
"url": "role",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/device-supplier-roles",
"code": "TBD"
}
]
}
}
]
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/device-types",
"code": "59181002",
"display": "Oxygen analyser"
}
]
}
}
POST [base]/Device/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZWU3NjcxOTMtODM0NC00ODAwLWI2ZjctYjFjNzk0ODUyMmYyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "Device",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
}
],
"status": "active"
}
}
]
}
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]/Device/60
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjQzNzQ0OWYtYjc3My00M2UyLTg4ZmEtMGVlMzUwOTk4OTQ4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZU1ldHJpYy5yZWFkIiwiRGV2aWNlLnJlYWQiLCJEZXZpY2Uud3JpdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "Device",
"id": "60",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T12:30:14.125+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
}
],
"status": "inactive"
}
Response
{
"resourceType": "Device",
"id": "60",
"meta": {
"versionId": "2",
"lastUpdated": "2020-02-03T12:30:14.976+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
"valueBoolean": true
}
],
"status": "inactive"
}