-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HKClinicalRecord Flagged for Review #113
Comments
Can we make the addition of this file generated/compile-time optional? So that there would never be references in code if it's added using Ionic 3 Cordova? |
We are also facing the same issue. |
I apologize that you both are experiencing this. When you do not provide the I separated the implementation for the clinical records to avoid this issue. If you don't have the above files in your project I have a suspicion is that Apple is seeing the clinical record related code in if (@available(iOS 12.0, *)) {
type = [HKObjectType clinicalTypeForIdentifier:elem];
if (type != nil) {
return type;
}
} I don't think the clinical record related code depends on that anymore but I'd have to take a look further. I have been insanely busy recently and I'm sorry but I might not be able to give much attention to this right now. I closed on a house I bought in the last week and the day job is busy - combine this with the holidays and its crazy 🎅 As a temporary workaround you can use version |
Hi @rossmartin , any update on this so far? If you could give a hint on where to start maybe we can also help out with this. ☺ |
@bangonkali I took some time tonight to look into this issue. I created a new cordova project and installed this plugin without providing the
if (@available(iOS 12.0, *)) {
type = [HKObjectType clinicalTypeForIdentifier:elem];
if (type != nil) {
return type;
}
}
/**
* Search for a specific FHIR resource type
*
* @param command *CDVInvokedUrlCommand
*/
- (void)queryForClinicalRecordsWithFHIRResourceType:(CDVInvokedUrlCommand *)command {
#ifdef HKPLUGIN_CLINICAL_RECORDS
[HealthKitClinicalRecords queryForClinicalRecordsWithFHIRResourceType:command delegate:self.commandDelegate];
#endif
} I think it is because of the 2nd item above. In this case the approach I came up with to not include the actual implementation will not work. I had a feeling while doing some of this work to add the clinical functionality to this plugin that it should be an actual different plugin for the clinical functionality. In the react native ecosystem this is the case and I understand why. Right now I lean towards removing the clinical functionality from this plugin and either leaving my fork or a new plugin as the means to use clinical records in HealthKit for cordova. @EddyVerbruggen would you be opposed to me removing the clinical functionality from the plugin and basically restoring it to the state it was in at version I've seen this same problem in the react native ecosystem (and not related to HealthKit). Things get messy and convoluted when a library is responsible for dynamically adding/removing source code at install or compile time. I did my best at trying to avoid this issue but at this point I don't want to try more options blindly. /edit @awatson1978 I'm tagging you here also on the issue. Right now I lean towards having the clinical records functionality on my fork only or a separate plugin. It's a total mess to try and get this right for those that aren't using clinical records. |
@rossmartin I am not a fan of the way Apple is checking our App submissions but in this case, since it's Apple we're dealing with, I would support a decision to separate the Clinical Health Record as a separate plugin rather than complicating the approach for this plugin. Users will be left to decide if they want to use this plugin or the Clinical Health Record plugin. |
@EddyVerbruggen @awatson1978 I'm going to wait until I hear from you before making any changes on this. |
@rossmartin Thanks for taking the time to thoroughly explain the issue. And I agree with you. It's probably best to revert to the old state and link to your fork for anyone needing the Clinical Health Record feature. |
@EddyVerbruggen thank you for getting back so soon and reviewing. I went ahead and reverted the PRs with the clinical record functionality. I updated the README and bumped the plugin and npm package version to Thank you again for all your open source work! |
Perfect, @rossmartin! Thanks for moving forward with this so quickly. 0.7.0 has been published. |
Issue is related to #103 and #104
For some reason, even we have not enabled Clinical Records following instructions on Readme.md this snippet of code is included in our build.
HealthKit/src/ios/HealthKitClinicalRecords.m
Lines 256 to 259 in 0a10984
We have not enabled Clinical Record but Apple has flagged our product during review because of references to these code.
The text was updated successfully, but these errors were encountered: