Skip to content

Encounter operations

app.encounter.operations

Encounter lifecycle operations: start a pinned case and commit one learner action at a time.

OPERATIONS = frozenset({'demo_start', 'practice_start', 'start', 'act'}) module-attribute

UNCLEAR = 'माफ़ कीजिए, ठीक से समझ नहीं आया। फिर से पूछेंगे?' module-attribute

RECORDED = 'Recorded in your encounter record; the patient does not hear this.' module-attribute

REPLIES = {'closure': 'ठीक है, धन्यवाद।', 'hint_request': 'Hints are not available in this practice mode yet.'} module-attribute

respond(p, action)

Reply for one validated action: patient speech, examiner result or a record acknowledgement.

owned_encounters(store, db, actor)

run(store, db, actor, op, d)