Module: InfernoJson

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#from_json(json) ⇒ Object



28
29
30
31
32
# File 'lib/inferno/ext/fhir_models.rb', line 28

def from_json(json)
  resource = super(json)
  resource.source_text = json
  resource
end