Adds support for instantiating SHR classes based on mapped FHIR resources. Each class gets a new, static fromFHIR function which takes in the relevant FHIR resource, along with other relevant data to produce the SHR object from. See prior discussion on #27
Note that because of issues identified in the toFHIR logic while creating this, this disables the toFHIR function, though it can be re-enabled by setting a flag in generateClass.js
This PR replaces #33:
Adds support for instantiating SHR classes based on mapped FHIR resources. Each class gets a new, static
fromFHIR
function which takes in the relevant FHIR resource, along with other relevant data to produce the SHR object from. See prior discussion on #27Note that because of issues identified in the toFHIR logic while creating this, this disables the toFHIR function, though it can be re-enabled by setting a flag in
generateClass.js