https://www.icf-core-sets.org/ This is a icf core set, i want to make a case with help of this , Can you make !?
Select the condition or Core Set area for the case. · What level should it suit?
Hypothetical THR CASE
"total hip arthroplasty" AND rehabilitation
site:icf-core-sets.org osteoarthritis ICF core set hip replacement
| Item | Details |
|---|---|
| Patient | Mrs. A, 67-year-old retired schoolteacher |
| Medical diagnosis | Severe right hip osteoarthritis |
| Procedure | Right uncemented total hip replacement, posterolateral approach |
| Postoperative status | Day 3 after surgery |
| Relevant history | Hypertension controlled with medication; BMI 29 kg/m²; no cognitive impairment |
| Home situation | Lives with husband in a first-floor apartment. There are 12 stairs, with a railing on one side. Bathroom has a low toilet seat. |
| Prior level of function | Independent in self-care, household work, community walking and driving. Used a cane outdoors because of hip pain. |
| Current precautions | Weight-bearing as tolerated with walker, according to surgeon's instructions. Posterior hip precautions as prescribed by the surgical team. |
| Patient priorities | “I want to walk without severe pain, manage the stairs, dress myself, and return to gardening.” |
| ICF code | ICF category | Finding | Qualifier |
|---|---|---|---|
| b280 | Sensation of pain | Surgical-site pain 5/10 at rest and 7/10 on walking | 2 - moderate problem |
| b710 | Mobility of joint functions | Reduced right hip ROM, especially flexion and abduction due to pain, swelling and precautions | 2 |
| b730 | Muscle power functions | Right hip abductors and extensors weak, approximately 3-/5 | 2 |
| b740 | Muscle endurance functions | Fatigue after short-distance walking and exercises | 1 - mild problem |
| b770 | Gait pattern functions | Antalgic gait, reduced right stance time, dependent on walker | 3 - severe problem |
| b152 | Emotional functions | Mild anxiety about dislocation, falling and stair climbing | 1 |
| s750 | Structure of lower extremity | Right hip joint replaced surgically, with postoperative soft-tissue healing | Record as altered structure / postoperative state |
| ICF code | ICF category | Current ability | Qualifier |
|---|---|---|---|
| d410 | Changing basic body position | Needs supervision and verbal cues for bed mobility | 2 |
| d420 | Transferring oneself | Requires supervision for bed-to-chair and toilet transfer using walker | 2 |
| d450 | Walking | Walks 25 m indoors using a front-wheeled walker, with rest required | 3 |
| d455 | Moving around | Cannot safely manage stairs independently | 3 |
| d465 | Moving around using equipment | Uses walker appropriately after instruction but needs occasional cueing | 1 |
| d510 | Washing oneself | Requires help for lower-body washing and safe shower access | 2 |
| d540 | Dressing | Needs assistance for socks, shoes and lower-body dressing | 3 |
| d640 | Doing housework | Unable to cook, clean, carry laundry or shop at present | 4 - complete problem |
| d920 | Recreation and leisure | Unable to garden or take usual community walks | 3 |
| ICF code | ICF category | Influence |
|---|---|---|
| e115+2 | Products and technology for personal use in daily living | Raised toilet seat, shower chair, reacher and long-handled shoehorn are significant facilitators |
| e120+3 | Products and technology for personal indoor/outdoor mobility | Front-wheeled walker is a major facilitator |
| e310+2 | Immediate family | Husband is available and supportive for transfers, meals and transport |
| e355+2 | Health professionals | Orthopaedic surgeon, nurse and physiotherapist facilitate recovery |
| e150-2 | Design, construction and building products for public/private buildings | Stairs and low toilet at home create moderate barriers |
| e580+1 | Health services, systems and policies | Access to outpatient physiotherapy is a facilitator |
| ICF domain | Goal |
|---|---|
| d420 Transfer | Perform bed-chair and toilet transfers safely with walker and supervision only. |
| d450 Walking | Walk at least 75-100 m with walker, weight-bearing as allowed, with pain at or below 4/10. |
| d455 Moving around | Climb and descend 12 steps using railing and prescribed technique with supervision. |
| d540 Dressing | Independently use reacher and long-handled shoehorn for lower-body dressing while respecting surgical precautions. |
| b152 Emotional functions | Explain hip precautions, signs requiring medical review, and safe mobility plan with reduced fear. |
| ICF domain | Goal |
|---|---|
| b280 Pain | Pain at or below 2/10 during ordinary household walking. |
| b730 Muscle power | Improve hip abductor and extensor strength to at least 4/5, if appropriate at follow-up. |
| d450 Walking | Walk independently indoors and outdoors with a cane or no aid, depending on gait safety and surgeon/physiotherapist assessment. |
| d640 Housework | Resume light meal preparation and simple household activities using pacing and safety techniques. |
| d920 Recreation | Return gradually to light gardening, avoiding excessive bending, twisting and high-impact activity. |
Mrs. A is a 67-year-old woman on postoperative day 3 following right total hip replacement for severe hip osteoarthritis. She has moderate postoperative pain, reduced hip joint mobility and reduced right hip muscle power, resulting in a severely impaired gait pattern. She requires a walker and supervision for transfers, has difficulty walking beyond 25 m, cannot negotiate stairs independently, and needs assistance with lower-body dressing, bathing and household activities. Her husband, rehabilitation team, walker and adaptive equipment are important facilitators. Stairs and a low toilet at home are environmental barriers. The rehabilitation focus is pain management, safe mobility, transfer and stair training, independence in activities of daily living, progressive strengthening, gait retraining and preparation for safe discharge home.
Make a PowerPoint presentation of the THR case
Insert all this in final document of icf core set , and give me link The format and link should be directly from icf core set official
site:icf-core-sets.org osteoarthritis comprehensive ICF core set download form
https://www.icf-core-sets.org/en/page1.php
~/
https://www.icf-core-sets.org/en/page1.php
"Osteoarthritis Comprehensive" "ICF-based Documentation Form"
~/
python -c "import requests; u='https://www.icf-core-sets.org/en/page1.php'; r=requests.get(u,timeout=30); print(r.status_code); open('/tmp/workspace/icf_page1.html','w',encoding='utf-8').write(r.text); print(len(r.text))"
python -c "import requests; u='https://www.icf-core-sets.org/en/page2.php'; r=requests.post(u,data={'cs_selection[]':['18','1']},timeout=30); print(r.status_code, r.url, len(r.text)); open('/tmp/workspace/icf_page2.html','w',encoding='utf-8').write(r.text)"
python -c "from bs4 import BeautifulSoup as B; s=B(open('/tmp/workspace/icf_page2.html',encoding='utf-8').read(),'html.parser'); f=s.find('form'); print([(x.name,x.get('name'),x.get('value'),x.get('type')) for x in f.find_all(['input','select'])[-20:]])"
python -c "import requests; from bs4 import BeautifulSoup as B; h=open('/tmp/workspace/icf_page2.html',encoding='utf-8').read(); s=B(h,'html.parser'); f=s.find('form'); data={}; [data.update({x['name']:x.get('value','')}) for x in f.find_all('input') if x.get('name')]; data['cs_sel2[]']=['18','1']; r=requests.post('https://www.icf-core-sets.org/en/page3.php',data=data,timeout=30); print(r.status_code,r.url,len(r.text)); open('/tmp/workspace/icf_page3.html','w',encoding='utf-8').write(r.text)"
python -c "import requests; from bs4 import BeautifulSoup as B; h=open('/tmp/workspace/icf_page3.html',encoding='utf-8').read(); s=B(h,'html.parser'); f=s.find('form'); data={}; [data.update({x['name']:x.get('value','')}) for x in f.find_all('input') if x.get('name')]; data['cs_sel2[]']=['18','1']; r=requests.post('https://www.icf-core-sets.org/en/page4.php',data=data,timeout=30); print(r.status_code,r.url,len(r.text)); open('/tmp/workspace/icf_page4.html','w',encoding='utf-8').write(r.text)"
~/
python -c "from bs4 import BeautifulSoup as B; s=B(open('/tmp/workspace/icf_page4.html',encoding='utf-8').read(),'html.parser'); f=s.find('form'); print(f.get('action')); print([(x.name,x.get('name'),x.get('value'),x.get('type')) for x in f.find_all(['input','textarea','select'])[-25:]])"
| Official ICF category | Case finding | Qualifier |
|---|---|---|
| b130 Energy and drive functions | Mild fatigue after walking and exercise | 1 |
| b134 Sleep functions | Sleep mildly disturbed by postoperative discomfort | 1 |
| b152 Emotional functions | Mild anxiety about falling and hip dislocation | 1 |
| b280 Sensation of pain | Right hip pain 5/10 at rest and 7/10 during walking | 2 |
| b710 Mobility of joint functions | Reduced right hip movement because of pain, swelling and postoperative precautions | 2 |
| b715 Stability of joint functions | Reduced confidence and stability in operated hip during standing | 2 |
| b730 Muscle power functions | Right hip abductor/extensor weakness, approximately 3-/5 | 2 |
| b740 Muscle endurance functions | Fatigue with short walking distance | 1 |
| b770 Gait pattern functions | Antalgic gait, reduced right stance phase, walker dependent | 3 |
| b780 Sensations related to muscles and movement functions | Stiffness and postoperative discomfort around right hip | 2 |
| Official ICF category | Case finding |
|---|---|
| s740 Structure of pelvic region | Right hip region in postoperative healing phase |
| s750 Structure of lower extremity | Right hip joint replaced with prosthesis; soft-tissue healing ongoing |
| Official ICF category | Case finding | Qualifier |
|---|---|---|
| d230 Carrying out daily routine | Needs help to complete usual morning and home routine | 2 |
| d410 Changing basic body position | Needs supervision and cues for bed mobility | 2 |
| d415 Maintaining a body position | Difficulty standing for prolonged periods | 2 |
| d430 Lifting and carrying objects | Unable to safely carry household objects while using walker | 3 |
| d450 Walking | Walks about 25 m indoors with front-wheeled walker and rest break | 3 |
| d455 Moving around | Unable to independently negotiate stairs | 3 |
| d470 Using transportation | Requires assistance for car transfer and community transport | 2 |
| d510 Washing oneself | Needs assistance for lower-body washing and shower safety | 2 |
| d530 Toileting | Requires raised toilet seat and supervision | 2 |
| d540 Dressing | Needs assistance or adaptive equipment for socks, shoes and lower-body dressing | 3 |
| d620 Acquisition of goods and services | Currently unable to shop independently | 4 |
| d640 Doing housework | Unable to clean, cook full meals, carry laundry or manage household tasks | 4 |
| d920 Recreation and leisure | Unable to garden or take usual community walks | 3 |
| Official ICF category | Case finding | Qualifier |
|---|---|---|
| e115 Products and technology for personal use in daily living | Raised toilet seat, shower chair, reacher and long-handled shoehorn | +2 |
| e120 Products and technology for personal indoor and outdoor mobility | Front-wheeled walker supports safe mobility | +3 |
| e150 Design and construction of buildings for public/private use | 12 stairs and low toilet at home | -2 |
| e310 Immediate family | Husband assists with meals, transport and care | +2 |
| e355 Health professionals | Orthopaedic surgeon, nursing and physiotherapy team | +2 |
| e580 Health services, systems and policies | Access to outpatient rehabilitation | +1 |
Create the THR case PowerPoint now
~/
mkdir -p "/tmp/workspace/thr-icf-case-presentation/src" "/tmp/workspace/thr-icf-case-presentation/output" && python -c "from pathlib import Path; Path('/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py').write_text('''from pptx import Presentation\nfrom pptx.util import Inches, Pt\nfrom pptx.dml.color import RGBColor\nfrom pptx.enum.text import PP_ALIGN, MSO_ANCHOR\nfrom pptx.enum.shapes import MSO_SHAPE\nfrom pptx.enum.dml import MSO_THEME_COLOR\n\nOUT = \"/tmp/workspace/thr-icf-case-presentation/output/THR_ICF_Core_Set_Case_Presentation.pptx\"\nprs = Presentation()\nprs.slide_width = Inches(13.333)\nprs.slide_height = Inches(7.5)\nblank = prs.slide_layouts[6]\n\nNAVY=RGBColor(20,53,82); TEAL=RGBColor(35,130,130); LIGHT=RGBColor(238,246,247); PALE=RGBColor(223,237,242); GOLD=RGBColor(224,166,61); DARK=RGBColor(39,49,60); MID=RGBColor(93,110,122); WHITE=RGBColor(255,255,255); RED=RGBColor(181,63,65); GREEN=RGBColor(44,128,93)\n\ndef rect(slide,x,y,w,h,color, radius=False):\n shp=slide.shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE if radius else MSO_SHAPE.RECTANGLE, Inches(x), Inches(y), Inches(w), Inches(h))\n shp.fill.solid(); shp.fill.fore_color.rgb=color; shp.line.fill.background(); return shp\ndef text(slide,x,y,w,h,content,size=18,color=DARK,bold=False,align=PP_ALIGN.LEFT, font=\"Aptos\"):\n tb=slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h)); tf=tb.text_frame; tf.clear(); tf.word_wrap=True; tf.margin_left=Inches(.06); tf.margin_right=Inches(.06); tf.margin_top=Inches(.03); tf.margin_bottom=Inches(.03);\n lines=content.split(\"\\n\")\n for i,line in enumerate(lines):\n p=tf.paragraphs[0] if i==0 else tf.add_paragraph(); p.text=line; p.alignment=align; p.space_after=Pt(4);\n for r in p.runs: r.font.name=font; r.font.size=Pt(size); r.font.bold=bold; r.font.color.rgb=color\n return tb\ndef title(slide,t,sub=None,n=None):\n rect(slide,0,0,13.333,.18,TEAL)\n text(slide,.65,.38,11.8,.55,t,28,NAVY,True)\n if sub: text(slide,.67,1.0,11.6,.3,sub,11,MID)\n if n is not None: text(slide,12.2,.45,.45,.3,str(n),11,TEAL,True,PP_ALIGN.RIGHT)\ndef footer(slide):\n text(slide,.65,7.14,12,.18,\"Hypothetical educational case | ICF Core Sets documentation framework\",9,MID)\ndef bullet_list(slide,x,y,w,h,items,size=17,color=DARK):\n tb=slide.shapes.add_textbox(Inches(x),Inches(y),Inches(w),Inches(h)); tf=tb.text_frame; tf.clear(); tf.word_wrap=True\n tf.margin_left=Inches(.08); tf.margin_right=Inches(.05);\n for i,it in enumerate(items):\n p=tf.paragraphs[0] if i==0 else tf.add_paragraph(); p.text=it; p.level=0; p.font.size=Pt(size); p.font.name=\"Aptos\"; p.font.color.rgb=color; p.space_after=Pt(8); p.text='• '+it\n return tb\ndef card(slide,x,y,w,h,head,body,accent=TEAL):\n rect(slide,x,y,w,h,LIGHT,True); rect(slide,x,y,.12,h,accent,False); text(slide,x+.28,y+.18,w-.45,.3,head,15,accent,True); text(slide,x+.28,y+.62,w-.45,h-.75,body,13,DARK)\ndef table(slide,x,y,widths,rows,header=True,fs=12):\n rh=.44; total=sum(widths);\n for r,row in enumerate(rows):\n yy=y+r*rh\n for c,val in enumerate(row):\n xx=x+sum(widths[:c]); bg=NAVY if r==0 and header else (LIGHT if r%2 else WHITE)\n shp=rect(slide,xx,yy,widths[c],rh,bg,False); shp.line.color.rgb=RGBColor(210,220,223)\n text(slide,xx+.06,yy+.055,widths[c]-.12,rh-.08,str(val),fs,WHITE if r==0 and header else DARK,r==0 and header)\n\n# 1\ns=prs.slides.add_slide(blank); rect(s,0,0,13.333,7.5,NAVY); rect(s,0,0.18,13.333,.12,TEAL);\ntext(s,.8,1.35,11.7,.8,\"Total Hip Replacement Case\",36,WHITE,True); text(s,.82,2.25,10.8,.55,\"An ICF-based functioning profile and rehabilitation plan\",22,RGBColor(207,230,232));\nrect(s,.82,3.22,4.35,.62,TEAL,True); text(s,1.05,3.37,3.9,.22,\"Osteoarthritis Comprehensive + ICF Generic-7\",13,WHITE,True,PP_ALIGN.CENTER);\ntext(s,.82,5.85,10.9,.35,\"Hypothetical educational case | Postoperative day 3 after right THR\",15,RGBColor(207,230,232));\n# 2\ns=prs.slides.add_slide(blank); title(s,\"Case overview\",\"Clinical context and patient priorities\",2);\ncard(s,.7,1.55,3.75,4.65,\"Patient\",\"Mrs A, 67 years\\nRetired teacher\\nLives with husband\\nFirst-floor apartment\",TEAL);\ncard(s,4.8,1.55,3.75,4.65,\"Health condition\",\"Severe right hip osteoarthritis\\nRight uncemented THR\\nPosterolateral approach\\nPostoperative day 3\",GOLD);\ncard(s,8.9,1.55,3.75,4.65,\"Patient priorities\",\"Walk with less pain\\nManage 12 stairs\\nDress independently\\nReturn to gardening\",GREEN); footer(s)\n# 3\ns=prs.slides.add_slide(blank); title(s,\"Why use an ICF Core Set?\",\"A common language for the impact of a health condition\",3);\ntext(s,.85,1.55,11.6,.45,\"The ICF describes functioning in interaction with the environment, not diagnosis alone.\",20,NAVY,True,PP_ALIGN.CENTER);\nitems=[(\"Body functions & structures\",\"Pain, hip mobility, muscle power, gait, postoperative hip structure\",TEAL),(\"Activities & participation\",\"Transfers, dressing, walking, stairs, housework and leisure\",GOLD),(\"Environmental factors\",\"Walker, adaptive aids, family, professionals, stairs and toilet height\",GREEN)]\nfor i,(h,b,c) in enumerate(items): card(s,.85+i*4.08,2.55,3.7,2.15,h,b,c)\ntext(s,1.2,5.55,10.9,.8,\"Official selection used: Osteoarthritis Comprehensive Core Set with the ICF Generic-7 Set.\",17,MID,False,PP_ALIGN.CENTER); footer(s)\n# 4\ns=prs.slides.add_slide(blank); title(s,\"Assessment findings: body functions and structures\",\"ICF qualifier: 0 no problem | 1 mild | 2 moderate | 3 severe | 4 complete\",4);\ntable(s,.55,1.48,[1.05,3.1,6.55,1.05],[[\"Code\",\"ICF category\",\"Case finding\",\"Q\"],[\"b280\",\"Sensation of pain\",\"Pain 5/10 at rest; 7/10 during walking\",\"2\"],[\"b710\",\"Mobility of joint functions\",\"Reduced right hip movement due to pain, swelling and precautions\",\"2\"],[\"b730\",\"Muscle power functions\",\"Hip abductor/extensor weakness, approximately 3-/5\",\"2\"],[\"b740\",\"Muscle endurance functions\",\"Fatigue after short-distance walking and exercise\",\"1\"],[\"b770\",\"Gait pattern functions\",\"Antalgic gait with reduced right stance phase; walker dependent\",\"3\"],[\"b152\",\"Emotional functions\",\"Mild anxiety about falling and hip dislocation\",\"1\"],[\"s750\",\"Structure of lower extremity\",\"Right hip joint replaced; postoperative soft-tissue healing\",\"-\"]],fs=11); footer(s)\n#5\ns=prs.slides.add_slide(blank); title(s,\"Assessment findings: activities and participation\",\"Performance at postoperative day 3\",5);\ntable(s,.55,1.48,[1.05,3.25,6.4,1.05],[[\"Code\",\"ICF category\",\"Case finding\",\"Q\"],[\"d410\",\"Changing basic body position\",\"Supervision and cues required for bed mobility\",\"2\"],[\"d420\",\"Transferring oneself\",\"Supervision for bed-chair and toilet transfers with walker\",\"2\"],[\"d450\",\"Walking\",\"Walks about 25 m indoors with front-wheeled walker and rest\",\"3\"],[\"d455\",\"Moving around\",\"Cannot independently manage stairs\",\"3\"],[\"d510\",\"Washing oneself\",\"Assistance required for lower-body washing and shower safety\",\"2\"],[\"d540\",\"Dressing\",\"Assistance/adaptive equipment required for socks and shoes\",\"3\"],[\"d640\",\"Doing housework\",\"Unable to cook, clean, carry laundry or shop\",\"4\"],[\"d920\",\"Recreation and leisure\",\"Unable to garden or complete community walks\",\"3\"]],fs=11); footer(s)\n#6\ns=prs.slides.add_slide(blank); title(s,\"Environmental and personal factors\",\"Identify both barriers and facilitators\",6);\ntext(s,.75,1.4,5.6,.3,\"FACILITATORS\",16,GREEN,True); text(s,7.0,1.4,5.6,.3,\"BARRIERS\",16,RED,True);\ncard(s,.75,1.85,5.55,.85,\"e115 +2\",\"Raised toilet seat, shower chair, reacher and long-handled shoehorn\",GREEN);card(s,.75,2.95,5.55,.85,\"e120 +3\",\"Front-wheeled walker supports safe indoor mobility\",GREEN);card(s,.75,4.05,5.55,.85,\"e310 / e355 +2\",\"Supportive husband and rehabilitation professionals\",GREEN);\ncard(s,7.0,1.85,5.55,.85,\"e150 -2\",\"Twelve stairs and low toilet at home\",RED);card(s,7.0,2.95,5.55,.85,\"Personal factor\",\"Concern about falls and dislocation, but motivated and able to learn\",GOLD);\ntext(s,.8,5.55,11.7,.55,\"ICF personal factors are clinically important but are not assigned formal ICF codes.\",15,MID,False,PP_ALIGN.CENTER); footer(s)\n#7\ns=prs.slides.add_slide(blank); title(s,\"ICF problem list\",\"Prioritised issues for rehabilitation planning\",7);\nprobs=[\"Postoperative pain, stiffness, hip weakness and altered gait\",\"Reduced independence in transfers, washing and lower-body dressing\",\"Limited walking tolerance and unsafe stair negotiation\",\"Temporary inability to complete household tasks and recreation\",\"Fear of falling and concern about hip dislocation\",\"Home barriers: stairs and low toilet; strong support and equipment facilitators\"]\nfor i,p in enumerate(probs):\n y=1.35+i*.78; rect(s,.8,y,.52,.52,TEAL if i<3 else GOLD,True); text(s,.93,y+.11,.24,.2,str(i+1),13,WHITE,True,PP_ALIGN.CENTER); text(s,1.52,y+.05,10.7,.4,p,17,DARK)\nfooter(s)\n#8\ns=prs.slides.add_slide(blank); title(s,\"Goals linked to ICF domains\",\"Goals are measurable, time-bound and meaningful to the patient\",8);\ntable(s,.7,1.45,[2.2,4.3,5.1],[[\"Time frame\",\"ICF focus\",\"Goal\"],[\"By discharge\",\"d420, d450\",\"Transfer safely and walk 75-100 m with walker, supervision only\"],[\"By discharge\",\"d455\",\"Negotiate 12 steps using rail, prescribed technique and supervision\"],[\"By discharge\",\"d540\",\"Dress lower body independently using adaptive equipment\"],[\"4-6 weeks\",\"b280, b730, d450\",\"Pain ≤2/10 for household walking; hip strength toward 4/5; progress aid as safe\"],[\"4-6 weeks\",\"d640, d920\",\"Resume light meal preparation and graded gardening if medically cleared\"]],fs=12); footer(s)\n#9\ns=prs.slides.add_slide(blank); title(s,\"Intervention plan\",\"Progress is guided by surgeon instructions, wound status and patient response\",9);\ncard(s,.65,1.45,3.0,4.7,\"Education & safety\",\"• Follow surgeon-specific weight-bearing and hip precaution instructions\\n• Safe turning and walker use\\n• Falls prevention and pacing\\n• Red-flag education: wound concerns, calf swelling, chest symptoms, sudden severe pain\",TEAL);\ncard(s,3.95,1.45,3.0,4.7,\"Early exercise\",\"• Ankle pumps and breathing exercises\\n• Quadriceps and gluteal sets\\n• Heel slides within protocol\\n• Gentle hip abduction/extension as permitted\\n• Progressive abductor and extensor strengthening\",GOLD);\ncard(s,7.25,1.45,3.0,4.7,\"Functional training\",\"• Bed mobility and sit-to-stand\\n• Toilet and car transfers\\n• Walker gait training\\n• Stair practice with rail\\n• Lower-body dressing aids\",GREEN);\ncard(s,10.55,1.45,2.15,4.7,\"Discharge\",\"• Home safety modifications\\n• Outpatient or home PT\\n• Gradual walking progression\\n• Orthopaedic follow-up\",TEAL); footer(s)\n#10\ns=prs.slides.add_slide(blank); title(s,\"ICF summary statement\",\"An integrated biopsychosocial description\",10);\nrect(s,.78,1.45,11.8,4.25,PALE,True); text(s,1.08,1.75,11.15,3.65,\"Mrs A is a 67-year-old woman on postoperative day 3 following right total hip replacement for severe hip osteoarthritis. Moderate pain, reduced hip mobility and hip muscle weakness contribute to a severe gait impairment. She needs a walker and supervision for transfers, has limited walking distance, cannot independently manage stairs, and needs help with lower-body self-care and household tasks. Her husband, health professionals, mobility aid and adaptive equipment are key facilitators. Stairs and a low toilet are barriers. Rehabilitation prioritises safe mobility, self-care independence, strength and gait recovery, stair training, and discharge preparation.\",19,DARK);\ntext(s,1.0,6.18,11.25,.3,\"Source framework: ICF Core Sets official documentation-form selection, Osteoarthritis Comprehensive + ICF Generic-7.\",11,MID,False,PP_ALIGN.CENTER); footer(s)\n#11\ns=prs.slides.add_slide(blank); title(s,\"Official ICF Core Sets resource\",\"Use the official site to create the documentation form\",11);\ntext(s,.8,1.55,11.7,.42,\"Official selection pathway\",22,NAVY,True,PP_ALIGN.CENTER);\nfor i,t in enumerate([\"1. Open the official ICF Core Sets documentation form\",\"2. Select Osteoarthritis Comprehensive\",\"3. Add ICF Generic-7 Set when appropriate\",\"4. Enter individual qualifiers and problem statements\"]):\n y=2.35+i*.75; rect(s,2.0,y,.45,.45,TEAL,True); text(s,2.1,y+.08,.25,.2,str(i+1),12,WHITE,True,PP_ALIGN.CENTER); text(s,2.7,y+.03,8.4,.35,t,18,DARK)\ntext(s,.8,5.8,11.7,.4,\"https://www.icf-core-sets.org/en/page1.php\",18,TEAL,True,PP_ALIGN.CENTER);\ntext(s,.8,6.35,11.7,.25,\"This presentation is a hypothetical educational case, not an official patient record.\",11,MID,False,PP_ALIGN.CENTER); footer(s)\n\nprs.save(OUT)\nprint(OUT)\n''', encoding='utf-8')" && python "/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py" && ls -lh "/tmp/workspace/thr-icf-case-presentation/output/THR_ICF_Core_Set_Case_Presentation.pptx"
python -c "p='/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py'; s=open(p,encoding='utf-8').read(); s=s.replace('lines=content.split(\"\\n\")', 'lines=content.split(chr(10))'); open(p,'w',encoding='utf-8').write(s)" && python "/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py" && ls -lh "/tmp/workspace/thr-icf-case-presentation/output/THR_ICF_Core_Set_Case_Presentation.pptx"
python -c "p='/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py'; s=open(p,encoding='utf-8').read(); out=[]; q=False; esc=False; i=0;\nfor ch in s:\n if q:\n if ch=='\\n': out.append('\\\\n'); continue\n if ch=='\\\"' and not esc: q=False\n esc=(ch=='\\\\' and not esc); out.append(ch)\n else:\n if ch=='\\\"': q=True\n out.append(ch)\nopen(p,'w',encoding='utf-8').write(''.join(out))" && python "/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py" && ls -lh "/tmp/workspace/thr-icf-case-presentation/output/THR_ICF_Core_Set_Case_Presentation.pptx"
python -c "import re; p='/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py'; s=open(p,encoding='utf-8').read(); s=re.sub(r'\"[^\"]*\"',lambda m:m.group(0).replace(chr(10),'\\\\n'),s,flags=re.S); open(p,'w',encoding='utf-8').write(s)" && python "/tmp/workspace/thr-icf-case-presentation/src/create_presentation.py" && ls -lh "/tmp/workspace/thr-icf-case-presentation/output/THR_ICF_Core_Set_Case_Presentation.pptx"