marks / ONC-EHR-Incentives-Program-Payout-Data

Working with data from various HHS/CMS and other data sources to compare healthcare providers
http://hitech.socialhealthinsights.com
MIT License
3 stars 3 forks source link

Facebook comparison #11

Open jimfloyd opened 11 years ago

jimfloyd commented 11 years ago

Might be interesting to compare hospital facebook likes to your HCAHPS patient perspective survey data: http://ow.ly/iDpsf

marks commented 11 years ago

Good idea, @jimfloyd! Thanks.

marks commented 11 years ago

Need to figure out a good way to link CCN/NPI/provider name field to hospital facebook pages. Quick example with GWU Hospital (http://www.gwhospital.com/):

  1. Facebook Graph page search (https://graph.facebook.com/search?q=george%20washington%20hospital&type=page) returns three results:

     {
         data: [
             {
                 category: "Local business",
                 name: "George Washington University Hospital",
                 id: "106860256021827"
             },
             {
                 category: "Interest",
                 name: "George Washington University Hospital",
                 id: "116840311659362"
             },
             {
                 category: "Non-profit organization",
                 name: "George Washington University Hospital Women's Board",
                 id: "290122385770"
             }
         ],
         paging: {
             next: "https://graph.facebook.com/search?q=george+washington+hospital&type=page&limit=25&offset=25&__after_id=290122385770"
         }
     }
  2. Page we are interested in is first in the list (this time) and full likes/checkins/etc details are at https://graph.facebook.com/106860256021827:

     {
         about: "George Washington University Hospital is a 371-bed hospital in Washington, D.C.High-Quality Healthcare. Advanced Medical Technology. World Class Service.",
         checkins: 5992,
         description: "George Washington University Hospital is a 371-bed hospital in Washington, D.C.High-Quality Healthcare. Advanced Medical Technology. World Class Service.",
         is_published: true,
         location: {
             street: "900 23rd Street, NW",
             city: "Washington",
             state: "DC",
             country: "United States",
             zip: "20037",
             latitude: 38.901207478955,
             longitude: -77.04989501763
         },
         parking: {
             street: 1,
             lot: 1,
             valet: 1
         },
         phone: "202-715-4000",
         public_transit: "Foggy Bottom Metro Station (Orange and Blue Lines)",
         talking_about_count: 77,
         username: "gwuhospital",
         website: "www.gwhospital.com",
         were_here_count: 11191,
         category: "Local business",
         id: "106860256021827",
         name: "George Washington University Hospital",
         link: "https://www.facebook.com/gwuhospital",
         likes: 1534,
         cover: {
             cover_id: 347865695254614,
             source: "http://sphotos-b.xx.fbcdn.net/hphotos-ash4/s720x720/423255_347865695254614_1549949100_n.jpg",
             offset_y: 87,
             offset_x: 0
         }
     }
jimfloyd commented 11 years ago

Thinking out loud here... maybe do a scape of FB pages for hospitals from sites such as: http://network.socialmedia.mayoclinic.org/hcsml-grid/ to create a data set correlated to the CCN/NPI/provider name field?

marks commented 11 years ago

@jimfloyd - great idea! Am all for leveraging previous work.

I'll add reaching out to @mayoclinic to my list unless you have a contact there. (i'd much prefer to help them design/create data export (or better yet an API) process rather than screen scrape with or without their permission)

jimfloyd commented 11 years ago

no contact there... sounds good