Class: OpenEHR::Parser::XMLArchetypeParser
- Defined in:
- lib/openehr/parser/xml_archetype_parser.rb
Overview
Reads the canonical openEHR ITS-XML archetype shape that
XMLSerializer (lib/openehr/serializer/xml_serializer.rb) emits -
see that file's header comment for how that shape was established
as ground truth. Mirrors ADLParser#archetype's construction
pattern (a small constructor-argument method per Archetype.new
keyword) and shares the same
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from OpenEHR::Parser::Base
Instance Method Details
#parse ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/openehr/parser/xml_archetype_parser.rb', line 21 def parse archetype rescue OpenEHR::Parser::ParseError raise rescue StandardError => e raise OpenEHR::Parser::ParseError, "invalid XML archetype (#{@filename}): #{e.class}: #{e.}" end |