Code type module improvements:
[openemr.git] / Tests / code_types / DescriptionTests.php
blob9d63fcf6207c493e49506145c9bc979c7a9d5355
1 <?php
2 $GLOBALS['OE_SITE_DIR']="/var/www/openemr/sites/default";
3 set_include_path(get_include_path() . PATH_SEPARATOR . "/var/www/openemr");
4 require_once("library/sql.inc");
5 require_once("library/htmlspecialchars.inc.php");
6 require_once("library/translation.inc.php");
7 require_once("custom/code_types.inc.php");
9 function description_test($codes,$mode)
11 $descriptions=lookup_code_descriptions($codes,$mode);
12 echo $descriptions." <br>".PHP_EOL;
14 echo PHP_EOL;
15 description_test("ICD9:401.1");
16 description_test("ICD9:401.1","code_text_short");
18 description_test("CVX:1");
19 description_test("CVX:1","code_text_short");
21 description_test("ICD10:I10");
22 description_test("ICD10:I10","code_text_short");
24 description_test("SNOMED:1201005");
25 description_test("SNOMED:1201005","code_text_short");
27 description_test("SNOMED-CT:1201005");
28 description_test("SNOMED-CT:1201005","code_text_short");
30 description_test("SNOMED-PR:285008");
31 description_test("SNOMED-PR:285008","code_text_short");
33 description_test("ICD9:401.1;CVX:1;ICD10:I10;SNOMED:1201005;SNOMED-CT:1201005;SNOMED-PR:285008");
34 description_test("ICD9:401.1;CVX:1;ICD10:I10;SNOMED:1201005;SNOMED-CT:1201005;SNOMED-PR:285008","code_text_short");