I thought Apple had given up on HealthKit, but recently we learned that it’s been rebranded as CareKit and it seems to be going forward.
Since my professional work is in “health informatics”, specifically medical knowledge applications, I was curious what “ontology” (data dictionary, terminology, etc) Apple was using for it’s CareKit work. The concept set is somewhat hidden within Apple’s HealthKit Constants Reference documentation. I auto-expanded the symbols (nice web app Apple!) and make a quick pass at organizing the strings.
For someone like me it’s a fascinating set. The discussion of privacy and FDA device identifiers is noteworthy — in an early implementation it was apparently possible to trace HealthKit data to an individual device (not good, obviously - bold below).
I liked the use of Fitzpatrick Skin Type instead of trying to describe ethnicity/race.
It’s a fun list to scan:
HKMetadataKeyBodyTemperatureSensorLocation
HKMetadataKeyCoachedWorkout
HKMetadataKeyDeviceManufacturerName
HKMetadataKeyDeviceName
HKMetadataKeyDeviceSerialNumber
HKMetadataKeyDigitalSignature
HKMetadataKeyExternalUUID
HKMetadataKeyFoodType
HKMetadataKeyGroupFitness
HKMetadataKeyHeartRateSensorLocation
HKMetadataKeyIndoorWorkout
HKMetadataKeyMenstrualCycleStart
HKMetadataKeyReferenceRangeLowerLimit
HKMetadataKeyReferenceRangeUpperLimit
HKMetadataKeySexualActivityProtectionUsed
HKMetadataKeyTimeZone
HKMetadataKeyUDIDeviceIdentifier
HKMetadataKeyUDIProductionIdentifier
HKMetadataKeyWasTakenInLab
HKMetadataKeyWasUserEntered
HKMetadataKeyWorkoutBrandNameHKCategoryTypeIdentifierAppleStandHour
HKCategoryTypeIdentifierCervicalMucusQuality
HKCategoryTypeIdentifierIntermenstrualBleeding
HKCategoryTypeIdentifierMenstrualFlow
HKCategoryTypeIdentifierOvulationTestResult
HKCategoryTypeIdentifierSexualActivity
HKCategoryTypeIdentifierSleepAnalysisHKBiologicalSexFemale
HKBiologicalSexMale
HKBiologicalSexNotSet = 0
HKBiologicalSexOtherHKBloodTypeABNegative
HKBloodTypeABPositive
HKBloodTypeANegative
HKBloodTypeAPositive
HKBloodTypeBNegative
HKBloodTypeBPositive
HKBloodTypeNotSet = 0
HKBloodTypeONegative
HKBloodTypeOPositiveHKBodyTemperatureSensorLocationArmpit
HKBodyTemperatureSensorLocationBody
HKBodyTemperatureSensorLocationEar
HKBodyTemperatureSensorLocationEarDrum
HKBodyTemperatureSensorLocationFinger
HKBodyTemperatureSensorLocationForehead
HKBodyTemperatureSensorLocationGastroIntestinal
HKBodyTemperatureSensorLocationMouth
HKBodyTemperatureSensorLocationRectum
HKBodyTemperatureSensorLocationTemporalArtery
HKBodyTemperatureSensorLocationToeHKCategoryValueCervicalMucusQualityCreamy
HKCategoryValueCervicalMucusQualityDry = 1
HKCategoryValueCervicalMucusQualityEggWhite
HKCategoryValueCervicalMucusQualitySticky
HKCategoryValueCervicalMucusQualityWateryHKCategoryValueMenstrualFlowHeavy
HKCategoryValueMenstrualFlowLight
HKCategoryValueMenstrualFlowMedium
HKCategoryValueMenstrualFlowUnspecified = 1HKCategoryValueSleepAnalysisAsleep
HKCategoryValueSleepAnalysisInBedHKCharacteristicTypeIdentifierBiologicalSex
HKCharacteristicTypeIdentifierBloodType
HKCharacteristicTypeIdentifierDateOfBirth
HKCharacteristicTypeIdentifierFitzpatrickSkinType
HKCorrelationTypeIdentifierBloodPressure
HKCorrelationTypeIdentifierFoodHKFitzpatrickSkinTypeI
HKFitzpatrickSkinTypeII
HKFitzpatrickSkinTypeIII
HKFitzpatrickSkinTypeIV
HKFitzpatrickSkinTypeNotSet = 1
HKFitzpatrickSkinTypeV
HKFitzpatrickSkinTypeVIHKHeartRateSensorLocationChest
HKHeartRateSensorLocationEarLobe
HKHeartRateSensorLocationFinger
HKHeartRateSensorLocationFoot
HKHeartRateSensorLocationHand
HKHeartRateSensorLocationWristHKQuantityTypeIdentifierActiveEnergyBurned
HKQuantityTypeIdentifierAppleExerciseTime
HKQuantityTypeIdentifierBasalBodyTemperature
HKQuantityTypeIdentifierBasalEnergyBurned
HKQuantityTypeIdentifierBloodAlcoholContent
HKQuantityTypeIdentifierBloodGlucose
HKQuantityTypeIdentifierBloodPressureDiastolic
HKQuantityTypeIdentifierBloodPressureSystolic
HKQuantityTypeIdentifierBodyFatPercentage
HKQuantityTypeIdentifierBodyMass
HKQuantityTypeIdentifierBodyMassIndex
HKQuantityTypeIdentifierBodyTemperature
HKQuantityTypeIdentifierDietaryBiotin
HKQuantityTypeIdentifierDietaryCaffeine
HKQuantityTypeIdentifierDietaryCalcium
HKQuantityTypeIdentifierDietaryCarbohydrates
HKQuantityTypeIdentifierDietaryChloride
HKQuantityTypeIdentifierDietaryCholesterol
HKQuantityTypeIdentifierDietaryChromium
HKQuantityTypeIdentifierDietaryCopper
HKQuantityTypeIdentifierDietaryEnergyConsumed
HKQuantityTypeIdentifierDietaryFatMonounsaturated
HKQuantityTypeIdentifierDietaryFatPolyunsaturated
HKQuantityTypeIdentifierDietaryFatSaturated
HKQuantityTypeIdentifierDietaryFatTotal
HKQuantityTypeIdentifierDietaryFiber
HKQuantityTypeIdentifierDietaryFolate
HKQuantityTypeIdentifierDietaryIodine
HKQuantityTypeIdentifierDietaryIron
HKQuantityTypeIdentifierDietaryMagnesium
HKQuantityTypeIdentifierDietaryManganese
HKQuantityTypeIdentifierDietaryMolybdenum
HKQuantityTypeIdentifierDietaryNiacin
HKQuantityTypeIdentifierDietaryPantothenicAcid
HKQuantityTypeIdentifierDietaryPhosphorus
HKQuantityTypeIdentifierDietaryPotassium
HKQuantityTypeIdentifierDietaryProtein
HKQuantityTypeIdentifierDietaryRiboflavin
HKQuantityTypeIdentifierDietarySelenium
HKQuantityTypeIdentifierDietarySodium
HKQuantityTypeIdentifierDietarySugar
HKQuantityTypeIdentifierDietaryThiamin
HKQuantityTypeIdentifierDietaryVitaminA
HKQuantityTypeIdentifierDietaryVitaminB6
HKQuantityTypeIdentifierDietaryVitaminB12
HKQuantityTypeIdentifierDietaryVitaminC
HKQuantityTypeIdentifierDietaryVitaminD
HKQuantityTypeIdentifierDietaryVitaminE
HKQuantityTypeIdentifierDietaryVitaminK
HKQuantityTypeIdentifierDietaryWater
HKQuantityTypeIdentifierDietaryZinc
HKQuantityTypeIdentifierDistanceCycling
HKQuantityTypeIdentifierDistanceWalkingRunning
HKQuantityTypeIdentifierElectrodermalActivity
HKQuantityTypeIdentifierFlightsClimbed
HKQuantityTypeIdentifierForcedExpiratoryVolume1
HKQuantityTypeIdentifierForcedVitalCapacity
HKQuantityTypeIdentifierHeartRate
HKQuantityTypeIdentifierHeight
HKQuantityTypeIdentifierInhalerUsage
HKQuantityTypeIdentifierLeanBodyMass
HKQuantityTypeIdentifierNikeFuel
HKQuantityTypeIdentifierNumberOfTimesFallen
HKQuantityTypeIdentifierOxygenSaturation
HKQuantityTypeIdentifierPeakExpiratoryFlowRate
HKQuantityTypeIdentifierPeripheralPerfusionIndex
HKQuantityTypeIdentifierRespiratoryRate
HKQuantityTypeIdentifierStepCountHKWorkoutActivityTypeAmericanFootball = 1
HKWorkoutActivityTypeArchery
HKWorkoutActivityTypeAustralianFootball
HKWorkoutActivityTypeBadminton
HKWorkoutActivityTypeBaseball
HKWorkoutActivityTypeBasketball
HKWorkoutActivityTypeBowling
HKWorkoutActivityTypeBoxing
HKWorkoutActivityTypeClimbing
HKWorkoutActivityTypeCricket
HKWorkoutActivityTypeCrossTraining
HKWorkoutActivityTypeCurling
HKWorkoutActivityTypeCycling
HKWorkoutActivityTypeDance
HKWorkoutActivityTypeDanceInspiredTraining
HKWorkoutActivityTypeElliptical
HKWorkoutActivityTypeEquestrianSports
HKWorkoutActivityTypeFencing
HKWorkoutActivityTypeFishing
HKWorkoutActivityTypeFunctionalStrengthTraining
HKWorkoutActivityTypeGolf
HKWorkoutActivityTypeGymnastics
HKWorkoutActivityTypeHandball
HKWorkoutActivityTypeHiking
HKWorkoutActivityTypeHockey
HKWorkoutActivityTypeHunting
HKWorkoutActivityTypeLacrosse
HKWorkoutActivityTypeMartialArts
HKWorkoutActivityTypeMindAndBody
HKWorkoutActivityTypeMixedMetabolicCardioTraining
HKWorkoutActivityTypePaddleSports
HKWorkoutActivityTypePlay
HKWorkoutActivityTypePreparationAndRecovery
HKWorkoutActivityTypeRacquetball
HKWorkoutActivityTypeRowing
HKWorkoutActivityTypeRugby
HKWorkoutActivityTypeRunning
HKWorkoutActivityTypeSailing
HKWorkoutActivityTypeSkatingSports
HKWorkoutActivityTypeSnowSports
HKWorkoutActivityTypeSoccer
HKWorkoutActivityTypeSoftball
HKWorkoutActivityTypeSquash
HKWorkoutActivityTypeStairClimbing
HKWorkoutActivityTypeSurfingSports
HKWorkoutActivityTypeSwimming
HKWorkoutActivityTypeTableTennis
HKWorkoutActivityTypeTennis
HKWorkoutActivityTypeTrackAndField
HKWorkoutActivityTypeTraditionalStrengthTraining
HKWorkoutActivityTypeVolleyball
HKWorkoutActivityTypeWalking
HKWorkoutActivityTypeWaterFitness
HKWorkoutActivityTypeWaterPolo
HKWorkoutActivityTypeWaterSports
HKWorkoutActivityTypeWrestling
HKWorkoutActivityTypeYogaHKWorkoutSessionLocationTypeIndoor
HKWorkoutSessionLocationTypeOutdoor
HKWorkoutSessionLocationTypeUnknown = 1
No comments:
Post a Comment