A ProcCode instance is a custom data object of high importance to the openmolar application.
this is the object sent to the application when user selects a code from the procedure code widget.
ProcCodes are ALWAYS initiated at application startup when the ProcedureCodes object is created.
Their properties are obtained by decoding the file resources/proc_codes/om_codes.txt
(which is actually stored as a QResources, so editing the file will only take effect once QResources are refreshed)
Note
it is my intention that openmolar codes remain unique. If a practice needs additional codes, then this should NOT be done by modifying the file mentioned above.
Bases: object
a list of teeth which can be replaced with this procedure (eg upper teeth only for a P/-)
some items require an extra description from the user when converting to a TreatmentItem eg. “other treatment” code needs embellishing
the code expected by a ToothData object so that an item of this type can be drawn correctly
A pointer to the minidom element which holds the info about this code
returns a list of ints which have been specified in the xml in this way <tooth_range>18..33</tooth_range>
this is a property indicating that to become a treatment item a tooth is required. this is, for example, the case with an MOD filling, but not needed for an examination
the xml config sheet can speculate what is needed to create a valid TreatmentItem from this code