File: v16-clin-lab_request-dynamic.sql

package info (click to toggle)
gnumed-server 22.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 45,148 kB
  • sloc: sql: 1,217,279; python: 15,659; sh: 1,582; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- ==============================================================
-- GNUmed database schema change script
--
-- License: GPL v2 or later
-- Author: karsten.hilbert@gmx.net
-- 
-- ==============================================================
\set ON_ERROR_STOP 1

-- --------------------------------------------------------------
comment on column clin.lab_request.note_test_org is
	'A comment on this lab request by the performing organization (lab).';

\unset ON_ERROR_STOP
alter table clin.lab_request drop constraint clin_lab_req_sane_test_org_note cascade;
\set ON_ERROR_STOP 1


alter table clin.lab_request
	add constraint clin_lab_req_sane_test_org_note
		check (gm.is_null_or_non_empty_string(note_test_org) is True);

-- --------------------------------------------------------------
select gm.log_script_insertion('v16-clin-lab_request-dynamic.sql', '16.0');