wanghaisheng / fhir-cn

FHIR中文版 the Chinese translation of FHIR
https://github.com/FHIR-CN/fhir-spec-ZhCN
72 stars 23 forks source link

conditional create、update、delete 方法不一致的问题 #51

Open wanghaisheng opened 9 years ago

wanghaisheng commented 9 years ago

hi, also why search params for conditional operations are passed in header for create and in query params for update and delete ? Why it's not consistent ?

wanghaisheng commented 9 years ago

[15/6/8 下午10:55:42] James Agnew: I raised this as a concern on the list back when I implemented the new transactions, and this was Grahame's response: [15/6/8 下午10:55:46] James Agnew: "well, we couldn't do the conditional post as a URL - it violates the letter and spirit of HTTP. It would pretty much be, see this URL: post to anything but this. That's a pretty big violation. We could have done the other two the same way, but it really did seem much more convenient and natural to do them as PUT/DELETE to a URL. If people think that consistency is better than simplicity, and prefer to have a custom header instead, I wouldn't really object " [15/6/8 下午10:56:20] James Agnew: I figured I'd wait to see if others felt the same way before thinking about it again