description: Proposed constraints on the Device resource for the minimal set of data to query and retrieve a patient's implantable device. package_name: hl7.fhir.ca.baseline derivation: constraint name: DeviceProfile type: Device elements: patient: type: Reference refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient'] index: 12 serialNumber: {mustSupport: true, index: 8} parent: type: Reference refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-device'] index: 13 deviceName: {mustSupport: true, index: 9} type: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/device-kind'} mustSupport: true index: 10 distinctIdentifier: {mustSupport: true, index: 4} lotNumber: {mustSupport: true, index: 7} manufacturer: {mustSupport: true, index: 5} version: {mustSupport: true, index: 11} expirationDate: {mustSupport: true, index: 6} udiCarrier: constraint: ca-device-1: {human: Implantable medical devices that have UDI information SHALL represent this information in either carrierAIDC or carrierHRF., severity: error, expression: udiCarrier.empty() or (udiCarrier.carrierAIDC.exists() or udiCarrier.carrierHRF.exists())} ca-device-2: {human: 'For implantable medical devices that have UDI information, at least one of the Production Identifiers (UDI-PI) SHALL be present.', severity: error, expression: udiCarrier.empty() or (manufactureDate.exists() or expirationDate.exists() or lotNumber.exists() or serialNumber.exists() or distinctIdentifier.exists())} mustSupport: true index: 0 elements: deviceIdentifier: {mustSupport: true, index: 1} carrierAIDC: {mustSupport: true, index: 2} carrierHRF: {mustSupport: true, index: 3} required: [deviceIdentifier] package_version: 1.1.6-pre class: profile kind: resource url: http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-device base: http://hl7.org/fhir/StructureDefinition/Device version: 0.1.0 required: [udiCarrier, type, patient]