Abstract: A system and method for optimizing medical diagnosis, procedures and reimbursement claims using a structured search space is described. The system may comprise: a master procedure list of alphanumeric codes that represent each of a plurality of medical procedures, wherein the master procedure list includes simple procedures and compound procedures which consist of at least two simple procedures; a value associated with each of the plurality of medical procedures; a list of ordered procedures listing medical procedures for a specific medical encounter; a search tree of all possible combinations of the simple procedures and the compound procedures in the list of ordered procedures; and a minimum total of the values associated with the medical procedures in the list of ordered procedures.