112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
# File 'lib/us_core_test_kit/generator/value_extractor.rb', line 112
def codings_from_bound_systems(bound_systems)
return [] unless bound_systems.present?
bound_systems.flat_map do |bound_system|
case bound_system
when FHIR::ValueSet::Compose::Include
bound_system.concept.map { |concept| { system: bound_system.system, code: concept.code } }
when FHIR::CodeSystem
bound_system.concept.map { |concept| { system: bound_system.url, code: concept.code } }
else
[]
end
end.uniq
end
|