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
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 | |
|---|---|
|
Builder class for |
|
| 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 |
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 |
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 |
hashCode()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: 0RECORD_TEMPORAL_TYPE_INTERVAL
static val RECORD_TEMPORAL_TYPE_INTERVAL: Int
The record represents an event over an interval.
Value: 1RECORD_TEMPORAL_TYPE_LOCAL_DATE
static val RECORD_TEMPORAL_TYPE_LOCAL_DATE: Int
The record represents an event that occurred on a specific date.
Value: 2SYMPTOM_TYPE_ABDOMINAL_PAIN
static val SYMPTOM_TYPE_ABDOMINAL_PAIN: Int
Abdominal pain symptom.
Value: 1SYMPTOM_TYPE_BREAST_TENDERNESS
static val SYMPTOM_TYPE_BREAST_TENDERNESS: Int
Breast tenderness symptom.
Value: 6SYMPTOM_TYPE_BRITTLE_NAILS
static val SYMPTOM_TYPE_BRITTLE_NAILS: Int
Brittle nails symptom.
Value: 7SYMPTOM_TYPE_BURNING_MOUTH
static val SYMPTOM_TYPE_BURNING_MOUTH: Int
Burning mouth symptom.
Value: 8SYMPTOM_TYPE_CHEST_TIGHTNESS
static val SYMPTOM_TYPE_CHEST_TIGHTNESS: Int
Chest tightness symptom.
Value: 10SYMPTOM_TYPE_DIFFICULTY_SWALLOWING
static val SYMPTOM_TYPE_DIFFICULTY_SWALLOWING: Int
Difficulty swallowing symptom.
Value: 18SYMPTOM_TYPE_GENERALIZED_BODY_ACHE
static val SYMPTOM_TYPE_GENERALIZED_BODY_ACHE: Int
Generalized body ache symptom.
Value: 24SYMPTOM_TYPE_HEART_PALPITATIONS
static val SYMPTOM_TYPE_HEART_PALPITATIONS: Int
Heart palpitations symptom.
Value: 28SYMPTOM_TYPE_JOINT_STIFFNESS
static val SYMPTOM_TYPE_JOINT_STIFFNESS: Int
Joint stiffness symptom.
Value: 32SYMPTOM_TYPE_LOSS_OF_APPETITE
static val SYMPTOM_TYPE_LOSS_OF_APPETITE: Int
Loss of appetite symptom.
Value: 33SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS
static val SYMPTOM_TYPE_LOSS_OF_CONSCIOUSNESS: Int
Loss of consciousness symptom.
Value: 34SYMPTOM_TYPE_LOWER_BACK_PAIN
static val SYMPTOM_TYPE_LOWER_BACK_PAIN: Int
Lower back pain symptom.
Value: 35SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT
static val SYMPTOM_TYPE_RAPID_POUNDING_OR_FLUTTERING_HEARTBEAT: Int
Rapid pounding or fluttering heartbeat symptom.
Value: 42SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE
static val SYMPTOM_TYPE_REDUCED_CAPACITY_FOR_EXERCISE: Int
Reduced capacity for exercise symptom.
Value: 43SYMPTOM_TYPE_SHORTNESS_OF_BREATH
static val SYMPTOM_TYPE_SHORTNESS_OF_BREATH: Int
Shortness of breath symptom.
Value: 45SYMPTOM_TYPE_SKIPPED_HEARTBEAT
static val SYMPTOM_TYPE_SKIPPED_HEARTBEAT: Int
Skipped heartbeat symptom.
Value: 46SYMPTOM_TYPE_SLEEP_CHANGES
static val SYMPTOM_TYPE_SLEEP_CHANGES: Int
Sleep changes symptom.
Value: 48SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES
static val SYMPTOM_TYPE_UNEXPLAINED_WEIGHT_CHANGES: Int
Unexplained weight changes symptom.
Value: 54SYMPTOM_TYPE_VAGINAL_DRYNESS
static val SYMPTOM_TYPE_VAGINAL_DRYNESS: Int
Vaginal dryness symptom.
Value: 55SYMPTOM_TYPE_VAGINAL_ITCHINESS
static val SYMPTOM_TYPE_VAGINAL_ITCHINESS: Int
Vaginal itchiness symptom.
Value: 56SYMPTOM_TYPE_WATER_RETENTION
static val SYMPTOM_TYPE_WATER_RETENTION: Int
Water retention symptom.
Value: 58Public methods
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. |
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 |
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.
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
fun hashCode(): Int
Returns a hash code value for the object.
| Return | |
|---|---|
Int |
a hash code value for this object. |