{
  "resourceType": "StructureDefinition",
  "id": "767d934b-03fa-4657-bd60-658de803b27b",
  "meta": {
    "lastUpdated": "2020-11-24T20:42:38.12+00:00"
  },
  "url": "http://nhn.no/kj/fhir/StructureDefinition/KjDevice",
  "name": "KjDevice",
  "status": "active",
  "date": "2020-11-24T20:22:06.3173977Z",
  "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",
  "differential": {
    "element": [
      {
        "id": "Device.type",
        "path": "Device.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.type.coding",
        "path": "Device.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Device.type.coding:ImplantsAndOtherForeignBodies",
        "path": "Device.type.coding",
        "sliceName": "ImplantsAndOtherForeignBodies",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://nhn.no/kj/fhir/ValueSet/Devices"
        }
      },
      {
        "id": "Device.type.coding:ImplantsAndOtherForeignBodies.system",
        "path": "Device.type.coding.system",
        "min": 1,
        "fixedUri": "http://nhn.no/kj/fhir/CodeSystem/ImplantsAndOtherForeignBodies"
      },
      {
        "id": "Device.note",
        "path": "Device.note",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.note.text",
        "path": "Device.note.text",
        "constraint": [
          {
            "key": "kj-dev-1",
            "severity": "error",
            "human": "Text can be maximum 80 characters",
            "expression": "value.length() <= 80",
            "source": "http://nhn.no/kj/fhir/StructureDefinition/KjDevice"
          }
        ]
      }
    ]
  }
}