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:
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
11 // rel - a "related" code type, empty if none (for mapping to another coding system)
16 'ICD9' => array('id' => 2, 'fee' => 0, 'mod' => 2, 'just' => '' , 'rel' => ''),
17 'CPT4' => array('id' => 1, 'fee' => 1, 'mod' => 2, 'just' => 'ICD9', 'rel' => ''),
18 'HCPCS' => array('id' => 3, 'fee' => 1, 'mod' => 2, 'just' => 'ICD9', 'rel' => '')
20 /* UK Sports Medicine:
21 'OSICS10' => array('id' => 9, 'fee' => 0, 'mod' => 4, 'just' => '', 'rel' => ''),
22 'OPCS' => array('id' => 6, 'fee' => 0, 'mod' => 0, 'just' => '', 'rel' => ''),
23 'PTCJ' => array('id' => 7, 'fee' => 0, 'mod' => 0, 'just' => '', 'rel' => ''),
24 'CPT4' => array('id' => 1, 'fee' => 0, 'mod' => 0, 'just' => '', 'rel' => ''),
25 'SMPC' => array('id' => 10, 'fee' => 0, 'mod' => 0, 'just' => '', 'rel' => '') */
28 'ICD9' => array('id' => 2, 'fee' => 0, 'mod' => 2, 'just' => '' , 'rel' => ''),
29 'MA' => array('id' => 12, 'fee' => 1, 'mod' => 0, 'just' => '' , 'rel' => 'ACCT'),
30 'IPPF' => array('id' => 11, 'fee' => 0, 'mod' => 0, 'just' => '' , 'rel' => ''),
31 'CPT4' => array('id' => 1, 'fee' => 0, 'mod' => 2, 'just' => '' , 'rel' => 'IPPF'),
32 'ACCT' => array('id' => 13, 'fee' => 0, 'mod' => 0, 'just' => '' , 'rel' => 'IPPF'), */
35 $default_search_type = 'ICD9'; // US
36 // $default_search_type = 'OSICS10'; // UK Sports
37 // $default_search_type = 'MA'; // IPPF
39 function fees_are_used() {
41 foreach ($code_types as $value) { if ($value['fee']) return true; }
45 function modifiers_are_used() {
47 foreach ($code_types as $value) { if ($value['mod']) return true; }