SymptomRecord


class SymptomRecord : IntervalRecord
kotlin.Any
   ↳ android.health.connect.datatypes.Record
   ↳ android.health.connect.datatypes.IntervalRecord
   ↳ android.health.connect.datatypes.SymptomRecord

Captures a description of a user's symptom. Each record represents a particular symptom experienced one or more times over a time period.

Permission Handling: Each symptom type is guarded by its own specific read and write permissions (e.g., android.permission.health.READ_SYMPTOM_COUGH).

An app has read access to a symptom type if:

  • The app is the owner of the data (i.e., it wrote the data), and it holds either the specific READ or WRITE permission for that symptom type.
  • The app is not the owner of the data, but it has been granted the specific READ permission for that symptom type.

Enforcement:

  • When reading symptoms by a time range, records for which the calling app does not have read access to the symptom type will be silently skipped.
  • When reading a single symptom record by its ID, if the calling app does not have read access to that record's symptom type, a SecurityException will be thrown.
  • When performing a batch read of multiple symptom records by their IDs, a SecurityException will be thrown if the calling app does not have read access to any of the symptom types included in the batch request.

Summary

Nested classes

Builder class for SymptomRecord.

Constants
static Int

The record represents an instantaneous event.

static Int

The record represents an event over an interval.

static Int

The record represents an event that occurred on a specific date.

static Int

Mild severity.

static Int

Moderate severity.

static Int

Severe severity.

static Int

Unspecified severity.

static Int

Abdominal pain symptom.

static Int

Acne symptom.

static Int

Back pain symptom.

static Int

Bloating symptom.

static Int

Brain fog symptom.

static Int

Breast tenderness symptom.

static Int

Brittle nails symptom.

static Int

Burning mouth symptom.

static Int

Chest pain symptom.

static Int

Chest tightness symptom.

static Int

Chills symptom.

static Int

Constipation symptom.

static Int

Cough symptom.

static Int

Cramps symptom.

static Int

Cravings symptom.

static Int

Dehydration symptom.

static Int

Diarrhea symptom.

static Int

Difficulty swallowing symptom.

static Int

Dizziness symptom.

static Int

Dry skin symptom.

static Int

Earaches symptom.

static Int

Fatigue symptom.

static Int

Fever symptom.

static Int

Generalized body ache symptom.

static Int

Hair loss symptom.

static Int

Headache symptom.

static Int

Heartburn symptom.

static Int

Heart palpitations symptom.

static Int

Hot flashes symptom.

static Int

Insomnia symptom.

static Int

Joint pain symptom.

static Int

Joint stiffness symptom.

static Int

Loss of appetite symptom.

static Int

Loss of consciousness symptom.

static Int

Lower back pain symptom.

static Int

Memory lapse symptom.

static Int

Mood change symptom.

static Int

Muscle pain symptom.

static Int

Nausea symptom.

static Int

Night sweats symptom.

static Int

Pelvic pain symptom.

static Int

Rapid pounding or fluttering heartbeat symptom.

static Int

Reduced capacity for exercise symptom.

static Int

Runny nose symptom.

static Int

Shortness of breath symptom.

static Int

Skipped heartbeat symptom.

static Int

Sleepiness symptom.

static Int

Sleep changes symptom.

static Int

Sneezing symptom.

static Int

Snore symptom.

static Int

Sore throat symptom.

static Int

Stomach ache symptom.

static Int

Stuffy nose symptom.

static Int

Unexplained weight changes symptom.

static Int

Unknown symptom type.

static Int

Vaginal dryness symptom.

static Int

Vaginal itchiness symptom.

static Int

Vomiting symptom.

static Int

Water retention symptom.

static Int

Wheezing symptom.

Public methods
Boolean
equals(other: Any?)

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

Int

Returns the number of occurrences of the symptom for this record.

LocalDate?

Returns the date of the record, or null if the record is not a local date record.

String?

Returns the notes for this record.

Int

Returns the severity of the symptom for this record.

Int

Returns the type of symptom for this record.

Int

Returns the temporal type of this record, indicating whether it represents an instant, an interval, or a local date.

Int

Returns a hash code value for the object.

Inherited functions

Constants

RECORD_TEMPORAL_TYPE_INSTANT

static val RECORD_TEMPORAL_TYPE_INSTANT: Int

The record represents an instantaneous event.

Value: 0

RECORD_TEMPORAL_TYPE_INTERVAL

static val RECORD_TEMPORAL_TYPE_INTERVAL: Int

The record represents an event over an interval.

Value: 1

RECORD_TEMPORAL_TYPE_LOCAL_DATE

static val RECORD_TEMPORAL_TYPE_LOCAL_DATE: Int

The record represents an event that occurred on a specific date.

Value: 2

SEVERITY_MILD

static val SEVERITY_MILD: Int

Mild severity.

Value: 1

SEVERITY_MODERATE

static val SEVERITY_MODERATE: Int

Moderate severity.

Value: 2

SEVERITY_SEVERE

static val SEVERITY_SEVERE: Int

Severe severity.

Value: 3

SEVERITY_UNSPECIFIED

static val SEVERITY_UNSPECIFIED: Int

Unspecified severity.

Value: 0

SYMPTOM_TYPE_ABDOMINAL_PAIN

static val SYMPTOM_TYPE_ABDOMINAL_PAIN: Int

Abdominal pain symptom.

Value: 1

SYMPTOM_TYPE_ACNE

static val SYMPTOM_TYPE_ACNE: Int

Acne symptom.

Value: 2

SYMPTOM_TYPE_BACK_PAIN

static val SYMPTOM_TYPE_BACK_PAIN: Int

Back pain symptom.

Value: 3

SYMPTOM_TYPE_BLOATING

static val SYMPTOM_TYPE_BLOATING: Int

Bloating symptom.

Value: 4

SYMPTOM_TYPE_BRAIN_FOG

static val SYMPTOM_TYPE_BRAIN_FOG: Int

Brain fog symptom.

Value: 5

SYMPTOM_TYPE_BREAST_TENDERNESS

static val SYMPTOM_TYPE_BREAST_TENDERNESS: Int

Breast tenderness symptom.

Value: 6

SYMPTOM_TYPE_BRITTLE_NAILS

static val SYMPTOM_TYPE_BRITTLE_NAILS: Int

Brittle nails symptom.

Value: 7

SYMPTOM_TYPE_BURNING_MOUTH

static val SYMPTOM_TYPE_BURNING_MOUTH: Int

Burning mouth symptom.

Value: 8

SYMPTOM_TYPE_CHEST_PAIN

static val SYMPTOM_TYPE_CHEST_PAIN: Int

Chest pain symptom.

Value: 9

SYMPTOM_TYPE_CHEST_TIGHTNESS

static val SYMPTOM_TYPE_CHEST_TIGHTNESS: Int

Chest tightness symptom.

Value: 10

SYMPTOM_TYPE_CHILLS

static val SYMPTOM_TYPE_CHILLS: Int

Chills symptom.

Value: 11

SYMPTOM_TYPE_CONSTIPATION

static val SYMPTOM_TYPE_CONSTIPATION: Int

Constipation symptom.

Value: 12

SYMPTOM_TYPE_COUGH

static val SYMPTOM_TYPE_COUGH: Int

Cough symptom.

Value: 13

SYMPTOM_TYPE_CRAMPS

static val SYMPTOM_TYPE_CRAMPS: Int

Cramps symptom.

Value: 14

SYMPTOM_TYPE_CRAVINGS

static val SYMPTOM_TYPE_CRAVINGS: Int

Cravings symptom.

Value: 15

SYMPTOM_TYPE_DEHYDRATION

static val SYMPTOM_TYPE_DEHYDRATION: Int

Dehydration symptom.

Value: 16

SYMPTOM_TYPE_DIARRHEA

static val SYMPTOM_TYPE_DIARRHEA: Int

Diarrhea symptom.

Value: 17

SYMPTOM_TYPE_DIFFICULTY_SWALLOWING

static val SYMPTOM_TYPE_DIFFICULTY_SWALLOWING: Int

Difficulty swallowing symptom.

Value: 18

SYMPTOM_TYPE_DIZZINESS

static val SYMPTOM_TYPE_DIZZINESS: Int

Dizziness symptom.

Value: 19

SYMPTOM_TYPE_DRY_SKIN

static val SYMPTOM_TYPE_DRY_SKIN: Int

Dry skin symptom.

Value: 20

SYMPTOM_TYPE_EARACHES

static val SYMPTOM_TYPE_EARACHES: Int

Earaches symptom.

Value: 21

SYMPTOM_TYPE_FATIGUE

static val SYMPTOM_TYPE_FATIGUE: Int

Fatigue symptom.

Value: 22

SYMPTOM_TYPE_FEVER

static val SYMPTOM_TYPE_FEVER: Int

Fever symptom.

Value: 23

SYMPTOM_TYPE_GENERALIZED_BODY_ACHE

static val SYMPTOM_TYPE_GENERALIZED_BODY_ACHE: Int

Generalized body ache symptom.

Value: 24

SYMPTOM_TYPE_HAIR_LOSS

static val SYMPTOM_TYPE_HAIR_LOSS: Int

Hair loss symptom.

Value: 25

SYMPTOM_TYPE_HEADACHE

static val SYMPTOM_TYPE_HEADACHE: Int

Headache symptom.

Value: 26

SYMPTOM_TYPE_HEARTBURN

static val SYMPTOM_TYPE_HEARTBURN: Int

Heartburn symptom.

Value: 27

SYMPTOM_TYPE_HEART_PALPITATIONS

static val SYMPTOM_TYPE_HEART_PALPITATIONS: Int

Heart palpitations symptom.

Value: 28

SYMPTOM_TYPE_HOT_FLASHES

static val SYMPTOM_TYPE_HOT_FLASHES: Int

Hot flashes symptom.

Value: 29

SYMPTOM_TYPE_INSOMNIA

static val SYMPTOM_TYPE_INSOMNIA: Int

Insomnia symptom.

Value: 30

SYMPTOM_TYPE_JOINT_PAIN

static val SYMPTOM_TYPE_JOINT_PAIN: Int

Joint pain symptom.

Value: 31

SYMPTOM_TYPE_JOINT_STIFFNESS

static val SYMPTOM_TYPE_JOINT_STIFFNESS: Int

Joint stiffness symptom.

Value: 32

SYMPTOM_TYPE_LOSS_OF_APPETITE

static val SYMPTOM_TYPE_LOSS_OF_APPETITE: Int

Loss of appetite symptom.

Value: 33

SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS

static val SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS: Int

Loss of consciousness symptom.

Value: 34

SYMPTOM_TYPE_LOWER_BACK_PAIN

static val SYMPTOM_TYPE_LOWER_BACK_PAIN: Int

Lower back pain symptom.

Value: 35

SYMPTOM_TYPE_MEMORY_LAPSE

static val SYMPTOM_TYPE_MEMORY_LAPSE: Int

Memory lapse symptom.

Value: 36

SYMPTOM_TYPE_MOOD_CHANGE

static val SYMPTOM_TYPE_MOOD_CHANGE: Int

Mood change symptom.

Value: 37

SYMPTOM_TYPE_MUSCLE_PAIN

static val SYMPTOM_TYPE_MUSCLE_PAIN: Int

Muscle pain symptom.

Value: 38

SYMPTOM_TYPE_NAUSEA

static val SYMPTOM_TYPE_NAUSEA: Int

Nausea symptom.

Value: 39

SYMPTOM_TYPE_NIGHT_SWEATS

static val SYMPTOM_TYPE_NIGHT_SWEATS: Int

Night sweats symptom.

Value: 40

SYMPTOM_TYPE_PELVIC_PAIN

static val SYMPTOM_TYPE_PELVIC_PAIN: Int

Pelvic pain symptom.

Value: 41

SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT

static val SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT: Int

Rapid pounding or fluttering heartbeat symptom.

Value: 42

SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE

static val SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE: Int

Reduced capacity for exercise symptom.

Value: 43

SYMPTOM_TYPE_RUNNY_NOSE

static val SYMPTOM_TYPE_RUNNY_NOSE: Int

Runny nose symptom.

Value: 44

SYMPTOM_TYPE_SHORTNESS_OF_BREATH

static val SYMPTOM_TYPE_SHORTNESS_OF_BREATH: Int

Shortness of breath symptom.

Value: 45

SYMPTOM_TYPE_SKIPPED_HEARTBEAT

static val SYMPTOM_TYPE_SKIPPED_HEARTBEAT: Int

Skipped heartbeat symptom.

Value: 46

SYMPTOM_TYPE_SLEEPINESS

static val SYMPTOM_TYPE_SLEEPINESS: Int

Sleepiness symptom.

Value: 47

SYMPTOM_TYPE_SLEEP_CHANGES

static val SYMPTOM_TYPE_SLEEP_CHANGES: Int

Sleep changes symptom.

Value: 48

SYMPTOM_TYPE_SNEEZING

static val SYMPTOM_TYPE_SNEEZING: Int

Sneezing symptom.

Value: 49

SYMPTOM_TYPE_SNORE

static val SYMPTOM_TYPE_SNORE: Int

Snore symptom.

Value: 50

SYMPTOM_TYPE_SORE_THROAT

static val SYMPTOM_TYPE_SORE_THROAT: Int

Sore throat symptom.

Value: 51

SYMPTOM_TYPE_STOMACH_ACHE

static val SYMPTOM_TYPE_STOMACH_ACHE: Int

Stomach ache symptom.

Value: 52

SYMPTOM_TYPE_STUFFY_NOSE

static val SYMPTOM_TYPE_STUFFY_NOSE: Int

Stuffy nose symptom.

Value: 53

SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES

static val SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES: Int

Unexplained weight changes symptom.

Value: 54

SYMPTOM_TYPE_UNKNOWN

static val SYMPTOM_TYPE_UNKNOWN: Int

Unknown symptom type.

Value: 0

SYMPTOM_TYPE_VAGINAL_DRYNESS

static val SYMPTOM_TYPE_VAGINAL_DRYNESS: Int

Vaginal dryness symptom.

Value: 55

SYMPTOM_TYPE_VAGINAL_ITCHINESS

static val SYMPTOM_TYPE_VAGINAL_ITCHINESS: Int

Vaginal itchiness symptom.

Value: 56

SYMPTOM_TYPE_VOMITING

static val SYMPTOM_TYPE_VOMITING: Int

Vomiting symptom.

Value: 57

SYMPTOM_TYPE_WATER_RETENTION

static val SYMPTOM_TYPE_WATER_RETENTION: Int

Water retention symptom.

Value: 58

SYMPTOM_TYPE_WHEEZING

static val SYMPTOM_TYPE_WHEEZING: Int

Wheezing symptom.

Value: 59

Public methods

equals

Added in API level 37
fun equals(other: Any?): Boolean

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

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

getCount

fun getCount(): Int

Returns the number of occurrences of the symptom for this record.

getDate

fun getDate(): LocalDate?

Returns the date of the record, or null if the record is not a local date record.

getNotes

fun getNotes(): String?

Returns the notes for this record.

Return
String? This value may be null.

getSeverity

fun getSeverity(): Int

Returns the severity of the symptom for this record.

Return
Int Value is one of the following:

getSymptomType

fun getSymptomType(): Int

Returns the type of symptom for this record.

Return
Int Value is one of the following:

getTemporalType

fun getTemporalType(): Int

Returns the temporal type of this record, indicating whether it represents an instant, an interval, or a local date.

Return
Int The temporal type, as one of RECORD_TEMPORAL_TYPE_INSTANT, RECORD_TEMPORAL_TYPE_INTERVAL, or RECORD_TEMPORAL_TYPE_LOCAL_DATE.
Value is one of the following:

hashCode

Added in API level 37
fun hashCode(): Int

Returns a hash code value for the object.

Return
Int a hash code value for this object.