kgrid-objects / opioid-collection

This is a collection of KOs for KGrid that can be used to identify and report on certain features of opioid prescribing
http://kgrid.org
GNU General Public License v3.0
0 stars 1 forks source link

Move knowledge objects to production library and assign permanent ArkID #6

Open kmmcgarry opened 7 years ago

kmmcgarry commented 7 years ago
cjlint-hl commented 7 years ago

In the meantime is it possible to add curl statements to the READMEs for manually adding KOs?

pboisver commented 7 years ago

Yes. Good idea... @kmmcgarry can you add these? Postman will generate them for you if you use the Code button and find cURL or Shell cURL. Probably the former...

added as a task in #4

cjlint-hl commented 7 years ago

@pboisver I imported the transition_of_care_objects.postman_collection.json collection and generated a code snippet using your instructions, but the resulting curl statement was

curl -X PUT -H "Cache-Control: no-cache" -H "Postman-Token: 1454b2de-0bb7-bd83-9dc7-421857eac65d" "http://localhost:8080/shelf/ark:/67034/k43k5p"

which still relies on the external library being set up.

Perhaps there needs to be a bash script or some such that pieces together the .xml and .py files into a curl statement?

pboisver commented 7 years ago

There is an authoring tool (basically a build tool) in the works that does some of this work to make it easier to get by without a library connection. Plus, we are in the final stages of setting up a public library which you will be able to access

For now I've added a second Postman collection with PUT requests that contain the entire object—no library needed. (transition-of-care-objects/medication/opioid-collection/LOCAL - Transition of Care Objects.postman_collection.json)

We will also update the docs to give parallel curl examples. Kristen is back in the office tomorrow and we will try to follow up then.

I also noticed that one of the POST requests fails with my local spring-boot jar executable, but works in the Tomcat container war deployment of the same version, so I tracking that issue down