TreatmentItemMetadata

Incomplete documentation - sorry!

Note

Neil - please put some data in technical/class_headings/TreatmentItemMetadata.rst

methods and attributes

class lib_openmolar.common.db_orm.treatment_item.TreatmentItemMetadata(parent_item, record=None)[source]

Bases: object

every treatment item can have multiple metadata objects associated with it for example.. a periodontal splint needs to know which teeth are splinted. a partial denture needs to know which teeth it replaces

__init__(parent_item, record=None)[source]
brief_description[source]
commit_db(database, treatment_id)[source]
crown_type[source]

crown type

description[source]
errors()[source]
in_database[source]

returns true if the item is in the database if it is, then it will have a valid qsql_record .

is_abutment[source]
is_chartable[source]

all metadata items are chartable?

is_crown[source]
is_fill[source]
is_pontic[source]
is_root[source]
is_splint[source]
is_wing[source]
material[source]

the material for charting purposes eg (“AM”,”CO” etc...)

parent_item = None

keep a pointer to the parent item

qsql_record = None

keep a pointer to the qslqrecord

set_surfaces(surfaces)[source]
Param :surfaces(string)

set the surfaces for a restoration

Note

an exception will be raised if surfaces are invalid

set_tooth(tooth)[source]
Param :tooth_id (int)

int should comply with Tooth Notation

set_tx_type(tx_type)[source]
Param :tx_type (string)

string should be enumerable by OMType tooth_tx_type

surfaces[source]
surfaces_required[source]
technition[source]
tooth[source]
tx_type[source]

what metadata type is this? this value will be one defined by the om_types

Table Of Contents

Previous topic

TreatmentItemException

Next topic

UpperCaseLineEdit