6 * Copyright (C) 2010 Garden State Health Systems <http://www.gshsys.com/>
8 * LICENSE: This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 3
11 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
20 * @author Garden State Health Systems <http://www.gshsys.com/>
21 * @link http://www.open-emr.org
26 $e_ccrDocObjID = $ccr->createElement('CCRDocumentObjectID', getUuid());
27 $e_ccr->appendChild($e_ccrDocObjID);
29 $e_Language = $ccr->createElement('Language');
30 $e_ccr->appendChild($e_Language);
32 $e_Text = $ccr->createElement('Text', 'English');
33 $e_Language->appendChild($e_Text);
35 $e_Version = $ccr->createElement('Version', 'V1.0');
36 $e_ccr->appendChild($e_Version);
38 $e_dateTime = $ccr->createElement('DateTime');
39 $e_ccr->appendChild($e_dateTime);
41 $e_ExactDateTime = $ccr->createElement('ExactDateTime', date('Y-m-d\TH:i:s\Z'));
42 $e_dateTime->appendChild($e_ExactDateTime);
44 $e_patient = $ccr->createElement('Patient');
45 $e_ccr->appendChild($e_patient);
47 //$e_ActorID = $ccr->createElement('ActorID', $row['patient_id']);
48 $e_ActorID = $ccr->createElement('ActorID', 'A1234'); // This value and ActorID in createCCRActor.php should be same.
49 $e_patient->appendChild($e_ActorID);
52 $e_From = $ccr->createElement('From');
53 $e_ccr->appendChild($e_From);
55 $e_ActorLink = $ccr->createElement('ActorLink');
56 $e_From->appendChild($e_ActorLink);
58 $e_ActorID = $ccr->createElement('ActorID', $authorID);
59 $e_ActorLink->appendChild($e_ActorID);
61 $e_ActorRole = $ccr->createElement('ActorRole');
62 $e_ActorLink->appendChild($e_ActorRole);
64 $e_Text = $ccr->createElement('Text', 'author');
65 $e_ActorRole->appendChild($e_Text);
68 $e_To = $ccr->createElement('To');
69 $e_ccr->appendChild($e_To);
71 $e_ActorLink = $ccr->createElement('ActorLink');
72 $e_To->appendChild($e_ActorLink);
74 //$e_ActorID = $ccr->createElement('ActorID', $row['patient_id']);
75 $e_ActorID = $ccr->createElement('ActorID', 'A1234');
76 $e_ActorLink->appendChild($e_ActorID);
78 $e_ActorRole = $ccr->createElement('ActorRole');
79 $e_ActorLink->appendChild($e_ActorRole);
81 $e_Text = $ccr->createElement('Text', 'patient');
82 $e_ActorRole->appendChild($e_Text);
85 $e_Purpose = $ccr->createElement('Purpose');
86 $e_ccr->appendChild($e_Purpose);
88 $e_Description = $ccr->createElement('Description');
89 $e_Purpose->appendChild($e_Description);
91 $e_Text = $ccr->createElement('Text', 'Summary of patient information');
92 $e_Description->appendChild($e_Text);