Skip to content

Updating Generated ES6 classes

Julia Afeltra edited this page May 3, 2018 · 6 revisions

Notes on updating the generated SHR ES6 Classes

json-helper.js

  1. Flux has added the following line to createInstance() in order to handle null values in JSON:
  if (value == null) return null;

Insert this line before the if (typeof value === 'object') block (as of 5/3/2018, this is line 134). The additional line allows you to set { "Value": null } properly.

ES6 Classes

  1. Flux created SourceClinicalNote while it is still in development in the SHR. Due to this, some manual edits to the generated classes is needed:
  • Manually create the src/model/shr/base/SourceClinicalNote.js file.
  • Add get and set methods for SourceClinicalNotes in src/model/shr/base/Entry.js.
Clone this wiki locally