Closed okeefm closed 5 years ago
Also, Travis failed (even though this view still shows it as "Pending").
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.
Closing this PR as I believe most (or all) has already been incorporated into master (perhaps via a different PR?).
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 theBloodPressureEntry
Entry and theSystolicPressure
/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 theBarAEntry
Entry and theFooA
andFooB
type restrictions on theBaz.foo
list.