SymptomRecord


public final class SymptomRecord
extends IntervalRecord

java.lang.Object
   ↳ 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

class SymptomRecord.Builder

Builder class for SymptomRecord

Constants

int RECORD_TEMPORAL_TYPE_INSTANT

The record represents an instantaneous event.

int RECORD_TEMPORAL_TYPE_INTERVAL

The record represents an event over an interval.

int RECORD_TEMPORAL_TYPE_LOCAL_DATE

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

int SEVERITY_MILD

Mild severity.

int SEVERITY_MODERATE

Moderate severity.

int SEVERITY_SEVERE

Severe severity.

int SEVERITY_UNSPECIFIED

Unspecified severity.

int SYMPTOM_TYPE_ABDOMINAL_PAIN

Abdominal pain symptom.

int SYMPTOM_TYPE_ACNE

Acne symptom.

int SYMPTOM_TYPE_BACK_PAIN

Back pain symptom.

int SYMPTOM_TYPE_BLOATING

Bloating symptom.

int SYMPTOM_TYPE_BRAIN_FOG

Brain fog symptom.

int SYMPTOM_TYPE_BREAST_TENDERNESS

Breast tenderness symptom.

int SYMPTOM_TYPE_BRITTLE_NAILS

Brittle nails symptom.

int SYMPTOM_TYPE_BURNING_MOUTH

Burning mouth symptom.

int SYMPTOM_TYPE_CHEST_PAIN

Chest pain symptom.

int SYMPTOM_TYPE_CHEST_TIGHTNESS

Chest tightness symptom.

int SYMPTOM_TYPE_CHILLS

Chills symptom.

int SYMPTOM_TYPE_CONSTIPATION

Constipation symptom.

int SYMPTOM_TYPE_COUGH

Cough symptom.

int SYMPTOM_TYPE_CRAMPS

Cramps symptom.

int SYMPTOM_TYPE_CRAVINGS

Cravings symptom.

int SYMPTOM_TYPE_DEHYDRATION

Dehydration symptom.

int SYMPTOM_TYPE_DIARRHEA

Diarrhea symptom.

int SYMPTOM_TYPE_DIFFICULTY_SWALLOWING

Difficulty swallowing symptom.

int SYMPTOM_TYPE_DIZZINESS

Dizziness symptom.

int SYMPTOM_TYPE_DRY_SKIN

Dry skin symptom.

int SYMPTOM_TYPE_EARACHES

Earaches symptom.

int SYMPTOM_TYPE_FATIGUE

Fatigue symptom.

int SYMPTOM_TYPE_FEVER

Fever symptom.

int SYMPTOM_TYPE_GENERALIZED_BODY_ACHE

Generalized body ache symptom.

int SYMPTOM_TYPE_HAIR_LOSS

Hair loss symptom.

int SYMPTOM_TYPE_HEADACHE

Headache symptom.

int SYMPTOM_TYPE_HEARTBURN

Heartburn symptom.

int SYMPTOM_TYPE_HEART_PALPITATIONS

Heart palpitations symptom.

int SYMPTOM_TYPE_HOT_FLASHES

Hot flashes symptom.

int SYMPTOM_TYPE_INSOMNIA

Insomnia symptom.

int SYMPTOM_TYPE_JOINT_PAIN

Joint pain symptom.

int SYMPTOM_TYPE_JOINT_STIFFNESS

Joint stiffness symptom.

int SYMPTOM_TYPE_LOSS_OF_APPETITE

Loss of appetite symptom.

int SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS

Loss of consciousness symptom.

int SYMPTOM_TYPE_LOWER_BACK_PAIN

Lower back pain symptom.

int SYMPTOM_TYPE_MEMORY_LAPSE

Memory lapse symptom.

int SYMPTOM_TYPE_MOOD_CHANGE

Mood change symptom.

int SYMPTOM_TYPE_MUSCLE_PAIN

Muscle pain symptom.

int SYMPTOM_TYPE_NAUSEA

Nausea symptom.

int SYMPTOM_TYPE_NIGHT_SWEATS

Night sweats symptom.

int SYMPTOM_TYPE_PELVIC_PAIN

Pelvic pain symptom.

int SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT

Rapid pounding or fluttering heartbeat symptom.

int SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE

Reduced capacity for exercise symptom.

int SYMPTOM_TYPE_RUNNY_NOSE

Runny nose symptom.

int SYMPTOM_TYPE_SHORTNESS_OF_BREATH

Shortness of breath symptom.

int SYMPTOM_TYPE_SKIPPED_HEARTBEAT

Skipped heartbeat symptom.

int SYMPTOM_TYPE_SLEEPINESS

Sleepiness symptom.

int SYMPTOM_TYPE_SLEEP_CHANGES

Sleep changes symptom.

int SYMPTOM_TYPE_SNEEZING

Sneezing symptom.

int SYMPTOM_TYPE_SNORE

Snore symptom.

int SYMPTOM_TYPE_SORE_THROAT

Sore throat symptom.

int SYMPTOM_TYPE_STOMACH_ACHE

Stomach ache symptom.

int SYMPTOM_TYPE_STUFFY_NOSE

Stuffy nose symptom.

int SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES

Unexplained weight changes symptom.

int SYMPTOM_TYPE_UNKNOWN

Unknown symptom type.

int SYMPTOM_TYPE_VAGINAL_DRYNESS

Vaginal dryness symptom.

int SYMPTOM_TYPE_VAGINAL_ITCHINESS

Vaginal itchiness symptom.

int SYMPTOM_TYPE_VOMITING

Vomiting symptom.

int SYMPTOM_TYPE_WATER_RETENTION

Water retention symptom.

int SYMPTOM_TYPE_WHEEZING

Wheezing symptom.

Public methods

boolean equals(Object o)

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

int getCount()

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

LocalDate getDate()

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

String getNotes()

Returns the notes for this record.

int getSeverity()

Returns the severity of the symptom for this record.

int getSymptomType()

Returns the type of symptom for this record.

int getTemporalType()

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

int hashCode()

Returns a hash code value for the object.

Inherited methods

Constants

RECORD_TEMPORAL_TYPE_INSTANT

Added in U Extensions 21
public static final int RECORD_TEMPORAL_TYPE_INSTANT

The record represents an instantaneous event.

Constant Value: 0 (0x00000000)

RECORD_TEMPORAL_TYPE_INTERVAL

Added in U Extensions 21
public static final int RECORD_TEMPORAL_TYPE_INTERVAL

The record represents an event over an interval.

Constant Value: 1 (0x00000001)

RECORD_TEMPORAL_TYPE_LOCAL_DATE

Added in U Extensions 21
public static final int RECORD_TEMPORAL_TYPE_LOCAL_DATE

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

Constant Value: 2 (0x00000002)

SEVERITY_MILD

Added in U Extensions 21
public static final int SEVERITY_MILD

Mild severity.

Constant Value: 1 (0x00000001)

SEVERITY_MODERATE

Added in U Extensions 21
public static final int SEVERITY_MODERATE

Moderate severity.

Constant Value: 2 (0x00000002)

SEVERITY_SEVERE

Added in U Extensions 21
public static final int SEVERITY_SEVERE

Severe severity.

Constant Value: 3 (0x00000003)

SEVERITY_UNSPECIFIED

Added in U Extensions 21
public static final int SEVERITY_UNSPECIFIED

Unspecified severity.

Constant Value: 0 (0x00000000)

SYMPTOM_TYPE_ABDOMINAL_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_ABDOMINAL_PAIN

Abdominal pain symptom.

Constant Value: 1 (0x00000001)

SYMPTOM_TYPE_ACNE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_ACNE

Acne symptom.

Constant Value: 2 (0x00000002)

SYMPTOM_TYPE_BACK_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_BACK_PAIN

Back pain symptom.

Constant Value: 3 (0x00000003)

SYMPTOM_TYPE_BLOATING

Added in U Extensions 21
public static final int SYMPTOM_TYPE_BLOATING

Bloating symptom.

Constant Value: 4 (0x00000004)

SYMPTOM_TYPE_BRAIN_FOG

Added in U Extensions 21
public static final int SYMPTOM_TYPE_BRAIN_FOG

Brain fog symptom.

Constant Value: 5 (0x00000005)

SYMPTOM_TYPE_BREAST_TENDERNESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_BREAST_TENDERNESS

Breast tenderness symptom.

Constant Value: 6 (0x00000006)

SYMPTOM_TYPE_BRITTLE_NAILS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_BRITTLE_NAILS

Brittle nails symptom.

Constant Value: 7 (0x00000007)

SYMPTOM_TYPE_BURNING_MOUTH

Added in U Extensions 21
public static final int SYMPTOM_TYPE_BURNING_MOUTH

Burning mouth symptom.

Constant Value: 8 (0x00000008)

SYMPTOM_TYPE_CHEST_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_CHEST_PAIN

Chest pain symptom.

Constant Value: 9 (0x00000009)

SYMPTOM_TYPE_CHEST_TIGHTNESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_CHEST_TIGHTNESS

Chest tightness symptom.

Constant Value: 10 (0x0000000a)

SYMPTOM_TYPE_CHILLS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_CHILLS

Chills symptom.

Constant Value: 11 (0x0000000b)

SYMPTOM_TYPE_CONSTIPATION

Added in U Extensions 21
public static final int SYMPTOM_TYPE_CONSTIPATION

Constipation symptom.

Constant Value: 12 (0x0000000c)

SYMPTOM_TYPE_COUGH

Added in U Extensions 21
public static final int SYMPTOM_TYPE_COUGH

Cough symptom.

Constant Value: 13 (0x0000000d)

SYMPTOM_TYPE_CRAMPS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_CRAMPS

Cramps symptom.

Constant Value: 14 (0x0000000e)

SYMPTOM_TYPE_CRAVINGS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_CRAVINGS

Cravings symptom.

Constant Value: 15 (0x0000000f)

SYMPTOM_TYPE_DEHYDRATION

Added in U Extensions 21
public static final int SYMPTOM_TYPE_DEHYDRATION

Dehydration symptom.

Constant Value: 16 (0x00000010)

SYMPTOM_TYPE_DIARRHEA

Added in U Extensions 21
public static final int SYMPTOM_TYPE_DIARRHEA

Diarrhea symptom.

Constant Value: 17 (0x00000011)

SYMPTOM_TYPE_DIFFICULTY_SWALLOWING

Added in U Extensions 21
public static final int SYMPTOM_TYPE_DIFFICULTY_SWALLOWING

Difficulty swallowing symptom.

Constant Value: 18 (0x00000012)

SYMPTOM_TYPE_DIZZINESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_DIZZINESS

Dizziness symptom.

Constant Value: 19 (0x00000013)

SYMPTOM_TYPE_DRY_SKIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_DRY_SKIN

Dry skin symptom.

Constant Value: 20 (0x00000014)

SYMPTOM_TYPE_EARACHES

Added in U Extensions 21
public static final int SYMPTOM_TYPE_EARACHES

Earaches symptom.

Constant Value: 21 (0x00000015)

SYMPTOM_TYPE_FATIGUE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_FATIGUE

Fatigue symptom.

Constant Value: 22 (0x00000016)

SYMPTOM_TYPE_FEVER

Added in U Extensions 21
public static final int SYMPTOM_TYPE_FEVER

Fever symptom.

Constant Value: 23 (0x00000017)

SYMPTOM_TYPE_GENERALIZED_BODY_ACHE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_GENERALIZED_BODY_ACHE

Generalized body ache symptom.

Constant Value: 24 (0x00000018)

SYMPTOM_TYPE_HAIR_LOSS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_HAIR_LOSS

Hair loss symptom.

Constant Value: 25 (0x00000019)

SYMPTOM_TYPE_HEADACHE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_HEADACHE

Headache symptom.

Constant Value: 26 (0x0000001a)

SYMPTOM_TYPE_HEARTBURN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_HEARTBURN

Heartburn symptom.

Constant Value: 27 (0x0000001b)

SYMPTOM_TYPE_HEART_PALPITATIONS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_HEART_PALPITATIONS

Heart palpitations symptom.

Constant Value: 28 (0x0000001c)

SYMPTOM_TYPE_HOT_FLASHES

Added in U Extensions 21
public static final int SYMPTOM_TYPE_HOT_FLASHES

Hot flashes symptom.

Constant Value: 29 (0x0000001d)

SYMPTOM_TYPE_INSOMNIA

Added in U Extensions 21
public static final int SYMPTOM_TYPE_INSOMNIA

Insomnia symptom.

Constant Value: 30 (0x0000001e)

SYMPTOM_TYPE_JOINT_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_JOINT_PAIN

Joint pain symptom.

Constant Value: 31 (0x0000001f)

SYMPTOM_TYPE_JOINT_STIFFNESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_JOINT_STIFFNESS

Joint stiffness symptom.

Constant Value: 32 (0x00000020)

SYMPTOM_TYPE_LOSS_OF_APPETITE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_LOSS_OF_APPETITE

Loss of appetite symptom.

Constant Value: 33 (0x00000021)

SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS

Loss of consciousness symptom.

Constant Value: 34 (0x00000022)

SYMPTOM_TYPE_LOWER_BACK_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_LOWER_BACK_PAIN

Lower back pain symptom.

Constant Value: 35 (0x00000023)

SYMPTOM_TYPE_MEMORY_LAPSE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_MEMORY_LAPSE

Memory lapse symptom.

Constant Value: 36 (0x00000024)

SYMPTOM_TYPE_MOOD_CHANGE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_MOOD_CHANGE

Mood change symptom.

Constant Value: 37 (0x00000025)

SYMPTOM_TYPE_MUSCLE_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_MUSCLE_PAIN

Muscle pain symptom.

Constant Value: 38 (0x00000026)

SYMPTOM_TYPE_NAUSEA

Added in U Extensions 21
public static final int SYMPTOM_TYPE_NAUSEA

Nausea symptom.

Constant Value: 39 (0x00000027)

SYMPTOM_TYPE_NIGHT_SWEATS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_NIGHT_SWEATS

Night sweats symptom.

Constant Value: 40 (0x00000028)

SYMPTOM_TYPE_PELVIC_PAIN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_PELVIC_PAIN

Pelvic pain symptom.

Constant Value: 41 (0x00000029)

SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT

Added in U Extensions 21
public static final int SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT

Rapid pounding or fluttering heartbeat symptom.

Constant Value: 42 (0x0000002a)

SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE

Reduced capacity for exercise symptom.

Constant Value: 43 (0x0000002b)

SYMPTOM_TYPE_RUNNY_NOSE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_RUNNY_NOSE

Runny nose symptom.

Constant Value: 44 (0x0000002c)

SYMPTOM_TYPE_SHORTNESS_OF_BREATH

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SHORTNESS_OF_BREATH

Shortness of breath symptom.

Constant Value: 45 (0x0000002d)

SYMPTOM_TYPE_SKIPPED_HEARTBEAT

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SKIPPED_HEARTBEAT

Skipped heartbeat symptom.

Constant Value: 46 (0x0000002e)

SYMPTOM_TYPE_SLEEPINESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SLEEPINESS

Sleepiness symptom.

Constant Value: 47 (0x0000002f)

SYMPTOM_TYPE_SLEEP_CHANGES

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SLEEP_CHANGES

Sleep changes symptom.

Constant Value: 48 (0x00000030)

SYMPTOM_TYPE_SNEEZING

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SNEEZING

Sneezing symptom.

Constant Value: 49 (0x00000031)

SYMPTOM_TYPE_SNORE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SNORE

Snore symptom.

Constant Value: 50 (0x00000032)

SYMPTOM_TYPE_SORE_THROAT

Added in U Extensions 21
public static final int SYMPTOM_TYPE_SORE_THROAT

Sore throat symptom.

Constant Value: 51 (0x00000033)

SYMPTOM_TYPE_STOMACH_ACHE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_STOMACH_ACHE

Stomach ache symptom.

Constant Value: 52 (0x00000034)

SYMPTOM_TYPE_STUFFY_NOSE

Added in U Extensions 21
public static final int SYMPTOM_TYPE_STUFFY_NOSE

Stuffy nose symptom.

Constant Value: 53 (0x00000035)

SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES

Added in U Extensions 21
public static final int SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES

Unexplained weight changes symptom.

Constant Value: 54 (0x00000036)

SYMPTOM_TYPE_UNKNOWN

Added in U Extensions 21
public static final int SYMPTOM_TYPE_UNKNOWN

Unknown symptom type.

Constant Value: 0 (0x00000000)

SYMPTOM_TYPE_VAGINAL_DRYNESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_VAGINAL_DRYNESS

Vaginal dryness symptom.

Constant Value: 55 (0x00000037)

SYMPTOM_TYPE_VAGINAL_ITCHINESS

Added in U Extensions 21
public static final int SYMPTOM_TYPE_VAGINAL_ITCHINESS

Vaginal itchiness symptom.

Constant Value: 56 (0x00000038)

SYMPTOM_TYPE_VOMITING

Added in U Extensions 21
public static final int SYMPTOM_TYPE_VOMITING

Vomiting symptom.

Constant Value: 57 (0x00000039)

SYMPTOM_TYPE_WATER_RETENTION

Added in U Extensions 21
public static final int SYMPTOM_TYPE_WATER_RETENTION

Water retention symptom.

Constant Value: 58 (0x0000003a)

SYMPTOM_TYPE_WHEEZING

Added in U Extensions 21
public static final int SYMPTOM_TYPE_WHEEZING

Wheezing symptom.

Constant Value: 59 (0x0000003b)

Public methods

equals

public boolean equals (Object o)

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

Parameters
o Object: This value may be null.
Returns
boolean true if this object is the same as the obj

getCount

Added in U Extensions 21
public int getCount ()

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

Returns
int

getDate

Added in U Extensions 21
public LocalDate getDate ()

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

Returns
LocalDate

getNotes

Added in U Extensions 21
public String getNotes ()

Returns the notes for this record.

Returns
String This value may be null.

getSeverity

Added in U Extensions 21
public int getSeverity ()

Returns the severity of the symptom for this record.

Returns
int Value is one of the following:

getSymptomType

Added in U Extensions 21
public int getSymptomType ()

Returns the type of symptom for this record.

Returns
int Value is one of the following:

getTemporalType

Added in U Extensions 21
public int getTemporalType ()

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

Returns
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

public int hashCode ()

Returns a hash code value for the object.

Returns
int a hash code value for this object.