Commit 7ff6db15 authored by Sebastian Mate's avatar Sebastian Mate
Browse files

Testing to get data from FHIR with a function call in get_fhir_fields, implemented in Testbed.sql

parent 61dd6b7d
This diff is collapsed.
......@@ -520,6 +520,11 @@ begin
jsonb_array_elements(jsonb_array_elements(fhir2->'category')->'coding')->>'code' as ModifierCode,
jsonb_array_elements(jsonb_array_elements(fhir2->'category')->'coding')->>'system' as ModifierSystem
from FhirTempTable
--select 'category' ModifierType, -- GECCO Condition
-- jsonb_array_elements(jsonb_array_elements(fhir2->'category')->'coding')->>'code' as ModifierCode,
-- jsonb_array_elements(jsonb_array_elements(fhir2->'category')->'coding')->>'system' as ModifierSystem
-- from FhirTempTable
--union
union
select 'component.code' ModifierType, -- GECCO Observation
jsonb_array_elements(jsonb_array_elements(fhir2->'component')->'code'->'coding')->>'code' as ModifierCode,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment