ozunconf18
ozunconf18 copied to clipboard
🏥 👩⚕️ MyHospitals.gov.au API exploration
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
@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!
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).
Wow @hrbrmstr - thank you so much!

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
hozpitals ?
Created here: https://github.com/ropenscilabs/ozhospitals
Thanks Mat!
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 :)
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
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.