2 // ------------------------------------------------------------------------ //
3 // Garden State Health Systems //
4 // Copyright (c) 2010 gshsys.com //
5 // <http://www.gshsys.com/> //
6 // ------------------------------------------------------------------------ //
7 // This program is free software; you can redistribute it and/or modify //
8 // it under the terms of the GNU General Public License as published by //
9 // the Free Software Foundation; either version 2 of the License, or //
10 // (at your option) any later version. //
12 // You may not change or alter any portion of this comment or credits //
13 // of supporting developers from this source code or any supporting //
14 // source code which is considered copyrighted (c) material of the //
15 // original comment or credit authors. //
17 // This program is distributed in the hope that it will be useful, //
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
20 // GNU General Public License for more details. //
22 // You should have received a copy of the GNU General Public License //
23 // along with this program; if not, write to the Free Software //
24 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
25 // ------------------------------------------------------------------------ //
29 $e_ccrDocObjID = $ccr->createElement('CCRDocumentObjectID', getUuid());
30 $e_ccr->appendChild($e_ccrDocObjID);
32 $e_Language = $ccr->createElement('Language');
33 $e_ccr->appendChild($e_Language);
35 $e_Text = $ccr->createElement('Text', 'English');
36 $e_Language->appendChild($e_Text);
38 $e_Version = $ccr->createElement('Version', 'V1.0');
39 $e_ccr->appendChild($e_Version);
41 $e_dateTime = $ccr->createElement('DateTime');
42 $e_ccr->appendChild($e_dateTime);
44 $e_ExactDateTime = $ccr->createElement('ExactDateTime', date('Y-m-d\TH:i:s\Z'));
45 $e_dateTime->appendChild($e_ExactDateTime);
47 $e_patient = $ccr->createElement('Patient');
48 $e_ccr->appendChild($e_patient);
50 //$e_ActorID = $ccr->createElement('ActorID', $row['patient_id']);
51 $e_ActorID = $ccr->createElement('ActorID', 'A1234'); // This value and ActorID in createCCRActor.php should be same.
52 $e_patient->appendChild($e_ActorID);
55 $e_From = $ccr->createElement('From');
56 $e_ccr->appendChild($e_From);
58 $e_ActorLink = $ccr->createElement('ActorLink');
59 $e_From->appendChild($e_ActorLink);
61 $e_ActorID = $ccr->createElement('ActorID', $authorID );
62 $e_ActorLink->appendChild($e_ActorID);
64 $e_ActorRole = $ccr->createElement('ActorRole');
65 $e_ActorLink->appendChild($e_ActorRole);
67 $e_Text = $ccr->createElement('Text', 'author');
68 $e_ActorRole->appendChild($e_Text);
71 $e_To = $ccr->createElement('To');
72 $e_ccr->appendChild($e_To);
74 $e_ActorLink = $ccr->createElement('ActorLink');
75 $e_To->appendChild($e_ActorLink);
77 //$e_ActorID = $ccr->createElement('ActorID', $row['patient_id']);
78 $e_ActorID = $ccr->createElement('ActorID', 'A1234');
79 $e_ActorLink->appendChild($e_ActorID);
81 $e_ActorRole = $ccr->createElement('ActorRole');
82 $e_ActorLink->appendChild($e_ActorRole);
84 $e_Text = $ccr->createElement('Text', 'patient');
85 $e_ActorRole->appendChild($e_Text);
88 $e_Purpose = $ccr->createElement('Purpose');
89 $e_ccr->appendChild($e_Purpose);
91 $e_Description = $ccr->createElement('Description');
92 $e_Purpose->appendChild($e_Description);
94 $e_Text = $ccr->createElement('Text', 'Summary of patient information');
95 $e_Description->appendChild($e_Text);