Printing the AppleHealthKit object outputs this.
{"Constants": {"Permissions": {"ActiveEnergyBurned": "ActiveEnergyBurned", "Allergies": "Allergies", "ClinicalVitals": "ClinicalVitals", "Conditions": "Conditions", "Immunizations": "Immunizations", "Labs": "Labs", "Medications": "Medications", "Procedures": "Procedures"}}, "authorizationStatusForType": [Function fn], "getActiveEnergyBurned": [Function fn], "getActiveEnergyDailySamples": [Function fn], "getBasalEnergyBurned": [Function fn], "getBasalEnergyDailySamples": [Function fn], "getBiologicalSex": [Function fn], "getBloodGlucoseSamples": [Function fn], "getBloodPressureSamples": [Function fn], "getBodyFatPercentageSamples": [Function fn], "getBodyTemperatureSamples": [Function fn], "getConstants": [Function anonymous], "getDailyDistanceCyclingSamples": [Function fn], "getDailyDistanceSwimmingSamples": [Function fn], "getDailyDistanceWalkingRunningSamples": [Function fn], "getDailyFlightsClimbedSamples": [Function fn], "getDailyStepCountSamples": [Function fn], "getDateOfBirth": [Function fn], "getDistanceCycling": [Function fn], "getDistanceWalkingRunning": [Function fn], "getFlightsClimbed": [Function fn], "getHeartRateSamples": [Function fn], "getHeightSamples": [Function fn], "getInfo": [Function fn], "getLatestBmi": [Function fn], "getLatestBodyFatPercentage": [Function fn], "getLatestHeight": [Function fn], "getLatestLeanBodyMass": [Function fn], "getLatestWeight": [Function fn], "getLeanBodyMassSamples": [Function fn], "getRespiratoryRateSamples": [Function fn], "getSamples": [Function fn], "getSleepSamples": [Function fn], "getStepCount": [Function fn], "getWeightSamples": [Function fn], "initHealthKit": [Function fn], "initStepCountObserver": [Function fn], "isAvailable": [Function fn], "saveBmi": [Function fn], "saveBodyFatPercentage": [Function fn], "saveFood": [Function fn], "saveHeight": [Function fn], "saveLeanBodyMass": [Function fn], "saveMindfulSession": [Function fn], "saveSteps": [Function fn], "saveWater": [Function fn], "saveWeight": [Function fn], "setObserver": [Function fn]}
Permissions are there. But cannot see .getAllergyRecords , or newer methods.