I would like to do basic crud operations on transactions (specifically referrals) via an API. Checked the docs (well written) and didn’t see anything related to transactions there so I forked and started implementing it myself. Just curious what the usual turn around is for getting a PR completed.
Hi @JMoore , can be quite fast. @brady.miller reliably reviews the code magically overnight and by the next morning you’ll find something he left. Kind of like the
@stephenwaite Hi, me again. Another quick question for you on this. So say i want to do this work on 5.0.2. What would you recommend as the best way to deploy this? Are there still official patches being created for this version that i could wait for? Or would i have to create this manually?
Haven’t been able to find much documentation on this so feel free to point me there if you know of any that answer this question.
@stephenwaite Will ponder this, i was trying to go with an approach that didn’t involve updating to V6. With this in mind, the best place for me to do this would be in rel-502 right?
Well that’s good to know. So if i did the changes in master, and then ported them to V6 then i’d just have to wait until the next patch is created i guess.
I’ll be holding you to that . If i did take the lazy man approach and wait for a patch, is there a timeline on these things like every x months, or do patches just appear when the time is right?
Also noticed that if i change ‘GET /api/patient’ to ‘GET /api/patientTest’ and try to call that i get the same 401 error. Am i missing a spot to declare my new api?
So I’m guessing you haven’t added the corresponding scope to the ScopeRepository.php::apiScopes() function. For your test it would be user/APITest.read and patient/APITest.read.
You’ll need to register a client with the APITest.read scope and request that with your access token. Otherwise you’ll get the 401 error you are seeing.
Something you may find helpful is how the module system extends the API. I wrote a skeleton module that shows how to extend the FHIR api in a module via the events. https://github.com/adunsulag/oe-module-custom-skeleton
Also checked out the repo you sent (really cool), and it looks to be the route i want to go. I’d like to get my new api up and running in dev to get my feet wet with the code base, then transition it to a module.