<commit_before><?php
/**
 * @file
 * ------------------------------------------------------------------------------------
 * Created by SAN Business Consultants for RAPTOR phase 2
 * Open Source VA Innovation Project 2011-2015
 * VA Innovator: Dr. <NAME>
 * SAN Implementation: <NAME>, <NAME>, et al
 * Contacts: <EMAIL>, <EMAIL>
 * ------------------------------------------------------------------------------------
 * 
 */ 

namespace raptor;

require_once 'IEhrDao.php';
require_once 'Context.php';
require_once 'RuntimeResultFlexCache.php';
require_once 'WorklistColumnMap.php';

/**
 * This is the primary interface abstraction to EHR
 *
 * @author <NAME> of SAN Business Consultants
 */
class EhrDao implements \raptor\IEhrDao
{
    private $instanceTimestamp = NULL;
    private $m_implclass = NULL;
    
    function __construct()
    {
        $this->instanceTimestamp = time();
        error_log("Creating instance of EhrDao ts={$this->instanceTimestamp}");
        module_load_include('php', 'raptor_datalayer', 'config/ehr_integration');
        $classname = EHR_INT_IMPL_DAO_CLASSNAME;
        $namespace = EHR_INT_IMPL_DAO_NAMESPACE;
        $class = "\\$namespace\\$classname";
        $this->m_implclass = new $class();
        error_log("Construction completed >>> ".$this);
    }
    
    /**<commit_msg>microtime<commit_after><?php
/**
 * @file
 * ------------------------------------------------------------------------------------
 * Created by SAN Business Consultants for RAPTOR phase 2
 * Open Source VA Innovation Project 2011-2015
 * VA Innovator: Dr. <NAME>
 * SAN Implementation: <NAME>, <NAME>, et al
 * Contacts: <EMAIL>, <EMAIL>
 * ------------------------------------------------------------------------------------
 * 
 */ 

namespace raptor;

require_once 'IEhrDao.php';
require_once 'Context.php';
require_once 'RuntimeResultFlexCache.php';
require_once 'WorklistColumnMap.php';

/**
 * This is the primary interface abstraction to EHR
 *
 * @author <NAME> of SAN Business Consultants
 */
class EhrDao implements \raptor\IEhrDao
{
    private $instanceTimestamp = NULL;
    private $m_implclass = NULL;
    
    function __construct()
    {
        $this->instanceTimestamp = microtime();
        error_log("Creating instance of EhrDao ts={$this->instanceTimestamp}");
        module_load_include('php', 'raptor_datalayer', 'config/ehr_integration');
        $classname = EHR_INT_IMPL_DAO_CLASSNAME;
        $namespace = EHR_INT_IMPL_DAO_NAMESPACE;
        $class = "\\$namespace\\$classname";
        $this->m_implclass = new $class();
        error_log("Construction completed >>> ".$this);
    }
    
    /**
{'fraction_non_alphanumeric': 0.23800528900642237, 'fraction_numerical': 0.00680015111446921, 'mean_word_length': 2.1189634864546525, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4643142', 'n_tokens_mistral': 766, 'n_tokens_neox': 732, 'n_words': 176}