Commit 14c461d9 authored by Sebastian Mate's avatar Sebastian Mate
Browse files

Use now() when no date is specified (Observation, Procedure)

parent d5c87e45
......@@ -406,7 +406,8 @@ begin
else 'UNKNOWN'
end || ':' || fhir_data.code, -- concept_cd
'FHIR', -- provider_id
fhir_data.performedDateTime, -- start_date
case when fhir_data.performedDateTime is not null then fhir_data.performedDateTime
else now() end, -- start_date
'@', -- modifier_cd
nextval('instance_num_seq'), -- instance_num
'@', -- valtype_cd
......@@ -415,7 +416,8 @@ begin
null, -- valueflag_cd
null, -- quantity_num
null, -- units_cd
fhir_data.performedDateTime, -- end_date
case when fhir_data.performedDateTime is not null then fhir_data.performedDateTime
else now() end, -- end_date
'', -- location_cd
FHIR_id, -- observation_blob
0, -- confidence_num
......
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