Next / Previous / Contents / Shipman's homepage

48. class MicroAgingField: Base class for microaging fields

This is a base class for the eight microaging fields in current use. In the MAPS 2004 and subsequent protocols, a specific set of codes is used; refer to the specification for values allowed here.

baseclasses.py
# - - - - -   c l a s s   M i c r o A g i n g F i e l d   - - - - -

class MicroAgingField(SingleField):
    '''Base class for all micro-aging fields.

      Exports:  As inherited.
    '''

    VALID_CODES = "ABFJLMNRU "    

Derived classes must define their own .scanField() method, calling SingleField.scanFiled().

baseclasses.py
    @staticmethod
    def scanField(encounter, scan, fieldName):
        raise NotImplementedError