Skip to content

Disclosure policy

app.encounter.policy

Disclosure policy: which patient-known fact may be said this turn, and how much of it.

Facts carry 1-3 authored levels. Each delivery of a fact advances its depth by one, so a single question never jumps from a vague gist to precise detail.

LEVEL_NAMES = {1: ('precise',), 2: ('gist', 'precise'), 3: ('gist', 'characterized', 'precise')} module-attribute

available(case, disclosed)

next_disclosure(case, state, fact_id, attribute=None)

The next unheard level of a fact, or of one attribute of it when the question was that specific.

depth_key(fact_id, attribute=None)

record_delivery(state, disclosures)

Advance disclosure state for content that actually reached the learner.

interjection(case, state, delivered, learner_turns)

The attendant fact that should cut in now, if an authored trigger fired and it has not interjected before.

evidence(disclosures)

Event-safe record of what was offered: no patient wording, which lives in the response.