graphic.
[openemr.git] / custom / code_types.inc.php
blob4d165d8b2f72658c3d51048f0b97d756bae68b18
1 <?
2 // This array provides abstraction of billing code types. This is desirable
3 // because different countries or fields of practice use different methods for
4 // coding diagnoses, procedures and supplies. Fees will not be relevant where
5 // medical care is socialized. Attribues are:
6 //
7 // id - the numeric identifier of this code type in the codes table
8 // fee - 1 if fees are used, else 0
9 // mod - the maximum length of a modifier, 0 if modifiers are not used
10 // just - the code type used for justification, empty if none
12 $code_types = array(
14 // USA Clinics:
15 'ICD9' => array('id' => 2, 'fee' => 0, 'mod' => 2, 'just' => '' ),
16 'CPT4' => array('id' => 1, 'fee' => 1, 'mod' => 2, 'just' => 'ICD9'),
17 'HCPCS' => array('id' => 3, 'fee' => 1, 'mod' => 2, 'just' => 'ICD9')
19 /* UK Sports Medicine:
20 'OSICS10' => array('id' => 9, 'fee' => 0, 'mod' => 4, 'just' => '' ),
21 'OPCS' => array('id' => 6, 'fee' => 0, 'mod' => 0, 'just' => '' ),
22 'PTCJ' => array('id' => 7, 'fee' => 0, 'mod' => 0, 'just' => '' ),
23 'CPT4' => array('id' => 1, 'fee' => 0, 'mod' => 0, 'just' => '' ),
24 'SMPC' => array('id' => 10, 'fee' => 0, 'mod' => 0, 'just' => '' ) */
27 $default_search_type = 'ICD9'; // US
28 // $default_search_type = 'OSICS10'; // UK
30 function fees_are_used() {
31 global $code_types;
32 foreach ($code_types as $value) { if ($value['fee']) return true; }
33 return false;
36 function modifiers_are_used() {
37 global $code_types;
38 foreach ($code_types as $value) { if ($value['mod']) return true; }
39 return false;