standardhealth / shr-es6-export

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

To fhir slicing #24

Closed okeefm closed 5 years ago

okeefm commented 6 years ago

This PR adds support for two different types of "slicing" in SHR to the toFHIR exporter.

1) Slicing where two fields on an Entry map to the same list field in a FHIR element. This is represented by the BloodPressureEntry Entry and the SystolicPressure/DiastolicPressure fields.

2) Slicing where one list field on an Entry maps to a list field in a FHIR element, but the types that are included in the list on the SHR side are constrained. This is represented by the BarAEntry Entry and the FooA and FooB type restrictions on the Baz.foo list.

cmoesel commented 6 years ago

Also, Travis failed (even though this view still shows it as "Pending").

okeefm commented 6 years ago

Not sure why travis is still showing as "Pending" here. Looks like Travis failed because of dependencies; once https://github.com/standardhealth/shr-fhir-export/pull/103 gets merged in this should pass; otherwise I can point this branch at to_fhir_slicing until it gets merged in.

cmoesel commented 5 years ago

Closing this PR as I believe most (or all) has already been incorporated into master (perhaps via a different PR?).