Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
sql_commands_-_search_logs_-_sundhedsjournal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sql_commands_-_search_logs_-_sundhedsjournal [2021/10/13 12:13]
192.168.1.254 Added updated_at timestamp and fixed wrong alias for "Handleplan" reference
sql_commands_-_search_logs_-_sundhedsjournal [2025/10/21 14:04] (current)
20.171.207.78 old revision restored (2021/10/13 12:01)
Line 6: Line 6:
 ===Show information about the ID's found=== ===Show information about the ID's found===
 <code sql> <code sql>
-select et.name,fd.id,fd.alias,fd.name,f.entity_id,f.updated_at at time zone 'utc' at time zone 'Europe/Copenhagen' "updated_at_localtime"+select et.name,fd.id,fd.alias,fd.name,f.entity_id, 
-       case when fd.alias='sygeplejeproblem' then get_name((select reference_id from fields f2 join field_descriptors fd2 on (fd2.id=f2.field_descriptor_id) where fd2.alias='person' and f2.entity_id=f.reference_id limit 1))+       case when fd.alias='handleplan' then get_name((select reference_id from fields f2 join field_descriptors fd2 on (fd2.id=f2.field_descriptor_id) where fd2.alias='person' and f2.entity_id=f.reference_id limit 1))
        else coalesce(get_name(f.reference_id),f.value_text) end        else coalesce(get_name(f.reference_id),f.value_text) end
 from fields f join field_descriptors fd on (fd.id=f.field_descriptor_id) from fields f join field_descriptors fd on (fd.id=f.field_descriptor_id)
sql_commands_-_search_logs_-_sundhedsjournal.txt · Last modified: 2025/10/21 14:04 by 20.171.207.78