File: test_data-Kirk-diagnostic_certainty-dynamic.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 (53 lines) | stat: -rw-r--r-- 1,503 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
-- =============================================
-- Project GNUmed

-- James T. Kirk test data: second CRP result for a particular day

-- author: Karsten Hilbert <Karsten.Hilbert@gmx.net>
-- license: GPL v2 or later
--
-- $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/sql/test-data/test_data-Kirk-diagnostic_certainty-dynamic.sql,v $
-- $Revision: 1.1 $
-- =============================================

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

--set default_transaction_read_only to off;

--begin;
-- =============================================
update clin.health_issue
set
	diagnostic_certainty_classification = 'D'
where
	description = 'post appendectomy/peritonitis'
		and
	fk_encounter in (select pk from clin.encounter where fk_patient = 12)
;


update clin.health_issue
set
	diagnostic_certainty_classification = 'C'
where
	description = '9/2000 extraterrestrial infection'
		and
	fk_encounter in (select pk from clin.encounter where fk_patient = 12)
;

-- =============================================
-- do simple schema revision tracking
select gm.log_script_insertion('$RCSfile: test_data-Kirk-diagnostic_certainty-dynamic.sql,v $', '$Revision: 1.1 $');

-- comment out the "rollback" if you want to
-- really store the above patient data
--rollback;
--commit;

-- =============================================
-- $Log: test_data-Kirk-diagnostic_certainty-dynamic.sql,v $
-- Revision 1.1  2009-09-01 22:11:26  ncq
-- - new
--
--