How to Get FHIR Photo for Patient from a URL

浪子不回头ぞ 提交于 2019-12-11 08:23:49

问题


Consider the FHIR Patient data at http://spark.furore.com/fhir/Patient/f201.

How can I get the photo object referenced therein at URL "binary/@f006"??

I would have thought an HTTP GET on http://spark.furore.com/fhir/binary/@f006 would have done it, but alas...


回答1:


the data there is wrong. Your conversion to the get was correct, but you ended up with a wrong URL because the reference is wrong in the first place.

It should say: url="Binary/f006" which would equate to a get of http://spark.furore.com/fhir/Binary/f006. That doesn't work either, which is another error in the way things are defined.

See http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=6107 for follow ups




回答2:


Yes, this reference is outdated, and we are not distributing Binaries currently as part of the examples in the FHIR specification. Our server Spark loads the examples from the specification when we initialize the database, hence the images are not there.

For now, I have uploaded the correct image to Binary/f006 and have updated the link in Patient/f201, so things should work now. When we re-initialize the database (we don't do this often), these changes will be reversed, but a simple PUT to Binary/f006 and an update of Patient/f201 will fix this of course.



来源:https://stackoverflow.com/questions/29641448/how-to-get-fhir-photo-for-patient-from-a-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!