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
28 changes: 18 additions & 10 deletions src/staylong/services/home_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,34 +116,42 @@ def _plan_task1_description(pack: AssessmentPreparationPack) -> str:
if area == "bathroom":
if "shower" in difficulty:
return (
"Use the official pathway when you are ready to discuss bathroom and shower safety support at home."
"Use the official pathway when you are ready to discuss bathroom and "
"shower safety support at home."
)
return (
"Use the official pathway when you are ready to discuss night-time bathroom safety support at home."
"Use the official pathway when you are ready to discuss night-time "
"bathroom safety support at home."
)
if area == "entry":
return (
"Use the official pathway when you are ready to discuss front step and entry access support at home."
"Use the official pathway when you are ready to discuss front step and "
"entry access support at home."
)
if area == "bedroom":
return (
"Use the official pathway when you are ready to discuss bedroom movement and safety support at home."
"Use the official pathway when you are ready to discuss bedroom movement "
"and safety support at home."
)
if area == "kitchen":
return (
"Use the official pathway when you are ready to discuss kitchen safety and meal preparation support at home."
"Use the official pathway when you are ready to discuss kitchen safety "
"and meal preparation support at home."
)
if "shower" in difficulty:
return (
"Use the official pathway when you are ready to discuss bathroom and shower safety support at home."
"Use the official pathway when you are ready to discuss bathroom and "
"shower safety support at home."
)
if any(k in difficulty for k in ("step", "stair", "door", "entry")):
return (
"Use the official pathway when you are ready to discuss front step and entry access support at home."
"Use the official pathway when you are ready to discuss front step and "
"entry access support at home."
)
if any(k in difficulty for k in ("bathroom", "toilet", "night")):
return (
"Use the official pathway when you are ready to discuss night-time bathroom safety support at home."
"Use the official pathway when you are ready to discuss night-time "
"bathroom safety support at home."
)
return "Use the official pathway when you are ready to discuss support at home."

Expand All @@ -157,7 +165,8 @@ def _plan_task3_description(
tenure = answers.get("housing_tenure", "").lower()
if any(k in tenure for k in ("rent", "tenant", "lease", "landlord")):
return (
"Confirm whether landlord or property manager permission is needed before any home changes."
"Confirm whether landlord or property manager permission is needed "
"before any home changes."
)
if any(k in tenure for k in ("own", "owner", "mortgage", "freehold")):
return (
Expand Down Expand Up @@ -209,4 +218,3 @@ def build_home_independence_plan(
),
)


6 changes: 4 additions & 2 deletions src/staylong/services/taskmaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,12 @@ def decide_action(
subject=f"Assessment preparation — {summary_text}",
body=(
f"Hello,\n\n"
f"I am preparing for a My Aged Care assessment to discuss staying independent at home.\n\n"
f"I am preparing for a My Aged Care assessment to discuss "
f"staying independent at home.\n\n"
f"What I noticed:\n{difficulty_text}\n\n"
f"Topics to discuss:\n{topics_text}\n\n"
f"This draft was prepared by StayLong for your review. It has not been sent."
f"This draft was prepared by StayLong for your review. "
f"It has not been sent."
),
),
)
Expand Down
Loading