Prevent default form action on select all button.
[openemr.git] / ccr / createCCRHeader.php
blob038793fdb0b25439fd5bb2d23a5d3fc5fb06efed
1 <?php
2 /**
3 * CCR Script.
5 * Copyright (C) 2010 Garden State Health Systems <http://www.gshsys.com/>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Garden State Health Systems <http://www.gshsys.com/>
20 * @link http://www.open-emr.org
24 global $pid;
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);
51 //Header From:
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);
67 //Header To:
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);
84 //Header Purpose:
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);