You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
4.2 KiB
127 lines
4.2 KiB
<?php |
|
|
|
/** |
|
* CCR Script. |
|
* |
|
* Copyright (C) 2010 Garden State Health Systems <http://www.gshsys.com/> |
|
* |
|
* LICENSE: This program is free software; you can redistribute it and/or |
|
* modify it under the terms of the GNU General Public License |
|
* as published by the Free Software Foundation; either version 3 |
|
* of the License, or (at your option) any later version. |
|
* This program is distributed in the hope that it will be useful, |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
* GNU General Public License for more details. |
|
* You should have received a copy of the GNU General Public License |
|
* along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;. |
|
* |
|
* @package OpenEMR |
|
* @author Garden State Health Systems <http://www.gshsys.com/> |
|
* @link http://www.open-emr.org |
|
*/ |
|
|
|
$result = getProcedureData(); |
|
$row = sqlFetchArray($result); |
|
|
|
do { |
|
$e_Procedure = $ccr->createElement('Procedure'); |
|
$e_Procedures->appendChild($e_Procedure); |
|
|
|
$e_CCRDataObjectID = $ccr->createElement('CCRDataObjectID', getUuid()); |
|
$e_Procedure->appendChild($e_CCRDataObjectID); |
|
|
|
$e_DateTime = $ccr->createElement('DateTime'); |
|
$e_Procedure->appendChild($e_DateTime); |
|
|
|
$date = date_create($row['date']); |
|
|
|
$e_ExactDateTime = $ccr->createElement('ExactDateTime', $date->format('Y-m-d\TH:i:s\Z')); |
|
$e_DateTime->appendChild($e_ExactDateTime); |
|
|
|
$e_Type = $ccr->createElement('Type'); |
|
$e_Procedure->appendChild($e_Type); |
|
|
|
$e_Text = $ccr->createElement('Text', $row['type']); |
|
$e_Type->appendChild($e_Text); |
|
|
|
$e_Description = $ccr->createElement('Description'); |
|
$e_Procedure->appendChild($e_Description); |
|
|
|
$e_Text = $ccr->createElement('Text', $row['proc_title']); |
|
$e_Description->appendChild($e_Text); |
|
|
|
$e_Code = $ccr->createElement('Code'); |
|
$e_Description->appendChild($e_Code); |
|
|
|
$e_Value = $ccr->createElement('Value', $row['code']); |
|
$e_Code->appendChild($e_Value); |
|
|
|
$e_Value = $ccr->createElement('CodingSystem', $row['coding']); |
|
$e_Code->appendChild($e_Value); |
|
|
|
$e_Status = $ccr->createElement('Status'); |
|
$e_Procedure->appendChild($e_Status); |
|
|
|
$e_Text = $ccr->createElement('Text', $row['outcome']); |
|
$e_Status->appendChild($e_Text); |
|
|
|
$e_Procedure->appendChild(sourceType($ccr, $sourceID)); |
|
|
|
$e_Locations = $ccr->createElement('Locations'); |
|
$e_Procedure->appendChild($e_Locations); |
|
|
|
$e_Location = $ccr->createElement('Location'); |
|
$e_Locations->appendChild($e_Location); |
|
|
|
$e_Description = $ccr->createElement('Description'); |
|
$e_Location->appendChild($e_Description); |
|
|
|
$e_Text = $ccr->createElement('Text', $row['laterality']); |
|
$e_Description->appendChild($e_Text); |
|
|
|
$e_Practitioners = $ccr->createElement('Practitioners'); |
|
$e_Procedure->appendChild($e_Practitioners); |
|
|
|
$e_Practitioner = $ccr->createElement('Practitioner'); |
|
$e_Practitioners->appendChild($e_Practitioner); |
|
|
|
$e_ActorRole = $ccr->createElement('ActorRole'); |
|
$e_Practitioner->appendChild($e_ActorRole); |
|
|
|
$e_Text = $ccr->createElement('Text', 'None'); |
|
$e_ActorRole->appendChild($e_Text); |
|
|
|
$e_Duration = $ccr->createElement('Duration'); |
|
$e_Procedure->appendChild($e_Duration); |
|
|
|
$e_Description = $ccr->createElement('Description'); |
|
$e_Duration->appendChild($e_Description); |
|
|
|
$e_Text = $ccr->createElement('Text', 'None'); |
|
$e_Description->appendChild($e_Text); |
|
|
|
$e_Substance = $ccr->createElement('Substance'); |
|
$e_Procedure->appendChild($e_Substance); |
|
|
|
$e_Text = $ccr->createElement('Text', ''); |
|
$e_Substance->appendChild($e_Text); |
|
|
|
$e_Method = $ccr->createElement('Method'); |
|
$e_Procedure->appendChild($e_Method); |
|
|
|
$e_Text = $ccr->createElement('Text', ''); |
|
$e_Method->appendChild($e_Text); |
|
|
|
$e_Position = $ccr->createElement('Position'); |
|
$e_Procedure->appendChild($e_Position); |
|
|
|
$e_Text = $ccr->createElement('Text', $row['laterality']); |
|
$e_Position->appendChild($e_Text); |
|
|
|
$e_Site = $ccr->createElement('Site'); |
|
$e_Procedure->appendChild($e_Site); |
|
|
|
$e_Text = $ccr->createElement('Text', $row['body_site']); |
|
$e_Site->appendChild($e_Text); |
|
} while ($row = sqlFetchArray($result));
|
|
|