Helping iOS apps access full text articles using Read

Posted on Jun 26, 2013 in News | 0 comments

We make it easy for websites and apps to link to full text content in Read.

Use the link: http://qxmd.com/r/PMID, where PMID is the PubMed ID.

Websites or apps can add the “Open in Read” button and add the link described above.

Try it:

Open in Read
Get the button

 

For those of you with self-hosted WordPress sites, we have a WordPress plugin that makes it simple to add references to your website.  Learn more.

In an effort to provide easier integration between other medical apps for iOS and Read (for iOS), we’re posting a simple snippet of code to make integration even easier. Use the following code, being careful to change myCompanyName to your company or app’s name.

// to open a paper in the 'Read by QxMD' app, simply use the following URL format:

// readbyqxmd://openpmid/[myCompanyName]/pmid (where [myCompanyName] is replaced by your company's name
//
// e.g.:
//

- (void)openPMID:(NSNumber *)pmid {
    
    NSString *customUrlString = [NSString stringWithFormat:@"readbyqxmd://openpmid/myCompanyName/%@", pmid];
    NSURL *qxCustomURL = [NSURL URLWithString:customUrlString];
    
    BOOL isAppInstalled = [[UIApplication sharedApplication] canOpenURL:qxCustomURL];
    
    
if(isAppInstalled) {
        
        [[UIApplication sharedApplication] openURL:qxCustomURL];
    }
    else {
        
        //display popup
        [[[UIAlertView alloc] initWithTitle:@"Read this Article?"
                                    message:@"Download \"Read by QxMD\" from the App Store to read this paper (Free download)"
                                   delegate:self
                          cancelButtonTitle:@"Cancel"
                          otherButtonTitles:@"Download", nil] show];
    }
}

- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex {
    
    //Download

    if(buttonIndex == 1) {   
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/app/read-personalized-medical/id574041839?mt=8"]];
    }
}

We’ve already seen MedCalc, Calculate, MyStudies and Lanthier – Practical Guide to Internal Medicine integrate full text links with Read.   Let your favorite app developers know that you want access to full text articles via Read. Integration couldn’t be simpler.