Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ export function StartHereShelf() {
practise. New here? Begin with the {TOTAL} that cover most
conversations.
</p>
<p
className="mt-1.5 text-[13px] leading-[1.5]"
style={{ color: "var(--fg-60)" }}
data-testid="library-welcome-scope"
>
{/* CLINICAL REVIEW NEEDED */}
This app helps with words, not clinical risk decisions. Follow your
local protocol.
</p>
<div className="mt-3.5 flex flex-wrap gap-2">
<Link
href="/start"
Expand Down
22 changes: 22 additions & 0 deletions artifacts/tc-reference/src/lib/cards/TC098.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export const TC098: CardData = {
"It is not a delay tactic for dodging accountability, or a polite empathy wrapper before pushing your own agenda.",
"It is not the same as emotional labelling. Labelling names a feeling. This technique sets the response order.",
"It is not for moments when a safety-critical fact must come first. Then compress the acknowledgement and move quickly to what must be known or done.",
// CLINICAL REVIEW NEEDED
'It is not a risk assessment or a diagnosis, and it is not a leading question like "You\'re not thinking of hurting yourself, are you?" Ask plainly, and follow your local protocol.',
],
overview: {
coreFormula: [
Expand Down Expand Up @@ -95,6 +97,8 @@ export const TC098: CardData = {
"The conversation is being used to abuse, threaten or coerce",
"Emotion-first wording would imply you agree with a harmful or inaccurate claim",
"You would be using empathy to pressure someone toward agreement",
// CLINICAL REVIEW NEEDED
"Someone may be at risk of harm. Follow your organisation's safety or risk protocol, and call 000 if there is immediate danger",
],
phraseBank: [
{
Expand Down Expand Up @@ -185,6 +189,24 @@ export const TC098: CardData = {
"That cost you time, and that's frustrating. I'll check the process after acknowledging that.",
],
},
{
id: "checking-safety",
label: "Checking in on safety",
tag: "Calm, plain and direct. Your local protocol decides what happens next",
tone: "High-stakes",
phrases: [
// CLINICAL REVIEW NEEDED
"I can see this is really hard right now. I'm here, and we can take it slowly.",
// CLINICAL REVIEW NEEDED
"Are you safe right now?",
// CLINICAL REVIEW NEEDED
"I'd like to ask you directly. Are you having thoughts of hurting yourself or ending your life?",
// CLINICAL REVIEW NEEDED
"Thank you for telling me. I'm going to get some support so we can work out the next step together.",
// CLINICAL REVIEW NEEDED
"You don't have to go through this on your own. Let's work out who can help right now.",
],
},
],
decisionTree: [
{
Expand Down
10 changes: 10 additions & 0 deletions artifacts/tc-reference/src/lib/cards/TC105.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export const TC105: CardData = {
"You are unsafe. Leave and get help rather than negotiating a break.",
"A quick practical decision that has to be made now.",
"When the other person has asked you not to leave mid-talk. Agree a break rule together in a calm moment.",
// CLINICAL REVIEW NEEDED
"The other person can't safely be left alone. Get a colleague to step in rather than walking away.",
"Using breaks to avoid every hard topic. If it keeps happening, talk about the pattern.",
"Formal meetings with a set agenda. Ask the chair for a short adjournment instead.",
],
Expand Down Expand Up @@ -452,6 +454,14 @@ export const TC105: CardData = {
phrase:
"Can we agree a signal for when one of us needs a pause, and a time to come back?",
},
{
depth: "Hand over",
useWhen:
"you're too flooded to continue and the other person still needs support",
phrase:
// CLINICAL REVIEW NEEDED
"I'm going to ask a colleague to join us, so you get the help you need.",
},
],
commonMistakes: [
{
Expand Down
2 changes: 2 additions & 0 deletions artifacts/tc-reference/src/lib/cards/TC108.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export const TC108: CardData = {
"A serious conversation you haven't finished. Agree when to continue instead.",
"You're responsible for a decision or task they're waiting on. Finish it, or hand over clearly first.",
"They've just shared bad news. Stay with it before you go.",
// CLINICAL REVIEW NEEDED
"Someone may be unsafe. Don't exit. Stay, and follow your organisation's safety protocol.",
"A goodbye that deserves time, such as the end of a long working relationship.",
],
phraseBank: [
Expand Down
4 changes: 4 additions & 0 deletions artifacts/tc-reference/src/lib/cards/TC109.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export const TC109: CardData = {
"Not agreeing with them.",
"Not a set-up for your rebuttal.",
"Not looping every sentence. Use it for what matters most.",
// CLINICAL REVIEW NEEDED
"Not a clinical assessment. It checks understanding, not risk or diagnosis.",
],
overview: {
coreFormula: [
Expand Down Expand Up @@ -83,6 +85,8 @@ export const TC109: CardData = {
"When they just want comfort, not analysis. Stay with support (TC002).",
"If you can't stay neutral right now. Take a break first.",
"Someone needs a quick, clear answer or instruction. Give it first.",
// CLINICAL REVIEW NEEDED
"Someone may be unsafe. Follow your organisation's safety protocol first. Listening can sit alongside it.",
"You'd be using it to stall a decision you need to make.",
],
phraseBank: [
Expand Down
21 changes: 21 additions & 0 deletions artifacts/tc-reference/src/lib/situations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,27 @@ export const SITUATIONS: readonly Situation[] = [
avoid:
"It works when the silence feels like space. It fails the moment it feels like pressure.",
},
{
id: "distressed-or-unsafe",
label: "They're very distressed or might not be safe",
tagline: "Safety first, then words",
leadCardId: "TC098",
// CLINICAL REVIEW NEEDED
safetyNote:
"If someone may be at risk of harm, follow your organisation's safety or risk protocol. If there is immediate danger, call 000. These lines help you check in. They are not a risk assessment.",
lines: [
// CLINICAL REVIEW NEEDED
"I can see this is really hard right now. I'm here, and we can take it slowly.",
// CLINICAL REVIEW NEEDED
"Are you safe right now?",
// CLINICAL REVIEW NEEDED
"I'd like to ask you directly. Are you having thoughts of hurting yourself or ending your life?",
],
followOn: { cardId: "TC012", line: "Go on, I'm with you." },
// CLINICAL REVIEW NEEDED
avoid:
'It is not a risk assessment or a diagnosis, and it is not a leading question like "You\'re not thinking of hurting yourself, are you?" Ask plainly, and follow your local protocol.',
},
];

const SITUATION_BY_ID: ReadonlyMap<string, Situation> = new Map(
Expand Down
9 changes: 9 additions & 0 deletions artifacts/tc-reference/src/pages/help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ function HelpPicker() {
>
What's happening?
</h1>
<p
className="mt-1.5 text-[14px] leading-[1.5]"
style={{ color: "var(--fg-60)" }}
data-testid="help-scope-note"
>
{/* CLINICAL REVIEW NEEDED */}
This app helps with words, not clinical risk decisions. Follow your
local protocol.
</p>

<ul
className="mt-5 grid grid-cols-2 gap-2.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5742,7 +5742,9 @@
"f33cc3ba3f68"
],
"TC098": [
"242b3e6a2abb",
"28588027aec8",
"2c204d655dd2",
"2dfd3c98eb8d",
"3429ed47f939",
"44976550672a",
Expand All @@ -5758,12 +5760,15 @@
"5bf242a896de",
"60549c55026b",
"61b4e320e980",
"6576d0dc87e8",
"65e26c8c1274",
"66c42634e2c3",
"673de39549b0",
"6859ccaa6f7f",
"69b4de3fabbc",
"6ac8d7d3e024",
"6c587bd48218",
"7265f998367e",
"77c52ece4569",
"7e7d0927308d",
"7f79d507fc29",
Expand Down
24 changes: 24 additions & 0 deletions artifacts/tc-reference/src/test/help-page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@ describe("Help me right now", () => {
}
});

it("shows the scope note on the picker", () => {
renderAt("/help");
expect(screen.getByTestId("help-scope-note")).toHaveTextContent(
"This app helps with words, not clinical risk decisions.",
);
});

it("leads the safety situation with the protocol and 000 note", () => {
renderAt("/help/distressed-or-unsafe");
const note = screen.getByTestId("help-safety");
expect(note).toHaveTextContent("follow your organisation's safety");
expect(note).toHaveTextContent("call 000");
// The note comes before the first move in reading order.
expect(
note.compareDocumentPosition(screen.getByTestId("help-first")) &
Node.DOCUMENT_POSITION_FOLLOWING,
).toBeTruthy();
});

it("shows no safety note on everyday situations", () => {
renderAt("/help/say-no");
expect(screen.queryByTestId("help-safety")).not.toBeInTheDocument();
});

it("reaches a line to say in two taps from the picker", async () => {
const location = renderAt("/help");
fireEvent.click(screen.getByTestId("help-situation-say-no"));
Expand Down
16 changes: 12 additions & 4 deletions artifacts/tc-reference/src/test/situations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const LIBRARY_IDS = new Set(
);

describe("Help me right now situations", () => {
it("has exactly eight situations with unique ids and labels", () => {
expect(SITUATIONS).toHaveLength(8);
expect(new Set(SITUATIONS.map((s) => s.id)).size).toBe(8);
expect(new Set(SITUATIONS.map((s) => s.label)).size).toBe(8);
it("has exactly nine situations with unique ids and labels", () => {
expect(SITUATIONS).toHaveLength(9);
expect(new Set(SITUATIONS.map((s) => s.id)).size).toBe(9);
expect(new Set(SITUATIONS.map((s) => s.label)).size).toBe(9);
for (const s of SITUATIONS) {
expect(s.id, s.id).toMatch(/^[a-z]+(-[a-z]+)*$/);
expect(s.tagline.split(" ").length, s.id).toBeLessThanOrEqual(6);
Expand Down Expand Up @@ -71,6 +71,14 @@ describe("Help me right now situations", () => {
}
});

it("points the distress situation at local protocol and 000", () => {
const s = getSituation("distressed-or-unsafe");
expect(s?.safetyNote).toMatch(/organisation's safety or risk protocol/);
expect(s?.safetyNote).toMatch(/\b000\b/);
// Only the safety situation carries a safety note.
expect(SITUATIONS.filter((x) => x.safetyNote)).toHaveLength(1);
});

it("looks situations up by id", () => {
expect(getSituation("say-no")?.leadCardId).toBe("TC102");
expect(getSituation("missing")).toBeUndefined();
Expand Down
Loading