swifthealthkitcda

SWIFT: CDA to iOS 10 Health app


Is there any way to send a xml file (CDA) to health app from another application? Because my application is getting a xml file from a source and I want to send it directly to the new health app (iOS 10).


Solution

  • Create an HKCDADocumentSample and save it with an HKHealthStore.