[med-svn] [Git][med-team/gnumed-server][upstream] New upstream version 22.17
Andreas Tille (@tille)
gitlab at salsa.debian.org
Sat Feb 12 21:04:53 GMT 2022
Andreas Tille pushed to branch upstream at Debian Med / gnumed-server
Commits:
39022faf by Andreas Tille at 2022-02-12T21:59:37+01:00
New upstream version 22.17
- - - - -
9 changed files:
- server/bootstrap/fixup_db-v22.conf
- server/bootstrap/update_db-v21_v22.conf
- server/doc/schema/gnumed-entire_schema.html
- server/pycommon/gmMimeLib.py
- server/sql/gmClin-EMR-Structure-dynamic.sql
- server/sql/gmClinicalViews.sql
- + server/sql/v21-v22/data/v22-GNUmed-default_recalls_template.tex
- server/sql/v21-v22/fixups/v22-release_notes-fixup.sql
- + server/sql/v21-v22/python/v22-17-fixup-form-templates.py
Changes:
=====================================
server/bootstrap/fixup_db-v22.conf
=====================================
@@ -67,6 +67,7 @@ data import scripts = $data import scripts$
v22-import-form-templates.py
v22-2-fixup-form-templates.py
v22-import-plot-scripts.py
+v22-17-fixup-form-templates.py
$data import scripts$
#----------------------------------
=====================================
server/bootstrap/update_db-v21_v22.conf
=====================================
@@ -205,6 +205,7 @@ data import scripts = $data import scripts$
v22-import-form-templates.py
v22-2-fixup-form-templates.py
v22-import-plot-scripts.py
+v22-17-fixup-form-templates.py
$data import scripts$
=====================================
server/doc/schema/gnumed-entire_schema.html
=====================================
@@ -112,7 +112,7 @@
<body>
<!-- Primary Index -->
- <p><br><br>Dumped on 2021-08-02</p>
+ <p><br><br>Dumped on 2022-01-19</p>
<h1><a name="index">Index of database - gnumed_v22</a></h1>
<ul>
=====================================
server/pycommon/gmMimeLib.py
=====================================
@@ -189,16 +189,19 @@ def adjust_extension_by_mimetype(filename):
mime_suffix = guess_ext_by_mimetype(mimetype)
if mime_suffix is None:
return filename
+
old_name, old_ext = os.path.splitext(filename)
if old_ext == '':
new_filename = filename + mime_suffix
elif old_ext.lower() == mime_suffix.lower():
return filename
+
new_filename = old_name + mime_suffix
_log.debug('[%s] -> [%s]', filename, new_filename)
try:
os.rename(filename, new_filename)
return new_filename
+
except OSError:
_log.exception('cannot rename, returning original filename')
return filename
=====================================
server/sql/gmClin-EMR-Structure-dynamic.sql
=====================================
@@ -166,7 +166,7 @@ comment on column clin.encounter.assessment_of_encounter is
drop function clin.f_announce_h_issue_mod() cascade;
\set ON_ERROR_STOP 1
-create function clin.f_announce_h_issue_mod() returns opaque as '
+create function clin.f_announce_h_issue_mod() returns trigger as '
declare
patient_id integer;
begin
@@ -206,7 +206,7 @@ create index idx_encounter_affirmed on clin.encounter(last_affirmed);
drop function f_set_encounter_timezone() cascade;
\set ON_ERROR_STOP 1
-create function f_set_encounter_timezone() returns opaque as '
+create function f_set_encounter_timezone() returns trigger as '
begin
if TG_OP = ''INSERT'' then
NEW.source_time_zone := (select (extract(timezone from (select now()))::text || ''seconds'')::interval);
@@ -310,7 +310,7 @@ create unique index idx_uniq_open_epi_per_issue on clin.episode(is_open, fk_heal
drop function trf_announce_episode_mod() cascade;
\set ON_ERROR_STOP 1
-create function trf_announce_episode_mod() returns opaque as '
+create function trf_announce_episode_mod() returns trigger as '
declare
patient_id integer;
begin
=====================================
server/sql/gmClinicalViews.sql
=====================================
@@ -505,7 +505,7 @@ create trigger TR_clin_item_mod
drop function clin.f_protect_clin_root_item() cascade;
\set ON_ERROR_STOP 1
-create function clin.f_protect_clin_root_item() returns opaque as '
+create function clin.f_protect_clin_root_item() returns trigger as '
begin
raise exception ''INSERT/DELETE on <clin_root_item> not allowed.'';
return NULL;
@@ -1027,7 +1027,7 @@ comment on view clin.v_pat_narrative_soap is
drop function f_rfi_type2item() cascade;
\set ON_ERROR_STOP 1
-create function f_rfi_type2item() returns opaque as '
+create function f_rfi_type2item() returns trigger as '
declare
dummy integer;
msg text;
@@ -1101,7 +1101,7 @@ from
--drop trigger tr_check_narrative_is_fHx;
--\set ON_ERROR_STOP 1
---create function f_check_narrative_is_fHx() returns opaque as '
+--create function f_check_narrative_is_fHx() returns trigger as '
--declare
-- item_pk integer;
-- msg text;
=====================================
server/sql/v21-v22/data/v22-GNUmed-default_recalls_template.tex
=====================================
@@ -0,0 +1,74 @@
+%------------------------------------------------------------------
+% Author: Karsten Hilbert
+% License: GPL v2 or later
+%------------------------------------------------------------------
+
+\documentclass[english]{article}
+\usepackage[T1]{fontenc}
+\usepackage[cjkjis,graphics]{ucs}
+\usepackage[utf8x]{inputenc}
+\usepackage{longtable}
+\usepackage{tabu}
+\usepackage{graphicx}
+\usepackage[space]{grffile}
+\usepackage[a4paper]{geometry}
+\usepackage{hyperref}
+
+%\geometry{verbose,lmargin=2.54cm}
+\geometry{verbose,lmargin=1cm}
+\pagestyle{empty}
+\setlength{\parskip}{\medskipamount}
+\setlength{\parindent}{0pt}
+
+\makeatletter
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
+%% Because html converters don't know tabularnewline
+\providecommand{\tabularnewline}{\\}
+
+\makeatother
+
+\usepackage{babel}
+
+\begin{document}
+
+\footnotetext {\tiny \href{http://www.gnumed.org}{GNUmed} $<client_version::::>$ -- \href{http://www.gnumed.org}{www.gnumed.org}}
+\footnotetext {\tiny Template: $<form_name_long::::60>$ v$<form_version::::20>$}
+
+
+\noindent \begin{center}
+{\large Upcoming healthcare events } \\
+{\small $<current_provider::::>$ }
+\par\end{center}
+
+
+\noindent Patient: $<lastname::::>$, $<firstname::::>$ ($<date_of_birth::%Y %B %d::>$)
+
+{\footnotesize
+ $<adr_street::home::>$ $<adr_number::home//%s{}\\::>$
+ $<adr_postcode::home::>$ $<adr_location::home::>$
+}
+
+%\vspace*{\medskipamount}
+
+Your upcoming healthcare events ({\small as of $<today::%Y %B %d::>$}):
+
+\begin{longtabu} to \textwidth {|l|l|X[,L]|}
+\hline
+Due & Type & \tabularnewline
+\hline
+\hline
+$<reminders::%(due_date)s & {\footnotesize %(l10n_type)s } & %(comment)s \tabularnewline \hline//%Y %b %d::>$
+\end{longtabu}
+
+
+\vfill{}
+
+
+\noindent \begin{flushright}
+%$ <data_snippet::autograph-LMcC//\includegraphics[width=30mm]{%s}//image/png//.png::250> $
+\texttt{\textsl{\footnotesize Practice Stamp / Physician Signature}}
+\par\end{flushright}
+\end{document}
+
+%------------------------------------------------------------------
=====================================
server/sql/v21-v22/fixups/v22-release_notes-fixup.sql
=====================================
@@ -17,38 +17,19 @@ INSERT INTO dem.message_inbox (
) VALUES (
(select pk from dem.staff where db_user = 'any-doc'),
(select pk_type from dem.v_inbox_item_type where type = 'memo' and category = 'administrative'),
- 'Release Notes for GNUmed 1.8.6 (database v22.16)',
- 'GNUmed 1.8.6 Release Notes:
+ 'Release Notes for GNUmed 1.8.7 (database v22.17)',
+ 'GNUmed 1.8.7 Release Notes:
- 1.8.6
+ 1.8.7
-FIX: unlocking encounters (missing import)
-FIX: row locking code
-FIX: metadata: screenshots URL in appdata.xml
-FIX: GUI: screenshot function [thanks The-o]
-FIX: medical interval formatting [thanks brulefa]
-FIX: date/time input: time parsing
-FIX: date/time input: function key to weekday mapping
-FIX: encounters: do not crash if current encounter is deleted
-FIX: paperwork: fix emr_journal placeholder LaTeX escaping [thanks Marc]
+FIX: export area: dumping encrypted/PDFed image to disk
+FIX: top panel: heart rate display
+FIX: paperwork: recalls list LaTeX template
-IMPROVED: desktop entry file [thanks freddii]
-IMPROVED: patient switch: encounter checking
-IMPROVED: pat overview: problems display
-IMPROVED: DB: connection loss detection
-IMPROVED: measurement EA: previous result formatting
-IMPROVED: DB: login problem logging
-IMPROVED: top pane: show age of results in tooltip
-IMPROVED: paperwork: LaTeX formatting of text
-IMPROVED: EMR: extend search to select demographics [thanks brulefa]
-IMPROVED: startup: bash code [thanks shellcheck]
+ 22.17
- 22.16
-
-IMPROVED: bootstrapper: check disk space
-
-FIX: check encounter lock in clin.remove_old_empty_encounters()
+FIX: CREATE FUNCTION ... RETURNS OPAQUE -> TRIGGER [thanks SantyCW at es_AR]
');
-- --------------------------------------------------------------
-select gm.log_script_insertion('v22-release_notes-fixup.sql', '22.16 at 1.8.6');
+select gm.log_script_insertion('v22-release_notes-fixup.sql', '22.17 at 1.8.7');
=====================================
server/sql/v21-v22/python/v22-17-fixup-form-templates.py
=====================================
@@ -0,0 +1,31 @@
+# coding: utf8
+#==============================================================
+# GNUmed database schema change script
+#
+# License: GPL v2 or later
+# Author: karsten.hilbert at gmx.net
+#
+#==============================================================
+import os
+
+from Gnumed.pycommon import gmPG2
+
+#--------------------------------------------------------------
+def run(conn=None):
+
+ #------------------------------------
+ # recalls
+ gmPG2.file2bytea (
+ query = u"""
+ UPDATE ref.paperwork_templates SET
+ data = %(data)s::bytea,
+ external_version = '22.17'
+ WHERE
+ name_long = 'Upcoming Recalls (GNUmed default)'""",
+ filename = os.path.join('..', 'sql', 'v21-v22', 'data', 'v22-GNUmed-default_recalls_template.tex'),
+ conn = conn
+ )
+ #------------------------------------
+ return True
+
+#==============================================================
View it on GitLab: https://salsa.debian.org/med-team/gnumed-server/-/commit/39022faf00df568a029587e3ca1e1bdb1d291113
--
View it on GitLab: https://salsa.debian.org/med-team/gnumed-server/-/commit/39022faf00df568a029587e3ca1e1bdb1d291113
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220212/6606b1dc/attachment-0001.htm>
More information about the debian-med-commit
mailing list