CrunchyBagel / TracePrivately

A privacy-focused app using Apple's soon-to-be-released contact tracing framework.
MIT License
350 stars 27 forks source link

HealthKit integration #25

Open HendX opened 4 years ago

HendX commented 4 years ago

It may be possible to import positive diagnoses into HealthKit using the HKDocumentTypeIdentifier.CDA type. This would allow a lab to easily send a report that the user can import into HealthKit (or use directly in the app).

https://developer.apple.com/documentation/healthkit/hkcdadocumentsample?language=objc

There is also HKClinicalRecord, but these are only available from authorised providers.

https://developer.apple.com/documentation/healthkit/hkclinicalrecord https://developer.apple.com/documentation/healthkit/samples/accessing_a_user_s_clinical_records