wanghaisheng / fhir-cn

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

Bundle List的区别 #6

Closed wanghaisheng closed 9 years ago

wanghaisheng commented 9 years ago

[15/2/11 上午11:45:23] Grahame Grieve: bundle is part of the restful api, or used outside the restful API. In the API, bundles are built on the fly. [15/2/11 上午11:46:07] Grahame Grieve: so a bundle doens't have meaning. And just because a resource is in a bundle, that doesn't tell you anything about what it means. It's just in the bundle. [15/2/11 上午11:47:09] Grahame Grieve: defining a list, and referencing the resource from the list, says that this resource is in a list, and you know what the list means. And that reference is the same on the RESTful api. or if they are both in a bundle for some reason. and it remains the same if they are moved in and you of the bundle

wanghaisheng commented 9 years ago

lmckenzi在15/2/11的上午11:52输入:

You can pass around a List by itself without its content and it can be useful. "The high-priority problems for patient X are <ref 1/> <ref 2/> <ref 3/>". There can be meaning in a List with no items. E.g. "The patient has no known allergies". There can never be meaning in an empty Bundle. A Bundle is just a packaging mechanism to ship multiple things at once. It's all about packaging for transmission/persistence, not meaning.

wanghaisheng commented 9 years ago

I think this List discussion highlights some (50 shades of) grey area around Lists that are dynamic (query/views) and those that are static (managed) - related to List.mode vocab? Yes - what makes dynamic lists different than a bundle - other than can have an emptyReason, and list can be contained in Document or other containers...