File: gmProviderInbox-data.sql

package info (click to toggle)
gnumed-server 16.17-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,064 kB
  • sloc: sql: 1,190,603; python: 11,850; sh: 1,082; makefile: 19
file content (66 lines) | stat: -rw-r--r-- 2,112 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
-- ============================================
-- GNUmed - initial data for the provider inbox
-- ============================================
-- $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/sql/gmProviderInbox-data.sql,v $
-- $Id: gmProviderInbox-data.sql,v 1.2 2006-05-10 13:04:20 ncq Exp $
-- license: GPL v2 or later
-- author: Karsten.Hilbert@gmx.net

-- =============================================
-- force terminate + exit(3) on errors if non-interactive
\set ON_ERROR_STOP 1

-- dem.inbox_item_category --
insert into dem.inbox_item_category (description, is_user) values (
	i18n.i18n('clinical'), False);
insert into dem.inbox_item_category (description, is_user) values (
	i18n.i18n('personal'), False);
insert into dem.inbox_item_category (description, is_user) values (
	i18n.i18n('administrative'), False);

-- dem.inbox_item_type --
insert into dem.inbox_item_type
	(fk_inbox_item_category, description, is_user)
values (
	(select pk from dem.inbox_item_category where description = 'clinical'),
	i18n.i18n('review lab'),
	False
);

insert into dem.inbox_item_type
	(fk_inbox_item_category, description, is_user)
values (
	(select pk from dem.inbox_item_category where description = 'clinical'),
	i18n.i18n('review docs'),
	False
);

insert into dem.inbox_item_type
	(fk_inbox_item_category, description, is_user)
values (
	(select pk from dem.inbox_item_category where description = 'personal'),
	i18n.i18n('FYI'),
	False
);

insert into dem.inbox_item_type
	(fk_inbox_item_category, description, is_user)
values (
	(select pk from dem.inbox_item_category where description = 'administrative'),
	i18n.i18n('memo'),
	False
);

-- =============================================
-- do simple schema revision tracking
select log_script_insertion('$RCSfile: gmProviderInbox-data.sql,v $2', '$Revision: 1.2 $');

-- =============================================
-- $Log: gmProviderInbox-data.sql,v $
-- Revision 1.2  2006-05-10 13:04:20  ncq
-- - two more inbox data types
--
-- Revision 1.1  2006/01/22 18:11:42  ncq
-- - add some essential data such as types/categories
--
--