Breast cancer risk evaluation

Anyone could create a snippet based on one of these link: CanRisk Release Notes?

Hi @Annie_Leclerc-S Welcome to the forum! :slight_smile: I apologise for the late response!

I recommend using the "AI Write" feature (https://www.youtube.com/watch?v=zZP2TY8NIPs) in our Text Blaze Dashboard to create snippets like these from scratch. You can always tweak them later (or ask the AI to tweak them) to suit your needs. Here's a snippet I was able to create by prompting the AI for "Breast cancer risk evaluation as per canrisk guidelines":

Breast Cancer Risk Evaluation Form

Patient Name: {formtext: name=Patient Name}
Date of Birth: {formdate: YYYY-MM-DD; name=Date of Birth}
Date of Evaluation: {time: YYYY-MM-DD}

Family History:

  • Mother: {formmenu: name=Mother History; None; Breast Cancer; Ovarian Cancer; Both}
  • Sister(s): {formmenu: name=Sister History; None; Breast Cancer; Ovarian Cancer; Both}
  • Daughter(s): {formmenu: name=Daughter History; None; Breast Cancer; Ovarian Cancer; Both}
  • Other relatives with breast or ovarian cancer: {formparagraph: name=Other Relatives History}

Genetic Factors:

  • Known BRCA1/BRCA2 mutation: {formmenu: name=BRCA Mutation; Yes; No; Unknown}
  • Other genetic mutations: {formparagraph: name=Other Genetic Mutations}

Personal Medical History:

  • Previous breast cancer: {formmenu: name=Previous Breast Cancer; Yes; No}
  • Previous ovarian cancer: {formmenu: name=Previous Ovarian Cancer; Yes; No}
  • Age at first menstruation: {formtext: name=Age at First Menstruation}
  • Age at first live birth: {formtext: name=Age at First Live Birth}
  • Number of live births: {formtext: name=Number of Live Births}
  • Hormone replacement therapy: {formmenu: name=Hormone Replacement Therapy; Never; Current; Past}

Lifestyle Factors:

  • Alcohol consumption: {formmenu: name=Alcohol Consumption; None; Light; Moderate; Heavy}
  • Smoking history: {formmenu: name=Smoking History; Never; Former; Current}
  • Physical activity level: {formmenu: name=Physical Activity Level; Sedentary; Moderate; Active}

Additional Notes:
{formparagraph: name=Additional Notes}

Evaluator's Name: {formtext: name=Evaluator Name}
Evaluator's Role: {formtext: name=Evaluator Role}

{note}This form is based on the CanRisk guidelines for breast cancer risk evaluation. Ensure all relevant information is accurately provided for a comprehensive assessment.{endnote}

Hi, it makes a good table, but doesn't calculate the risk.

Sure. I asked the AI to output the score as well. Here's what I got. You can update the conditions in the calculate_risk function according to your requirements:

Breast Cancer Risk Evaluation Form

Patient Name: {formtext: name=Patient Name}
Date of Birth: {formdate: YYYY-MM-DD; name=Date of Birth}
Date of Evaluation: {time: YYYY-MM-DD}

Family History:
Mother: {formmenu: name=Mother History; None; Breast Cancer; Ovarian Cancer; Both}
Sister(s): {formmenu: name=Sister History; None; Breast Cancer; Ovarian Cancer; Both}
Daughter(s): {formmenu: name=Daughter History; None; Breast Cancer; Ovarian Cancer; Both}
Other relatives with breast or ovarian cancer: {formparagraph: name=Other Relatives History}
Genetic Factors:
Known BRCA1/BRCA2 mutation: {formmenu: name=BRCA Mutation; Yes; No; Unknown}
Other genetic mutations: {formparagraph: name=Other Genetic Mutations}
Personal Medical History:
Previous breast cancer: {formmenu: name=Previous Breast Cancer; Yes; No}
Previous ovarian cancer: {formmenu: name=Previous Ovarian Cancer; Yes; No}
Age at first menstruation: {formtext: name=Age at First Menstruation}
Age at first live birth: {formtext: name=Age at First Live Birth}
Number of live births: {formtext: name=Number of Live Births}
Hormone replacement therapy: {formmenu: name=Hormone Replacement Therapy; Never; Current; Past}
Lifestyle Factors:
Alcohol consumption: {formmenu: name=Alcohol Consumption; None; Light; Moderate; Heavy}
Smoking history: {formmenu: name=Smoking History; Never; Former; Current}
Physical activity level: {formmenu: name=Physical Activity Level; Sedentary; Moderate; Active}
Additional Notes:
{formparagraph: name=Additional Notes}

Evaluator's Name: {formtext: name=Evaluator Name}
Evaluator's Role: {formtext: name=Evaluator Role}

{note}This form is based on the CanRisk guidelines for breast cancer risk evaluation. Ensure all relevant information is accurately provided for a comprehensive assessment.{endnote}

{calculate_risk=() -> block
var score = 0

if `Mother History` = "Breast Cancer" or `Mother History` = "Both"
score = score + 2
endif

if `Sister History` = "Breast Cancer" or `Sister History` = "Both"
score = score + 2
endif

if `Daughter History` = "Breast Cancer" or `Daughter History` = "Both"
score = score + 2
endif

if `BRCA Mutation` = "Yes"
score = score + 3
endif

if `Previous Breast Cancer` = "Yes"
score = score + 3
endif

if `Previous Ovarian Cancer` = "Yes"
score = score + 3
endif

if `Hormone Replacement Therapy` = "Current"
score = score + 1
endif

if `Alcohol Consumption` = "Heavy"
score = score + 1
endif

if `Smoking History` = "Current"
score = score + 1
endif

if `Physical Activity Level` = "Sedentary"
score = score + 1
endif

return score
endblock}Total Risk Score: {=calculate_risk()}