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
SecurityExceptionwill be thrown. - When performing a batch read of multiple symptom records by their IDs, a
SecurityExceptionwill 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 |
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
public static final int RECORD_TEMPORAL_TYPE_INSTANT
The record represents an instantaneous event.
Constant Value: 0 (0x00000000)
RECORD_TEMPORAL_TYPE_INTERVAL
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
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
public static final int SEVERITY_MILD
Mild severity.
Constant Value: 1 (0x00000001)
SEVERITY_MODERATE
public static final int SEVERITY_MODERATE
Moderate severity.
Constant Value: 2 (0x00000002)
SEVERITY_SEVERE
public static final int SEVERITY_SEVERE
Severe severity.
Constant Value: 3 (0x00000003)
SEVERITY_UNSPECIFIED
public static final int SEVERITY_UNSPECIFIED
Unspecified severity.
Constant Value: 0 (0x00000000)
SYMPTOM_TYPE_ABDOMINAL_PAIN
public static final int SYMPTOM_TYPE_ABDOMINAL_PAIN
Abdominal pain symptom.
Constant Value: 1 (0x00000001)
SYMPTOM_TYPE_ACNE
public static final int SYMPTOM_TYPE_ACNE
Acne symptom.
Constant Value: 2 (0x00000002)
SYMPTOM_TYPE_BACK_PAIN
public static final int SYMPTOM_TYPE_BACK_PAIN
Back pain symptom.
Constant Value: 3 (0x00000003)
SYMPTOM_TYPE_BLOATING
public static final int SYMPTOM_TYPE_BLOATING
Bloating symptom.
Constant Value: 4 (0x00000004)
SYMPTOM_TYPE_BRAIN_FOG
public static final int SYMPTOM_TYPE_BRAIN_FOG
Brain fog symptom.
Constant Value: 5 (0x00000005)
SYMPTOM_TYPE_BREAST_TENDERNESS
public static final int SYMPTOM_TYPE_BREAST_TENDERNESS
Breast tenderness symptom.
Constant Value: 6 (0x00000006)
SYMPTOM_TYPE_BRITTLE_NAILS
public static final int SYMPTOM_TYPE_BRITTLE_NAILS
Brittle nails symptom.
Constant Value: 7 (0x00000007)
SYMPTOM_TYPE_BURNING_MOUTH
public static final int SYMPTOM_TYPE_BURNING_MOUTH
Burning mouth symptom.
Constant Value: 8 (0x00000008)
SYMPTOM_TYPE_CHEST_PAIN
public static final int SYMPTOM_TYPE_CHEST_PAIN
Chest pain symptom.
Constant Value: 9 (0x00000009)
SYMPTOM_TYPE_CHEST_TIGHTNESS
public static final int SYMPTOM_TYPE_CHEST_TIGHTNESS
Chest tightness symptom.
Constant Value: 10 (0x0000000a)
SYMPTOM_TYPE_CHILLS
public static final int SYMPTOM_TYPE_CHILLS
Chills symptom.
Constant Value: 11 (0x0000000b)
SYMPTOM_TYPE_CONSTIPATION
public static final int SYMPTOM_TYPE_CONSTIPATION
Constipation symptom.
Constant Value: 12 (0x0000000c)
SYMPTOM_TYPE_COUGH
public static final int SYMPTOM_TYPE_COUGH
Cough symptom.
Constant Value: 13 (0x0000000d)
SYMPTOM_TYPE_CRAMPS
public static final int SYMPTOM_TYPE_CRAMPS
Cramps symptom.
Constant Value: 14 (0x0000000e)
SYMPTOM_TYPE_CRAVINGS
public static final int SYMPTOM_TYPE_CRAVINGS
Cravings symptom.
Constant Value: 15 (0x0000000f)
SYMPTOM_TYPE_DEHYDRATION
public static final int SYMPTOM_TYPE_DEHYDRATION
Dehydration symptom.
Constant Value: 16 (0x00000010)
SYMPTOM_TYPE_DIARRHEA
public static final int SYMPTOM_TYPE_DIARRHEA
Diarrhea symptom.
Constant Value: 17 (0x00000011)
SYMPTOM_TYPE_DIFFICULTY_SWALLOWING
public static final int SYMPTOM_TYPE_DIFFICULTY_SWALLOWING
Difficulty swallowing symptom.
Constant Value: 18 (0x00000012)
SYMPTOM_TYPE_DIZZINESS
public static final int SYMPTOM_TYPE_DIZZINESS
Dizziness symptom.
Constant Value: 19 (0x00000013)
SYMPTOM_TYPE_DRY_SKIN
public static final int SYMPTOM_TYPE_DRY_SKIN
Dry skin symptom.
Constant Value: 20 (0x00000014)
SYMPTOM_TYPE_EARACHES
public static final int SYMPTOM_TYPE_EARACHES
Earaches symptom.
Constant Value: 21 (0x00000015)
SYMPTOM_TYPE_FATIGUE
public static final int SYMPTOM_TYPE_FATIGUE
Fatigue symptom.
Constant Value: 22 (0x00000016)
SYMPTOM_TYPE_FEVER
public static final int SYMPTOM_TYPE_FEVER
Fever symptom.
Constant Value: 23 (0x00000017)
SYMPTOM_TYPE_GENERALIZED_BODY_ACHE
public static final int SYMPTOM_TYPE_GENERALIZED_BODY_ACHE
Generalized body ache symptom.
Constant Value: 24 (0x00000018)
SYMPTOM_TYPE_HAIR_LOSS
public static final int SYMPTOM_TYPE_HAIR_LOSS
Hair loss symptom.
Constant Value: 25 (0x00000019)
SYMPTOM_TYPE_HEADACHE
public static final int SYMPTOM_TYPE_HEADACHE
Headache symptom.
Constant Value: 26 (0x0000001a)
SYMPTOM_TYPE_HEARTBURN
public static final int SYMPTOM_TYPE_HEARTBURN
Heartburn symptom.
Constant Value: 27 (0x0000001b)
SYMPTOM_TYPE_HEART_PALPITATIONS
public static final int SYMPTOM_TYPE_HEART_PALPITATIONS
Heart palpitations symptom.
Constant Value: 28 (0x0000001c)
SYMPTOM_TYPE_HOT_FLASHES
public static final int SYMPTOM_TYPE_HOT_FLASHES
Hot flashes symptom.
Constant Value: 29 (0x0000001d)
SYMPTOM_TYPE_INSOMNIA
public static final int SYMPTOM_TYPE_INSOMNIA
Insomnia symptom.
Constant Value: 30 (0x0000001e)
SYMPTOM_TYPE_JOINT_PAIN
public static final int SYMPTOM_TYPE_JOINT_PAIN
Joint pain symptom.
Constant Value: 31 (0x0000001f)
SYMPTOM_TYPE_JOINT_STIFFNESS
public static final int SYMPTOM_TYPE_JOINT_STIFFNESS
Joint stiffness symptom.
Constant Value: 32 (0x00000020)
SYMPTOM_TYPE_LOSS_OF_APPETITE
public static final int SYMPTOM_TYPE_LOSS_OF_APPETITE
Loss of appetite symptom.
Constant Value: 33 (0x00000021)
SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS
public static final int SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS
Loss of consciousness symptom.
Constant Value: 34 (0x00000022)
SYMPTOM_TYPE_LOWER_BACK_PAIN
public static final int SYMPTOM_TYPE_LOWER_BACK_PAIN
Lower back pain symptom.
Constant Value: 35 (0x00000023)
SYMPTOM_TYPE_MEMORY_LAPSE
public static final int SYMPTOM_TYPE_MEMORY_LAPSE
Memory lapse symptom.
Constant Value: 36 (0x00000024)
SYMPTOM_TYPE_MOOD_CHANGE
public static final int SYMPTOM_TYPE_MOOD_CHANGE
Mood change symptom.
Constant Value: 37 (0x00000025)
SYMPTOM_TYPE_MUSCLE_PAIN
public static final int SYMPTOM_TYPE_MUSCLE_PAIN
Muscle pain symptom.
Constant Value: 38 (0x00000026)
SYMPTOM_TYPE_NAUSEA
public static final int SYMPTOM_TYPE_NAUSEA
Nausea symptom.
Constant Value: 39 (0x00000027)
SYMPTOM_TYPE_NIGHT_SWEATS
public static final int SYMPTOM_TYPE_NIGHT_SWEATS
Night sweats symptom.
Constant Value: 40 (0x00000028)
SYMPTOM_TYPE_PELVIC_PAIN
public static final int SYMPTOM_TYPE_PELVIC_PAIN
Pelvic pain symptom.
Constant Value: 41 (0x00000029)
SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT
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
public static final int SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE
Reduced capacity for exercise symptom.
Constant Value: 43 (0x0000002b)
SYMPTOM_TYPE_RUNNY_NOSE
public static final int SYMPTOM_TYPE_RUNNY_NOSE
Runny nose symptom.
Constant Value: 44 (0x0000002c)
SYMPTOM_TYPE_SHORTNESS_OF_BREATH
public static final int SYMPTOM_TYPE_SHORTNESS_OF_BREATH
Shortness of breath symptom.
Constant Value: 45 (0x0000002d)
SYMPTOM_TYPE_SKIPPED_HEARTBEAT
public static final int SYMPTOM_TYPE_SKIPPED_HEARTBEAT
Skipped heartbeat symptom.
Constant Value: 46 (0x0000002e)
SYMPTOM_TYPE_SLEEPINESS
public static final int SYMPTOM_TYPE_SLEEPINESS
Sleepiness symptom.
Constant Value: 47 (0x0000002f)
SYMPTOM_TYPE_SLEEP_CHANGES
public static final int SYMPTOM_TYPE_SLEEP_CHANGES
Sleep changes symptom.
Constant Value: 48 (0x00000030)
SYMPTOM_TYPE_SNEEZING
public static final int SYMPTOM_TYPE_SNEEZING
Sneezing symptom.
Constant Value: 49 (0x00000031)
SYMPTOM_TYPE_SNORE
public static final int SYMPTOM_TYPE_SNORE
Snore symptom.
Constant Value: 50 (0x00000032)
SYMPTOM_TYPE_SORE_THROAT
public static final int SYMPTOM_TYPE_SORE_THROAT
Sore throat symptom.
Constant Value: 51 (0x00000033)
SYMPTOM_TYPE_STOMACH_ACHE
public static final int SYMPTOM_TYPE_STOMACH_ACHE
Stomach ache symptom.
Constant Value: 52 (0x00000034)
SYMPTOM_TYPE_STUFFY_NOSE
public static final int SYMPTOM_TYPE_STUFFY_NOSE
Stuffy nose symptom.
Constant Value: 53 (0x00000035)
SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES
public static final int SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES
Unexplained weight changes symptom.
Constant Value: 54 (0x00000036)
SYMPTOM_TYPE_UNKNOWN
public static final int SYMPTOM_TYPE_UNKNOWN
Unknown symptom type.
Constant Value: 0 (0x00000000)
SYMPTOM_TYPE_VAGINAL_DRYNESS
public static final int SYMPTOM_TYPE_VAGINAL_DRYNESS
Vaginal dryness symptom.
Constant Value: 55 (0x00000037)
SYMPTOM_TYPE_VAGINAL_ITCHINESS
public static final int SYMPTOM_TYPE_VAGINAL_ITCHINESS
Vaginal itchiness symptom.
Constant Value: 56 (0x00000038)
SYMPTOM_TYPE_VOMITING
public static final int SYMPTOM_TYPE_VOMITING
Vomiting symptom.
Constant Value: 57 (0x00000039)
SYMPTOM_TYPE_WATER_RETENTION
public static final int SYMPTOM_TYPE_WATER_RETENTION
Water retention symptom.
Constant Value: 58 (0x0000003a)
SYMPTOM_TYPE_WHEEZING
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
public int getCount ()
Returns the number of occurrences of the symptom for this record.
| Returns | |
|---|---|
int |
|
getDate
public LocalDate getDate ()
Returns the date of the record, or null if the record is not a local date record.
| Returns | |
|---|---|
LocalDate |
|
getNotes
public String getNotes ()
Returns the notes for this record.
| Returns | |
|---|---|
String |
This value may be null. |
getSeverity
public int getSeverity ()
Returns the severity of the symptom for this record.
| Returns | |
|---|---|
int |
Value is one of the following: |
getSymptomType
public int getSymptomType ()
Returns the type of symptom for this record.
getTemporalType
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-13 UTC.