FhirVersion


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

Represents the FHIR version. This is designed according to the official FHIR versions of the Fast Healthcare Interoperability Resources (FHIR) standard. "label", which represents a 'working' version, is not supported for now.

The versions R4 (4.0.1) and R4B (4.3.0) are supported in Health Connect.

Summary

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

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

Int

Returns the major version.

Int

Returns the minor version.

Int

Returns the patch version.

Int

Returns a hash code value for the object.

Boolean

Returns true if the FhirVersion is supported by Health Connect.

static FhirVersion
parseFhirVersion(fhirVersionString: String)

Creates a FhirVersion object with the version of string format.

String

Returns the string representation of the FHIR version.

Unit
writeToParcel(dest: Parcel, flags: Int)

Populates a Parcel with the self information.

Properties
static Parcelable.Creator<FhirVersion!>

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.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getMajor

fun getMajor(): Int

Returns the major version.

getMinor

fun getMinor(): Int

Returns the minor version.

getPatch

fun getPatch(): Int

Returns the patch version.

hashCode

fun hashCode(): Int

Returns a hash code value for the object.

Return
Int a hash code value for this object.

isSupportedFhirVersion

fun isSupportedFhirVersion(): Boolean

Returns true if the FhirVersion is supported by Health Connect.

parseFhirVersion

static fun parseFhirVersion(fhirVersionString: String): FhirVersion

Creates a FhirVersion object with the version of string format.

The format should look like "4.0.1" which contains 3 numbers - major, minor and patch, separated by ".". This aligns with the official FHIR versions. Note that the "label" is not supported for now, which represents a 'working' version.

Parameters
fhirVersionString String: This value cannot be null.
Return
FhirVersion This value cannot be null.

toString

fun toString(): String

Returns the string representation of the FHIR version.

Return
String a string representation of the object.

writeToParcel

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

Populates a Parcel with the self information.

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<FhirVersion!>