{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.catsalut.cat/r4/mConnectaHES/StructureDefinition/HESConnecta-Device",
  "name": "HESConnecta_Device",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Device.definition",
        "path": "Device.definition",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.status",
        "path": "Device.status",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.definition.reference",
        "path": "Device.definition.reference",
        "min": 1
      },
      {
        "id": "Device.udiCarrier",
        "path": "Device.udiCarrier",
        "mustSupport": true,
        "min": 1,
        "max": "1"
      },
      {
        "id": "Device.statusReason",
        "path": "Device.statusReason",
        "mustSupport": true
      },
      {
        "id": "Device.manufactureDate",
        "path": "Device.manufactureDate",
        "mustSupport": true
      },
      {
        "id": "Device.lotNumber",
        "path": "Device.lotNumber",
        "mustSupport": true
      },
      {
        "id": "Device.serialNumber",
        "path": "Device.serialNumber",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.deviceName",
        "path": "Device.deviceName",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.modelNumber",
        "path": "Device.modelNumber",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://emdn.europa.eu"
        }
      },
      {
        "id": "Device.type.coding",
        "path": "Device.type.coding",
        "min": 1
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.patient.identifier",
        "path": "Device.patient.identifier",
        "min": 1
      },
      {
        "id": "Device.patient.identifier.type.coding.code",
        "path": "Device.patient.identifier.type.coding.code",
        "fixedCode": "CIP-CatSalut"
      },
      {
        "id": "Device.patient.identifier.type.coding.display",
        "path": "Device.patient.identifier.type.coding.display",
        "fixedString": "Codi d'identificació personal únic del Servei Català de la Salut (CIP-CatSalut)"
      },
      {
        "id": "Device.patient.identifier.system",
        "path": "Device.patient.identifier.system",
        "fixedUri": "urn:oid:2.16.724.4.9.10.1"
      },
      {
        "id": "Device.owner",
        "path": "Device.owner",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.owner.reference",
        "path": "Device.owner.reference",
        "mustSupport": true
      },
      {
        "id": "Device.owner.identifier",
        "path": "Device.owner.identifier",
        "min": 1
      },
      {
        "id": "Device.owner.identifier.system",
        "path": "Device.owner.identifier.system",
        "fixedUri": "urn:oid:2.16.840.1.113883.4.292.10.12"
      },
      {
        "id": "Device.note",
        "path": "Device.note",
        "mustSupport": true
      }
    ]
  }
}