Next / Previous / Contents / Shipman's homepage

74.20. BaseEncounter.tailSwab(): Scan swab tail field

Parses a cloacal swab code. The work is done Section 73.1, “SwabField.scanField().

baseclasses.py
# - - -   B a s e E n c o u n t e r . t a i l S w a b   - - -

    def tailSwab(self, scan):
        '''Parse a cloacal-swab field.

          [ scan is a Scan object ->
              if scan starts with a cloacal swab code ->
                scan  :=  scan advanced past that code
                self.(DISPOSITION_ATTR)  :=  a SwabField object
                    representing that code
              else ->
                Log()  +:=  error message(s)
                raise SyntaxError ]
        '''
        SwabField.scanField(self, scan, SWAB_ATTR)