Fixed SNOMED import script to work with recent SNOMED release
[openemr.git] / library / plugins / function.amcCollect.php
blob08848c9714549ca7ea8d4404d5e1325e8f7a4c66
1 <?php
2 /**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 * amcCollect() version for smarty templates
7 *
8 * Copyright (C) 2011 Brady Miller <brady@sparmy.com>
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
17 /**
18 * Smarty {amcCollect} function plugin
20 * Type: function<br>
21 * Name: amcCollect<br>
22 * Purpose: amcCollect in OpenEMR - Smarty templates<br>
24 * @param array
25 * @param Smarty
28 require_once(dirname(__FILE__) . '../../amc.php');
30 function smarty_function_amcCollect($params, &$smarty)
32 $amc_id = $params['amc_id'];
33 $patient_id = $params['patient_id'];
34 $object_category = $params['object_category'];
35 $object_id = $params['object_id'];
37 $returnArray = amcCollect($amc_id,$patient_id,$object_category,$object_id);
38 $smarty->assign('amcCollectReturn', $returnArray);
41 /* vim: set expandtab: */