{
  "class_version": "nt-crossing-class:v0",
  "id": "clinical.dermatology-encounter",
  "version": "0.1.0",
  "title": "Dermatology clinical encounter",
  "domain": "dermatology",
  "evidence_status": "proposed",
  "summary": "An agent proposes to record a clinical decision from a dermatology encounter: encounter evidence and a guideline reference support a decision and its proposed actions, checked against a versioned rule set before a clinician approves. The machine-checkable rules are that the proposed actions fall within the guideline's allowed set and that two readings of the lesion agree. Synthetic specification; no clinician or guideline body has reviewed it, and the rule set is illustrative, not real clinical guidance.",
  "state_fields": {
    "before": ["patient_ref", "encounter_date", "guideline_allowed_actions"],
    "proposed": ["patient_ref", "encounter_date", "decision", "proposed_actions", "readings"]
  },
  "action_types": ["record_clinical_decision"],
  "policy": {
    "id": "nt-policy:dermatology-encounter",
    "version": "0.1.0",
    "authored_by": "Neverthought (illustrative class policy; not clinical guidance or a standard of care)",
    "parameters": {
      "max_delegation_depth": 2,
      "evidence_max_age_days": 120
    },
    "note": "Parameter values are illustrative."
  },
  "invariants": [
    {
      "id": "decision_in_guideline",
      "label": "The proposed actions fall within the guideline's allowed set",
      "measure": "scope_contained",
      "params": { "items": "proposed_actions", "allowed": "guideline_allowed_actions" },
      "tolerance": 0,
      "register": "value"
    },
    {
      "id": "readings_agree",
      "label": "Two readings of the lesion map it to one assessment",
      "measure": "mappings_agree",
      "params": { "field": "readings" },
      "tolerance": 0,
      "register": "structure"
    }
  ],
  "evidence_requirements": [
    { "subject": "encounter_evidence", "min_tier": "E2", "required_to_resolve": "Attach the encounter record (history, examination or dermoscopy image reference) the decision is based on." },
    { "subject": "guideline_ref", "min_tier": "E3", "required_to_resolve": "Attach the corroborated guideline reference whose allowed actions the decision is checked against." }
  ],
  "authority_requirements": { "independent_trust_root": true, "segregation_of_duties": true },
  "archetypes": [
    "RA-PREMATURE-CLOSURE", "RA-EXPIRED-EVIDENCE", "RA-AUTHORITY-DRIFT", "RA-HIDDEN-COUPLING", "RA-UNWARRANTED-EXECUTION"
  ],
  "descriptors": {
    "stake": "material",
    "action": "partial",
    "authority_kind": "explicit",
    "freshness": "bounded"
  },
  "profiles": {
    "recorder": "nt-receipt-chain:v0 (this site's chain; not a clinical record system)",
    "underwriting": "nt-underwritability-conditions:v0 (conditions document; not a clinical standard)"
  },
  "consequence": {
    "bound": "unbounded",
    "ceiling": null,
    "rationale": "A clinical decision's consequences for a patient are not bounded by a single figure and are not declared here. The declared paths name kinds of consequence, not their magnitude."
  },
  "consequence_paths": [
    { "id": "missed_diagnosis", "description": "A condition is missed or closed prematurely." },
    { "id": "overtreatment", "description": "Treatment or excision is carried out where it was not warranted." },
    { "id": "delayed_treatment", "description": "Treatment that was warranted is delayed." },
    { "id": "patient_complaint", "description": "The patient contests the decision or its outcome." }
  ],
  "structural_tests": [],
  "failure_mode": {
    "mode": "fail-closed",
    "rationale": "The clinical decision is not recorded as assured unless the gate returns EXECUTE."
  },
  "non_claims": [
    "Not a diagnosis, a treatment recommendation, medical advice, or a standard of care.",
    "A rule pass shows only that the supplied data meets the stated rule (the actions are in the guideline set and the readings agree), not that the diagnosis or decision is correct.",
    "The clinical judgment is a human decision this gate does not compute; EXECUTE records that the declared rules passed on the declared evidence, not that the clinician judged correctly.",
    "The guideline set and rule set are synthetic illustrations; no clinician, college or guideline body has reviewed them, and they are not real clinical guidance."
  ]
}
