<?xml version="1.0" ?><feescale>
	<version>0.1</version>
	<tablename>test_feescale</tablename>
	<feescale_description>Example Fee Scale</feescale_description>
	<category>P</category>
	<header id="1">Diagnosis</header>
	<header id="2">Preventive Care</header>
	<header id="3">Periodontal Treatment</header>
	<header id="4">Conservative Treatment</header>
	<header id="5">Endodontic Treatment</header>
	<header id="6">Crowns and Veneers</header>
	<header id="7">Bridgework</header>
	<header id="8">Extractions and Surgical Treatment</header>
	<header id="9">Prostheses</header>
	<header id="10">Orthodontic Treatment</header>
	<header id="11">Other Forms of Treatment</header>
	<start>
		<year>2013</year>
		<month>8</month>
		<day>1</day>
	</start>
	<item id="E0101">
		<section>1</section>
		<shortcut att="exam">CE</shortcut>
		<description>clinical examination^</description>
		<fee>
			<brief_description>clinical exam</brief_description>
			<gross>2200</gross>
			<charge>2200</charge>
		</fee>
	</item>
	<item id="E0111">
		<section>1</section>
		<shortcut att="exam">ECE</shortcut>
		<description>extensive clinical examination^</description>
		<fee>
			<brief_description>extensive clinical exam</brief_description>
			<gross>4500</gross>
			<charge>4500</charge>
		</fee>
	</item>
	<item id="E0121" obscurity="2">
		<section>1</section>
		<shortcut att="exam">FCA</shortcut>
		<description>full case assessment^</description>
		<fee>
			<brief_description>full case assessment^</brief_description>
			<gross>6000</gross>
			<charge>6000</charge>
		</fee>
	</item>
	<item id="E0201">
		<section>1</section>
		<shortcut att="xray">S</shortcut>
		<description>small xray*</description>
		<fee condition="item_no=1">
			<brief_description>small xrays 1 film</brief_description>
			<gross>900</gross>
			<charge>900</charge>
		</fee>
		<fee condition="item_no=2">
			<brief_description>small xrays 2 films</brief_description>
			<gross>1500</gross>
			<charge>1500</charge>
		</fee>
		<fee condition="item_no=3">
			<brief_description>small xrays 3 films</brief_description>
			<gross>2000</gross>
			<charge>2000</charge>
		</fee>
		<fee condition="item_no&gt;=4">
			<brief_description>small xrays maximum</brief_description>
			<gross>2500</gross>
			<charge>2500</charge>
		</fee>
	</item>
	<item id="E1401" obscurity="0">
		<section>4</section>
		<shortcut att="chart" type="regex">u[lr][de4-8][MODBP]*$|l[lr][de4-8][MODBL]*$|u[lr][a-c1-3][MIDBP]*$|l[lr][a-c1-3][MIDBL]*$</shortcut>
		<description>filling*</description>
		<fee>
			<brief_description>filling</brief_description>
			<gross>4500</gross>
			<charge>4500</charge>
		</fee>
	</item>
	<item id="E1001">
		<section>3</section>
		<shortcut att="perio">SP</shortcut>
		<description>scale and polish^</description>
		<fee>
			<brief_description>scale &amp; polish</brief_description>
			<gross>3300</gross>
			<charge>3300</charge>
		</fee>
		<feescale_forbid>
			<reason>please add scale and polish to a treatment plan conventionally</reason>
		</feescale_forbid>
	</item>
	<item id="E1011">
		<section>3</section>
		<shortcut att="perio">SP+</shortcut>
		<description>extended scale and polish^</description>
		<fee>
			<brief_description>scale &amp; polish &gt; 1 visit</brief_description>
			<gross>4500</gross>
			<charge>4500</charge>
		</fee>
	</item>
	<item id="E1501">
		<section>5</section>
		<shortcut att="chart" type="regex">[ul][lr][1-3]RT$</shortcut>
		<description>anterior root filling*</description>
		<fee>
			<brief_description>root filling 1-3</brief_description>
			<gross>19500</gross>
			<charge>19500</charge>
		</fee>
	</item>
	<item id="E1502">
		<section>5</section>
		<shortcut att="chart" type="regex">[ul][lr][45]RT$</shortcut>
		<description>premolar root filling*</description>
		<fee>
			<brief_description>root filling 4-5</brief_description>
			<gross>19500</gross>
			<charge>19500</charge>
		</fee>
	</item>
	<item id="E1504">
		<section>5</section>
		<shortcut att="chart" type="regex">[ul][lr][6-8]RT$</shortcut>
		<description>molar root filling*</description>
		<fee>
			<brief_description>root filling 6-8</brief_description>
			<gross>28000</gross>
			<charge>19500</charge>
		</fee>
	</item>
	<item id="E0601">
		<section>6</section>
		<shortcut att="chart" type="regex">[ul][lr][1-8]CR</shortcut>
		<description>other crown*</description>
		<fee>
			<brief_description>unspecified crown</brief_description>
			<gross>35000</gross>
			<charge>0</charge>
		</fee>
	</item>
	<item id="E0701">
		<section>7</section>
		<shortcut att="chart" type="regex">[ul][lr][1-8]BR</shortcut>
		<description>bridge unit*</description>
		<fee>
			<brief_description>unspecified bridge unit</brief_description>
			<gross>35000</gross>
			<charge>0</charge>
		</fee>
	</item>
	<item id="E2101">
		<section>8</section>
		<shortcut att="chart" type="regex">u[lr][a-e1-8]EX</shortcut>
		<description>extraction*</description>
		<fee condition="item_no=1">
			<brief_description>extraction, 1 tooth</brief_description>
			<gross>5500</gross>
			<charge>5500</charge>
		</fee>
		<fee condition="item_no=2">
			<brief_description>extraction, 2 teeth</brief_description>
			<gross>6500</gross>
			<charge>5500</charge>
		</fee>
		<fee condition="3&lt;=item_no&lt;=4">
			<brief_description>extraction, 3-4 teeth</brief_description>
			<gross>8000</gross>
			<charge>5500</charge>
		</fee>
		<fee condition="5&lt;=item_no&lt;=9">
			<brief_description>extraction, 5-9 teeth</brief_description>
			<gross>9000</gross>
			<charge>5500</charge>
		</fee>
		<fee condition="10&lt;=item_no&lt;=18">
			<brief_description>extraction, 10-18 teeth</brief_description>
			<gross>12000</gross>
			<charge>5500</charge>
		</fee>
		<fee condition="item_no&gt;=18">
			<brief_description>extraction, &gt; 18 teeth</brief_description>
			<gross>15000</gross>
			<charge>5500</charge>
		</fee>
	</item>
	<complex_shortcut>
		<shortcut att="perio">SP</shortcut>
		<addition>
			<case condition="n_txs=1" handled="no"/>
			<case condition="n_txs=2">
				<remove_item id="E1001"/>
				<add_item id="E1011"/>
				<message>1 visit scale and polish fee removed from estimate. 2 visit scale and polish fee added instead.</message>
			</case>
			<case condition="n_txs&gt;2">
				<alter_item id="E1011"/>
				<message>maximum fee already claimed for this treatment. Add Privately, or start a new course.</message>
			</case>
		</addition>
		<removal>
			<case condition="n_txs=1" handled="no"/>
			<case condition="n_txs=2">
				<remove_item id="E1011"/>
				<add_item id="E1001"/>
				<message>2 visit scale and polish fee removed from estimate, replaced by 1 visit fee.</message>
			</case>
			<case condition="n_txs&gt;2">
				<alter_item id="E1011"/>
			</case>
		</removal>
	</complex_shortcut>
	<user_display>
		<crown_chart_button description="Porcelain Jacket" shortcut="CR,PJ" tooltip="any tooth"/>
		<crown_chart_button description="Gold" shortcut="CR,GO"/>
		<crown_chart_button description="Porcelain/Precious Metal" shortcut="CR,V1"/>
		<crown_chart_button description="Temporary" shortcut="CR,T1"/>
		<crown_chart_button description="Resin" shortcut="CR,SR"/>
		<crown_chart_button description="Lava" shortcut="CR,LAVA"/>
		<crown_chart_button description="Opalite" shortcut="CR,OPAL"/>
		<crown_chart_button description="Emax" shortcut="CR,EMAX"/>
		<crown_chart_button description="Other" shortcut="CR,OT"/>
		<crown_chart_button description="RECEMENT" shortcut="CR,RC"/>
	</user_display>
</feescale>