standardhealth / shr-es6-export

ES6 library for exporting SHR models to ES6 classes
Apache License 2.0
3 stars 0 forks source link

FromFHIR support for slicing by profile #32

Closed cmoesel closed 5 years ago

cmoesel commented 5 years ago

Currently requires FHIR references to be absolute. We should probably add support for relative links, but I wanted to get this out here sooner than later. Also noticing just now that I put a resolve property in the discriminator hash, but never actually use it (and just always assume we need to resolve). Should probably revisit that as well.

Also includes some cleanup of the tests and all the stuff that was getting printed to the console. And adds a new test to ensure that the CIMPL fixtures compile cleanly.

Last, moved the expensive setup calls to the before functions of tests so you can use mocha --grep to run only a subset of tests and not have to wait for all the setups.

cmoesel commented 5 years ago

Turns out that the tests crash. Locally I had some stale generated classes that allowed it to work. I'll have to fix this up later -- so don't merge for now.

cmoesel commented 5 years ago

OK. Tests are fixed. (That was annoying). I also updated the yarn lock for shr-fhir-export so that the test can successfully run on Travis.