wanghaisheng / fhir-cn

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

fhir的数据 序列化格式 #11

Closed wanghaisheng closed 9 years ago

wanghaisheng commented 9 years ago

目前 支持XML JSON两种,但在医疗领域,数据量颇大,是否考虑在传输时将其转换为avro等其他序列化格式 在展现和使用时再转换为JSON格式

jiangpan commented 9 years ago

学习了

wanghaisheng commented 9 years ago

包括考虑参考skynet的sproto格式 、 比protocol buffer快20倍的 Simple Binary Encoding (SBE) https://github.com/real-logic/simple-binary-encoding http://mechanical-sympathy.blogspot.sg/2014/05/simple-binary-encoding.html

wanghaisheng commented 9 years ago

如果走avro格式 数据的存储是否可以参考豌豆荚的 https://github.com/wandoulabs/astore

wanghaisheng commented 9 years ago

数据库表结构转avro schema

1、FHIRBASE 2、hapi-fhir的数据结构 3、grahame的测试服务器

xml schema转avro schema

1、诺基亚的 Tool which generates Avro schemas and Java bindings from XML schemas.

2、 Generate Avro schema and Avro binary from XSD schema and XML

java 类转avro schema

wanghaisheng commented 9 years ago

Cap’n Proto is an insanely fast data interchange format and capability-based RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster. In fact, in benchmarks, Cap’n Proto is INFINITY TIMES faster than Protocol Buffers. https://capnproto.org/