I was able to install Snomed Argentina by modifying the code in /openemr/interface/code_systems/list_staged.php and write correctly to the standardized_tables_track table. But I can’t modify /openemr/custom/code_type.php well so that it lists me if it’s Spain or Argentina. This is a part of the modified code, is ok?:
function isSnomedSpanishOrArgentina()
{
// See if most recent SNOMED entry is International:Spanish or International:Argentina
$sql = sqlQuery("SELECT `revision_version` FROM `standardized_tables_track` WHERE `name` = 'SNOMED' ORDER BY `id` DESC");
if ((!empty($sql)) && ($sql['revision_version'] == "International:Spanish") && ($sql[' OR revision_version'] == "International:Argentina")) {
return true;
}
return false;
}
Muchas gracias.
Saludos.
Luis.