Module: InfernoXml

Included in:
FHIR::Xml
Defined in:
lib/inferno/ext/fhir_models.rb

Overview

Extension to FHIR::Xml. Prepending this into FHIR::Xml (done below) allows us to call super() on from_xml

Instance Method Summary collapse

Instance Method Details

#from_xml(xml) ⇒ Object



38
39
40
41
42
# File 'lib/inferno/ext/fhir_models.rb', line 38

def from_xml(xml)
  resource = super(xml)
  resource.source_text = xml
  resource
end