ozunconf18 icon indicating copy to clipboard operation
ozunconf18 copied to clipboard

🏥 👩‍⚕️ MyHospitals.gov.au API exploration

Open adam-gruer opened this issue 7 years ago • 10 comments

Another API to explore , wrap. Performance data for Australian hospitals is available here

there are three endpoints list of hospitals , many have lat and lon coords list of indicators the data for a particular indicator - optionally with start and end date

adam-gruer avatar Nov 20 '18 04:11 adam-gruer

@hrbrmstr has a 20 minute screencast of his creation of an API package for file.io. - https://www.youtube.com/watch?v=usXZNnc0JK4

Could be a good start for your own API package. I've had it bookmarked for so long, this might encourage me to actually watch it!

coolbutuseless avatar Nov 20 '18 07:11 coolbutuseless

Lemme know where I should transfer this to https://github.com/hrbrmstr/hosperf/

😎

Some notes:

  • 27 minutes to make b/c I had to talk to someone while making it and try to decipher the API output
  • no heavyweight deps and I've memoised the endpoints
  • there's a note about an API data issue inside get_indicators
  • get_datasets() needs attention; It's a complex return value that (I think) changes alot depending on what was asked for and is kinda raw right now; the parameters could use some validation (and rOpenSci has some other standards around that) —but the unconf folks need something to do, right? :-)
  • No tests (wish I had the time today but figuring out legit return vals for a 2 of the endpoints wld take more time than I've got).

hrbrmstr avatar Nov 20 '18 13:11 hrbrmstr

Wow @hrbrmstr - thank you so much!

adam-gruer avatar Nov 20 '18 22:11 adam-gruer

Hello @njtierney Would it be possible too create an ropenscilabs repo and @hrbrmstr can shift his code into it. This is a wonderful knid of ozunconf18 remote project.
I hope to add to this amazing start by @hrbrmstr by addressing addressing some of the notes he mentions above May I suggest calling it ozhospitals

adam-gruer avatar Nov 26 '18 01:11 adam-gruer

hozpitals ?

mdsumner avatar Nov 26 '18 01:11 mdsumner

Created here: https://github.com/ropenscilabs/ozhospitals

Lingtax avatar Nov 26 '18 02:11 Lingtax

Thanks Mat!

adam-gruer avatar Nov 26 '18 02:11 adam-gruer

Hi @adam-gruer ! I've added you as a member of rOpenSci labs now, so you can now create repos in the future as well :)

njtierney avatar Nov 26 '18 07:11 njtierney

I'm unsure of the recommended way to move @hrbrmstr pkg to https://github.com/ropenscilabs/ozhospitals Any tips? I've renamed a package before so I'm okay with that but it's the intial github logistics

adam-gruer avatar Nov 26 '18 22:11 adam-gruer

OK so the best way actually would be for @hrbrmstr to go to the "danger zone" part of settings of hosperf and transfer it to ropenscilabs.

You can then rename the repo ozhospitals, but you will need to delete the current ozhospitals.

njtierney avatar Nov 27 '18 00:11 njtierney