Language

Device.Builder.SetUdi(String) Method

Definition

Sets an optional client supplied UDI (Unique Device Identifier), a unique numeric or alphanumeric code assigned to a medical device, for this Device instance.

[Android.Runtime.Register("setUdi", "(Ljava/lang/String;)Landroid/health/connect/datatypes/Device$Builder;", "", ApiSince=37)]
public Android.Health.Connect.DataTypes.Device.Builder SetUdi(string? udi);
[<Android.Runtime.Register("setUdi", "(Ljava/lang/String;)Landroid/health/connect/datatypes/Device$Builder;", "", ApiSince=37)>]
member this.SetUdi : string -> Android.Health.Connect.DataTypes.Device.Builder

Parameters

udi
String

The unique device identifier to store in this builder.

Returns

This device builder with the unique device identifier set.

Attributes

Remarks

Sets an optional client supplied UDI (Unique Device Identifier), a unique numeric or alphanumeric code assigned to a medical device, for this Device instance.

A device receives a UDI from an accredited issuing agency (e.g. from GS1) which is then registered in multiple regulatory databases (e.g. FDA). The UDI is a unique, globally recognized identifier assigned to a specific device model. An accredited issuing agency, like GS1, provides the global standards used to create the UDI codes. The manufacturers must submit the UDI provided by GS1 to the relevant regulatory databases for each market they operate in.

In the US, this is the FDA’s Global Unique Device Identification Database (GUDID).

In the EU, it is the European Database on Medical Devices (EUDAMED).

The calling package must have the android.permission.health.WRITE_DEVICE_UDI permission to insert or update a record with a UDI. Without this permission, the operation reports a HealthConnectException with its ErrorCode set to Security to the callback.

Android reference for android.health.connect.datatypes.Device.Builder.setUdi.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to