Sha256: ae514efc9411e19586f92dec90580619396d3aac12de7ee821478ff5e7137005
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 Bytes
Contents
module HealthDataStandards module Import module GreenC32 class ProcedureImporter < SectionImporter include Singleton def initialize super end def import(procedure_xml) procedure_xml.root.add_namespace_definition('gc32', "urn:hl7-org:greencda:c32") procedure_element = procedure_xml.xpath("./gc32:procedure") procedure = Procedure.new extract_entry(procedure_element, procedure) extract_type(procedure_element, procedure) procedure end private def extract_type(procedure_xml, procedure) type = procedure_xml.xpath("./gc32:type").first procedure.type = extract_node_text(type) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
health-data-standards-0.8.1 | lib/health-data-standards/import/green_c32/procedure_importer.rb |
health-data-standards-0.8.0 | lib/health-data-standards/import/green_c32/procedure_importer.rb |