fix: Uninitialised zip and missing file size error in Native Data Loads (#7081)
[openemr.git] / src / Cqm / CqmServiceManager.php
blob9cb15819940b701416c3a4899f9d3c4fdb5a250b
1 <?php
3 namespace OpenEMR\Cqm;
5 use FontLib\Table\DirectoryEntry;
6 use OpenEMR\Common\System\System;
8 class CqmServiceManager
10 public static function makeCqmClient()
12 $servicePath = $GLOBALS['fileroot'] . DIRECTORY_SEPARATOR .
13 'ccdaservice/node_modules' . DIRECTORY_SEPARATOR .
14 'oe-cqm-service' . DIRECTORY_SEPARATOR .
15 'server.js';
16 $client = new CqmClient(
17 new System(),
18 $servicePath,
19 'http://127.0.0.1',
20 '6660' // ccda service runs on 6661
23 return $client;