Internationalization: some more documentation fixes
[openemr.git] / ccr / createCCRImmunization.php
blob7e3c5001ce9f0a84dc653d665e34f6f68fcb32b5
1 <?php
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. //
11 // //
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. //
16 // //
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. //
21 // //
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 // ------------------------------------------------------------------------ //
28 $result = getImmunizationData();
29 $row = sqlFetchArray($result);
31 do {
33 echo "immunization_id :".$row['immunization_id']."\n";
35 $e_Immunization = $ccr->createElement('Immunization');
36 $e_Immunizations->appendChild($e_Immunization);
38 $e_CCRDataObjectID = $ccr->createElement('CCRDataObjectID', getUuid());
39 $e_Immunization->appendChild($e_CCRDataObjectID);
41 $e_DateTime = $ccr->createElement('DateTime');
42 $e_Immunization->appendChild($e_DateTime);
44 $date = date_create($row['administered_date']);
46 $e_ExactDateTime = $ccr->createElement('ExactDateTime', $date->format('Y-m-d\TH:i:s\Z'));
47 $e_DateTime->appendChild($e_ExactDateTime);
49 $e_Type = $ccr->createElement('Type');
50 $e_Immunization->appendChild($e_Type);
52 $e_Text = $ccr->createElement('Text', 'Immunization');
53 $e_Type->appendChild($e_Text);
55 $e_Status = $ccr->createElement('Status');
56 $e_Immunization->appendChild($e_Status);
58 $e_Text = $ccr->createElement('Text','ACTIVE');
59 $e_Status->appendChild($e_Text);
61 $e_Immunization->appendChild(sourceType($ccr, $authorID));
63 $e_Product = $ccr->createElement('Product');
64 $e_Immunization->appendChild($e_Product);
66 $e_ProductName = $ccr->createElement('ProductName');
67 $e_Product->appendChild($e_ProductName);
69 $e_Text = $ccr->createElement('Text',$row['title']);
70 $e_ProductName->appendChild( $e_Text);
72 $e_Directions = $ccr->createElement('Directions');
73 $e_Immunization->appendChild($e_Directions);
75 $e_Direction = $ccr->createElement('Direction');
76 $e_Directions->appendChild($e_Direction);
78 $e_Description = $ccr->createElement('Description');
79 $e_Direction->appendChild($e_Description);
81 $e_Text = $ccr->createElement('Text',$row['note']);
82 $e_Description->appendChild($e_Text);
84 $e_Code = $ccr->createElement('Code');
85 $e_Description->appendChild($e_Code);
87 $e_Value = $ccr->createElement('Value', 'None');
88 $e_Code->appendChild($e_Value);
90 } while ($row = sqlFetchArray($result));