{
  "resourceType": "StructureDefinition",
  "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-device",
  "name": "FIPHRDevice",
  "title": "Finnish PHR Device profile",
  "status": "draft",
  "description": "Finnish PHR profile device",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "udi",
      "uri": "http://fda.gov/UDI",
      "name": "UDI Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Device.meta",
        "path": "Device.meta",
        "min": 1
      },
      {
        "id": "Device.meta.profile",
        "path": "Device.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Device.meta.profile:fiphrProfile",
        "path": "Device.meta.profile",
        "sliceName": "fiphrProfile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-device"
      },
      {
        "id": "Device.language",
        "path": "Device.language",
        "min": 1
      },
      {
        "id": "Device.text",
        "path": "Device.text",
        "min": 1
      },
      {
        "id": "Device.extension",
        "path": "Device.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Device.extension:MedicalDevice",
        "path": "Device.extension",
        "sliceName": "MedicalDevice",
        "definition": "FinnishPHR: This element indicates whether the device is a medical device. A true value means that the device is a medical device, a false value means that the device is not a medical device.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://phr.kanta.fi/StructureDefinition/fiphr-ext-MedicalDevice"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Device.extension:creatingApplication",
        "path": "Device.extension",
        "sliceName": "creatingApplication",
        "short": "Application identification",
        "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "definition": "Unique instance identifiers assigned to a device by manufacturers other organizations or owners.\r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
        "min": 1
      },
      {
        "id": "Device.identifier.assigner",
        "path": "Device.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Device.definition",
        "path": "Device.definition",
        "max": "0"
      },
      {
        "id": "Device.status",
        "path": "Device.status",
        "max": "0"
      },
      {
        "id": "Device.statusReason",
        "path": "Device.statusReason",
        "max": "0"
      },
      {
        "id": "Device.distinctIdentifier",
        "path": "Device.distinctIdentifier",
        "max": "0"
      },
      {
        "id": "Device.expirationDate",
        "path": "Device.expirationDate",
        "max": "0"
      },
      {
        "id": "Device.lotNumber",
        "path": "Device.lotNumber",
        "max": "0"
      },
      {
        "id": "Device.deviceName",
        "path": "Device.deviceName",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Device.partNumber",
        "path": "Device.partNumber",
        "max": "0"
      },
      {
        "id": "Device.specialization",
        "path": "Device.specialization",
        "max": "0"
      },
      {
        "id": "Device.version",
        "path": "Device.version",
        "max": "0"
      },
      {
        "id": "Device.property",
        "path": "Device.property",
        "max": "0"
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "max": "0"
      },
      {
        "id": "Device.owner",
        "path": "Device.owner",
        "max": "0"
      },
      {
        "id": "Device.contact",
        "path": "Device.contact",
        "max": "0"
      },
      {
        "id": "Device.location",
        "path": "Device.location",
        "max": "0"
      },
      {
        "id": "Device.url",
        "path": "Device.url",
        "max": "0"
      },
      {
        "id": "Device.safety",
        "path": "Device.safety",
        "max": "0"
      },
      {
        "id": "Device.parent",
        "path": "Device.parent",
        "max": "0"
      }
    ]
  }
}