eHealth Infrastructure (v2019.5.1)

StructureDefinition: ehealth-device

This resource identifies an instance or a type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. Medical devices include durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. Non-medical devices may include items such as a machine, cellphone, computer, application, etc.

REST API Examples

Create Device

Create a simple Device resource with manufacturer and model:

POST /hapi-fhir-server/baseDstu3/Device/ 

Content-Type: application/fhir+json

{
    "resourceType": "Device",
    "manufacturer": "Vitalograph",
    "model": "Alpha IV"
}

If this create operation goes well, the server responds with HTTP status 201 Created, and a response like this:

X-FHIR-Request-Validation: No issues detected
Location: http://localhost:31000/hapi-fhir-server/baseDstu3/Device/1955/_history/1
Content-Type: application/fhir+json;charset=utf-8

{
    "resourceType": "Device",
    "id": "1955",
    "meta": {
        "versionId": "1",
        "lastUpdated": "2019-02-27T13:20:12.511+00:00"
    },
    "manufacturer": "Vitalograph",
    "model": "Alpha IV"
}

Create a privately owned Device

Create a Device similar to the above, but using an extension field to mark it as “privately owned”:

POST /hapi-fhir-server/baseDstu3/Device/ HTTP/1.1

Content-Type: application/fhir+json

{
    "resourceType": "Device",
    "extension": [
      {
        "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
        "valueBoolean": true
      }
    ],
    "manufacturer": "Vitalograph",
    "model": "Alpha IV"
}

which yields this response:

X-FHIR-Request-Validation: No issues detected
Location: http://localhost:31000/hapi-fhir-server/baseDstu3/Device/1956/_history/1
Content-Type: application/fhir+json;charset=utf-8

{
  "resourceType": "Device",
  "id": "1956",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-02-27T13:26:19.406+00:00"
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned",
      "valueBoolean": true
    }
  ],
  "manufacturer": "Vitalograph",
  "model": "Alpha IV"
}

Formal Views of Profile Content

The official URL for this profile is:

http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device

This profile builds on Device.

This profile was published on Thu May 16 12:32:10 UTC 2019 as a draft by ehealth.sundhed.dk.

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

 

Terminology Bindings

PathNameConformanceValueSet
Device.languageCommon LanguagesextensibleCommon Languages
Device.udi.entryTypeUDIEntryTyperequiredUDIEntryType
Device.statusFHIRDeviceStatusrequiredFHIRDeviceStatus
Device.typeDeviceTypesrequiredDeviceTypes
Device.safetyDeviceSafetyexampleDeviceSafety

Constraints

IdPathDetailsRequirements
dom-2DeviceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-1DeviceIf the resource is contained in another resource, it SHALL NOT contain any narrative
: contained.text.empty()
dom-4DeviceIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-3DeviceIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
ele-1Device.udiAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
.