MedicalDataSource


class MedicalDataSource : Parcelable
kotlin.Any
   ↳ android.health.connect.datatypes.MedicalDataSource

Captures the data source information of medical data. All MedicalResources are associated with a MedicalDataSource.

The medical data is represented using the Fast Healthcare Interoperability Resources (FHIR) standard.

Summary

Nested classes

Builder class for MedicalDataSource.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Indicates whether some other object is "equal to" this one.

String

Returns the display name.

Uri

Returns the FHIR base URI, where data written for this data source came from.

FhirVersion

Returns the FHIR version of MedicalResources from this source.

String

Returns the unique identifier, assigned by the Android Health Platform at insertion time.

Instant?

Returns the time MedicalResources linked to this data source were last updated, or null if the data source has no linked resources.

String

Returns the corresponding package name of the owning app.

Int

Returns a hash code value for the object.

String

Returns a string representation of this MedicalDataSource.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<MedicalDataSource!>

Public methods

describeContents

fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Parameters
obj the reference object with which to compare.
o This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getDisplayName

fun getDisplayName(): String

Returns the display name.

Return
String This value cannot be null.

getFhirBaseUri

fun getFhirBaseUri(): Uri

Returns the FHIR base URI, where data written for this data source came from.

Return
Uri This value cannot be null.

getFhirVersion

fun getFhirVersion(): FhirVersion

Returns the FHIR version of MedicalResources from this source.

Return
FhirVersion This value cannot be null.

getId

fun getId(): String

Returns the unique identifier, assigned by the Android Health Platform at insertion time.

Return
String This value cannot be null.

getLastDataUpdateTime

fun getLastDataUpdateTime(): Instant?

Returns the time MedicalResources linked to this data source were last updated, or null if the data source has no linked resources.

This time is based on resources that currently exist in HealthConnect, so does not reflect data deletion.

getPackageName

fun getPackageName(): String

Returns the corresponding package name of the owning app.

Return
String This value cannot be null.

hashCode

fun hashCode(): Int

Returns a hash code value for the object.

Return
Int a hash code value for this object.

toString

fun toString(): String

Returns a string representation of this MedicalDataSource.

Return
String a string representation of the object.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

static val CREATOR: Parcelable.Creator<MedicalDataSource!>