Method: HQMF1::Document.parse
- Defined in:
- lib/hqmf-parser/1.0/document.rb
.parse(hqmf_contents) ⇒ Nokogiri::XML::Document
Parse an XML document from the supplied contents
133 134 135 136 137 |
# File 'lib/hqmf-parser/1.0/document.rb', line 133 def self.parse(hqmf_contents) doc = Nokogiri::XML(hqmf_contents) doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3') doc end |