eashman / ruby-cda

lib for parse & generation of HL7 cda documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby CDA

Build Status

Lib for parse & generation of HL7 cda documents

FAQ

How to parse CCD?

See example in path/to/ruby-cda/examples/parse_ccd.rb

Error: Expected only one node as result of templateId/@root

Error occurs due to multiple templateIds are present in your ccd. Unfortunately ruby-cda gem does not support multiple templateIds. Internally ruby-cda chooses class of node based on OID from templateId. You can find this mapping here: https://github.com/hospital-systems/ruby-cda/blob/master/lib/ccd/_registry.rb Choosen class determines node behaviour and available accessor methods. Actually to support multiple template ids we should be able to 'assign' multiple classes to one object. It's only achievable using ruby modules (mixins), not classes.

About

lib for parse & generation of HL7 cda documents


Languages

Language:Ruby 100.0%