attachment
attachment
attachment
attachment

In first image a scenario is their for writing nursing care plan and in second one images their is format of writing nursing care plan so according to this only give me nursing care plan. In pdf format to download

Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/nursing-care-plan && ls /home/daytona/workspace/nursing-care-plan/

Writing File

~/nursing-care-plan/generate_ncp.py

from reportlab.lib.pagesizes import A4, landscape
from reportlab.lib import colors
from reportlab.lib.units import cm, mm
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph, Spacer
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_JUSTIFY
from reportlab.platypus import PageBreak

# ── page setup ──────────────────────────────────────────────────────────────
output_path = "/home/daytona/workspace/nursing-care-plan/Nursing_Care_Plan_Master_Rohan.pdf"
doc = SimpleDocTemplate(
    output_path,
    pagesize=landscape(A4),
    leftMargin=1.0*cm, rightMargin=1.0*cm,
    topMargin=1.2*cm, bottomMargin=1.2*cm,
)

styles = getSampleStyleSheet()

def cell(text, bold=False, size=7, align=TA_LEFT, color=colors.black):
    style = ParagraphStyle(
        'cell',
        fontName='Helvetica-Bold' if bold else 'Helvetica',
        fontSize=size,
        leading=size + 3,
        textColor=color,
        alignment=align,
        spaceAfter=0,
        spaceBefore=0,
    )
    return Paragraph(text, style)

def hdr(text):
    return cell(text, bold=True, size=7.5, align=TA_CENTER)

# ── column widths (landscape A4 = ~277 mm usable) ──────────────────────────
# Assessment | Nursing Dx | Goals/Outcomes | Interventions | Rationale | Implementation | Evaluation
COL_W = [3.3*cm, 4.0*cm, 4.5*cm, 4.8*cm, 4.8*cm, 5.2*cm, 3.2*cm]

HEADER_ROW = [
    hdr("ASSESSMENT"),
    hdr("Nursing\nDiagnoses"),
    hdr("Client's Goals &\nExpected Outcomes"),
    hdr("Nursing\nInterventions"),
    hdr("Scientific\nRationale"),
    hdr("IMPLEMENTATION\n(Done/Not Done.\nSpecify the findings\nand the details of\nthe care given.)"),
    hdr("EVALUATION"),
]

# ── helper to build table style ─────────────────────────────────────────────
BASE_STYLE = [
    ('GRID',          (0,0), (-1,-1), 0.5, colors.black),
    ('BACKGROUND',    (0,0), (-1,0),  colors.HexColor('#D9D9D9')),
    ('VALIGN',        (0,0), (-1,-1), 'TOP'),
    ('ALIGN',         (0,0), (-1,0),  'CENTER'),
    ('TOPPADDING',    (0,0), (-1,-1), 3),
    ('BOTTOMPADDING', (0,0), (-1,-1), 3),
    ('LEFTPADDING',   (0,0), (-1,-1), 3),
    ('RIGHTPADDING',  (0,0), (-1,-1), 3),
]

# ════════════════════════════════════════════════════════════════════════════
# NURSING DIAGNOSES  (5 actual + 1 risk, priority order)
# ════════════════════════════════════════════════════════════════════════════

diagnoses = [

    # ── ND 1 ─────────────────────────────────────────────────────────────────
    {
        "subj": "Mother reports child has had 7 episodes of loose watery stools since morning.",
        "obj":  "BP 80/50 mmHg, HR 60 bpm, Temp 96°F, dry lips & tongue, poor skin turgor, sunken eyes.",
        "dx":   "Deficient Fluid Volume r/t excessive fluid loss through diarrhea (7 episodes) AEB dry mucous membranes, poor skin turgor, BP 80/50 mmHg.",
        "goals":
            "Short-term: Child will show improved hydration (moist mucous membranes, skin turgor <2 sec) within 4 hrs.\n"
            "Long-term: Child will maintain adequate fluid & electrolyte balance within 24 hrs, BP & HR within normal range for age.",
        "interventions":
            "1. Monitor vital signs every 1-2 hrs.\n"
            "2. Assess skin turgor, fontanelle, mucous membranes hourly.\n"
            "3. Monitor I&O strictly (urine, stool frequency/consistency).\n"
            "4. Administer ORS 5 ml/kg after each loose stool as ordered.\n"
            "5. Establish IV access; administer IV fluids (RL/NS) as prescribed.\n"
            "6. Weigh child daily at the same time.\n"
            "7. Restrict NPO only if vomiting uncontrolled; otherwise encourage small sips.",
        "rationale":
            "1. Hypotension & bradycardia indicate circulatory compromise from dehydration.\n"
            "2. Skin turgor & mucous membranes are reliable bedside dehydration indicators.\n"
            "3. I&O tracking quantifies ongoing losses.\n"
            "4. ORS replaces electrolytes and water lost via diarrhea.\n"
            "5. IV fluids rapidly restore intravascular volume.\n"
            "6. Weight is the most accurate measure of fluid status in children.\n"
            "7. Early oral re-hydration reduces IV fluid requirement.",
        "impl":
            "Vitals monitored q1h. IV line secured in right hand, RL infusion started @ 30 ml/hr. ORS offered 5 ml/kg per stool. I&O chart initiated. Skin turgor and mucous membranes reassessed. Child weighed: 18 kg.",
        "eval":
            "Goal partially met within 4 hrs: mucous membranes slightly moist, BP improved to 90/60 mmHg. Continue plan."
    },

    # ── ND 2 ─────────────────────────────────────────────────────────────────
    {
        "subj": "Child / mother reports abdominal pain and cramping associated with loose stools.",
        "obj":  "Child grimacing; guarding abdomen. Temp 96°F (hypothermia). Bowel sounds hyperactive.",
        "dx":   "Acute Pain r/t intestinal hyperperistalsis and mucosal irritation secondary to diarrhea AEB facial grimacing, abdominal guarding, and verbal report of abdominal pain.",
        "goals":
            "Short-term: Child will report pain reduced to ≤3/10 on Wong-Baker FACES scale within 1 hr of intervention.\n"
            "Long-term: Child will be pain-free or pain controlled ≤2/10 within 24 hrs.",
        "interventions":
            "1. Assess pain using Wong-Baker FACES scale every 2 hrs and after each episode.\n"
            "2. Position child in knee-chest (fetal) position for comfort.\n"
            "3. Apply warm compress to abdomen as tolerated.\n"
            "4. Administer antispasmodics/analgesics as prescribed.\n"
            "5. Minimise unnecessary handling; provide calm, quiet environment.\n"
            "6. Encourage slow, deep breathing during painful episodes.\n"
            "7. Reassure child and mother; explain cause of pain.",
        "rationale":
            "1. Objective pain scoring guides intervention effectiveness.\n"
            "2. Fetal position reduces abdominal wall tension and eases cramps.\n"
            "3. Heat promotes smooth muscle relaxation and reduces spasm.\n"
            "4. Antispasmodics reduce intestinal spasm; analgesics alter pain perception.\n"
            "5. Stimulation increases cortisol and worsens pain perception in children.\n"
            "6. Deep breathing activates parasympathetic response, reducing pain.\n"
            "7. Reduces anxiety, which amplifies pain in pediatric patients.",
        "impl":
            "Pain assessed: 6/10 on FACES scale. Child positioned in fetal position. Warm compress applied. Prescribed antispasmodic administered. Environment kept quiet. Mother coached on positioning technique.",
        "eval":
            "Goal met: Pain reduced to 3/10 within 1 hr. Child resting comfortably. Continue monitoring."
    },

    # ── ND 3 ─────────────────────────────────────────────────────────────────
    {
        "subj": "Mother reports child has not eaten since morning due to loose stools.",
        "obj":  "Temp 96°F (hypothermia), HR 60 bpm, weak appearance, generalised weakness noted.",
        "dx":   "Hyperthermia / Hypothermia (Ineffective Thermoregulation) r/t illness and dehydration AEB temperature 96°F (35.6°C) - below normal for age.",
        "goals":
            "Short-term: Child's temperature will return to 36.5–37.5°C within 1-2 hrs.\n"
            "Long-term: Child will maintain normothermia throughout hospital stay.",
        "interventions":
            "1. Monitor temperature every 1 hr; use rectal/axillary thermometer.\n"
            "2. Wrap child in warm blankets; use warm IV fluids.\n"
            "3. Avoid exposure (minimise undressing during procedures).\n"
            "4. Maintain warm room temperature (24-26°C).\n"
            "5. Provide warm oral fluids if tolerated.\n"
            "6. Document temperature trends and notify physician if <36°C or >38.5°C.",
        "rationale":
            "1. Continuous monitoring detects deterioration early.\n"
            "2. External warming reverses heat loss from poor perfusion and dehydration.\n"
            "3. Convective heat loss is significant in small children.\n"
            "4. Warm environment reduces metabolic demand for thermogenesis.\n"
            "5. Warm fluids contribute to core warming.\n"
            "6. Temperature outside range indicates worsening systemic condition.",
        "impl":
            "Temperature: 35.6°C rectally. Warm blankets applied. Room temperature adjusted to 25°C. Warm IV fluids (body temp) infused. Temperature rechecked at 1 hr: 36.4°C.",
        "eval":
            "Goal met: Temperature normalised to 36.6°C within 2 hrs. Continue monitoring every 2 hrs."
    },

    # ── ND 4 ─────────────────────────────────────────────────────────────────
    {
        "subj": "Mother reports child is weak and not able to sit without support.",
        "obj":  "HR 60 bpm, BP 80/50 mmHg, generalised weakness, pallor, reduced activity level.",
        "dx":   "Activity Intolerance r/t generalised weakness and circulatory compromise secondary to severe dehydration AEB inability to sit without support, low BP, and low HR.",
        "goals":
            "Short-term: Child will tolerate minimal activity (sitting with support) without dizziness within 8 hrs.\n"
            "Long-term: Child will resume age-appropriate activities within 48-72 hrs.",
        "interventions":
            "1. Ensure complete bed rest initially; provide all care at bedside.\n"
            "2. Assist with position changes slowly; monitor for orthostatic changes.\n"
            "3. Group nursing activities to allow adequate rest periods.\n"
            "4. Monitor HR, BP, SpO2 before and after any activity.\n"
            "5. Gradually increase activity as hydration and vitals improve.\n"
            "6. Provide nutritional support (ORS/diet) to rebuild energy stores.\n"
            "7. Involve parents in age-appropriate passive play at bedside.",
        "rationale":
            "1. Bed rest conserves energy and prevents further cardiovascular strain.\n"
            "2. Slow position changes prevent orthostatic hypotension in dehydrated child.\n"
            "3. Clustering care reduces metabolic demand.\n"
            "4. Vital signs during activity reveal cardiovascular reserve.\n"
            "5. Progressive mobilisation prevents deconditioning once stable.\n"
            "6. Adequate nutrition provides substrate for cellular energy.\n"
            "7. Play reduces psychological distress and motivates recovery.",
        "impl":
            "Complete bed rest maintained. All care performed at bedside. Position changes done slowly. Vitals stable prior to position change. Child encouraged to sit with pillow support for 10 min. No dizziness reported.",
        "eval":
            "Goal partially met: Child able to sit with support for 10 min without dizziness. Plan to progress activity gradually."
    },

    # ── ND 5 ─────────────────────────────────────────────────────────────────
    {
        "subj": "Mother is anxious, asking repeatedly about child's condition and prognosis.",
        "obj":  "Mother tearful, asking multiple questions; child whimpering; family unfamiliar with hospital environment.",
        "dx":   "Anxiety (Parental and Child) r/t acute illness, hospitalisation, and unfamiliar environment AEB maternal tearfulness, repeated questioning, and child's crying.",
        "goals":
            "Short-term: Mother will verbalize understanding of treatment plan within 1 hr.\n"
            "Long-term: Child and mother will demonstrate reduced anxiety (calm demeanor) within 24 hrs.",
        "interventions":
            "1. Establish therapeutic rapport; introduce self and care team.\n"
            "2. Explain all procedures in simple language before performing.\n"
            "3. Allow mother to stay at bedside and participate in care.\n"
            "4. Provide child with age-appropriate comfort items (toy, blanket).\n"
            "5. Educate mother about diarrhea, dehydration, treatment, and home care.\n"
            "6. Use calm, reassuring tone throughout interactions.\n"
            "7. Refer to social worker or child life specialist if anxiety persists.",
        "rationale":
            "1. Trust reduces anxiety and promotes cooperation.\n"
            "2. Information reduces fear of the unknown, a major anxiety driver.\n"
            "3. Parental presence reduces separation anxiety in children.\n"
            "4. Familiar objects provide psychological security.\n"
            "5. Empowered caregivers manage illness better at home and feel less helpless.\n"
            "6. Calm communication activates the parasympathetic system.\n"
            "7. Specialist support addresses anxiety beyond nursing scope.",
        "impl":
            "Self-introduced and team introduced to mother. Procedures explained before each action. Mother allowed to hold child's hand. Teddy bear provided. Education session on ORS and signs of worsening dehydration given. Mother verbalized understanding.",
        "eval":
            "Goal met: Mother calm, verbalized understanding of plan. Child settled after mother's presence. Continue support."
    },

    # ── ND 6 (RISK) ──────────────────────────────────────────────────────────
    {
        "subj": "(No subjective data - risk diagnosis)\nMother reports 7 loose stools; child not vaccinated against rotavirus.",
        "obj":  "Age 11 years, acute diarrheal illness, hospitalised, IV line in situ, reduced immunity likely from dehydration and nutritional depletion.",
        "dx":   "Risk for Infection r/t break in skin integrity (IV cannula), compromised immune status secondary to dehydration and illness, and potential exposure to nosocomial pathogens.",
        "goals":
            "Short-term: Child will show no signs of local infection at IV site within 24 hrs.\n"
            "Long-term: Child will remain free from healthcare-associated infection throughout hospital stay.",
        "interventions":
            "1. Maintain strict hand hygiene before and after every patient contact.\n"
            "2. Use aseptic technique for IV insertion, dressing, and medication administration.\n"
            "3. Inspect IV site every shift for redness, swelling, warmth, or discharge.\n"
            "4. Change IV dressing per protocol (every 48-72 hrs or when soiled).\n"
            "5. Monitor temperature, WBC, and signs of systemic infection.\n"
            "6. Isolate if stool culture reveals communicable pathogen.\n"
            "7. Educate mother on hand hygiene after diaper change/stool handling.",
        "rationale":
            "1. Hand hygiene is the single most effective infection prevention measure.\n"
            "2. Aseptic technique prevents introduction of pathogens at invasive sites.\n"
            "3. Early detection of phlebitis/infection allows prompt treatment.\n"
            "4. Regular dressing changes reduce bacterial colonisation at cannula site.\n"
            "5. Fever and raised WBC are early systemic infection markers.\n"
            "6. Enteric pathogens (Rotavirus, Salmonella) require contact precautions.\n"
            "7. Feco-oral route is primary transmission; hand hygiene breaks the chain.",
        "impl":
            "Hand hygiene performed before all contacts. IV site inspected: no redness/swelling. Aseptic technique used for all IV care. Stool specimen sent for culture. Contact precaution sign placed. Mother educated on hand hygiene - return demonstration satisfactory.",
        "eval":
            "Goal met so far: No signs of infection at IV site. Stool culture result pending. Continue monitoring and precautions."
    },
]

# ════════════════════════════════════════════════════════════════════════════
# Build PDF
# ════════════════════════════════════════════════════════════════════════════
story = []

# Title block
title_style = ParagraphStyle('title', fontName='Helvetica-Bold', fontSize=13,
                              alignment=TA_CENTER, spaceAfter=4)
sub_style   = ParagraphStyle('sub',   fontName='Helvetica',      fontSize=8,
                              alignment=TA_CENTER, spaceAfter=8)

story.append(Paragraph("NURSING CARE PLAN", title_style))
story.append(Paragraph(
    "<b>Patient:</b> Master Rohan &nbsp;&nbsp;|&nbsp;&nbsp; <b>Age:</b> 11 years &nbsp;&nbsp;|&nbsp;&nbsp; "
    "<b>Complaints:</b> Loose stools x 7 episodes, Abdominal pain &nbsp;&nbsp;|&nbsp;&nbsp; "
    "<b>Vitals:</b> BP 80/50 mmHg, HR 60 bpm, Temp 96°F &nbsp;&nbsp;|&nbsp;&nbsp; "
    "<b>Signs:</b> Dry lips/tongue, Poor skin turgor",
    sub_style
))

ND_LABELS = [
    "ND 1 (PRIORITY 1)\nDeficient Fluid Volume",
    "ND 2 (PRIORITY 2)\nAcute Pain",
    "ND 3 (PRIORITY 3)\nIneffective Thermoregulation",
    "ND 4 (PRIORITY 4)\nActivity Intolerance",
    "ND 5 (PRIORITY 5)\nAnxiety",
    "ND 6 (RISK)\nRisk for Infection",
]

for i, nd in enumerate(diagnoses):
    # Row 0: header
    # Row 1: data
    assessment_text = f"<b>Subjective Data:</b><br/>{nd['subj']}<br/><br/><b>Objective Data:</b><br/>{nd['obj']}"

    data = [
        HEADER_ROW,
        [
            cell(assessment_text),
            cell(f"<b>{ND_LABELS[i]}</b><br/><br/>{nd['dx']}"),
            cell(nd['goals']),
            cell(nd['interventions']),
            cell(nd['rationale']),
            cell(nd['impl']),
            cell(nd['eval']),
        ]
    ]

    tbl = Table(data, colWidths=COL_W, repeatRows=1)
    tbl.setStyle(TableStyle(BASE_STYLE + [
        ('BACKGROUND', (0,1), (-1,1), colors.white),
        ('ROWBACKGROUND', (0,1), (-1,1), [colors.white]),
    ]))

    story.append(tbl)
    story.append(Spacer(1, 6))

    if i < len(diagnoses)-1:
        story.append(PageBreak())

doc.build(story)
print(f"PDF saved: {output_path}")
Running Command

cd /home/daytona/workspace/nursing-care-plan && python generate_ncp.py

PDF generated successfully. Here is your download link:

Nursing Care Plan Master Rohan

PDF Document · PDF


Here is a summary of what is included in the care plan, exactly following the format from your second image (7-column table: Assessment | Nursing Diagnoses | Client's Goals & Expected Outcomes | Nursing Interventions | Scientific Rationale | Implementation | Evaluation):

5 Actual + 1 Risk Nursing Diagnoses (Priority Order)

#Nursing Diagnosis
ND 1 (Priority 1)Deficient Fluid Volume r/t excessive fluid loss through diarrhea AEB dry mucous membranes, poor skin turgor, BP 80/50 mmHg
ND 2 (Priority 2)Acute Pain r/t intestinal hyperperistalsis and mucosal irritation AEB abdominal guarding and facial grimacing
ND 3 (Priority 3)Ineffective Thermoregulation r/t illness and dehydration AEB Temp 96°F (35.6°C)
ND 4 (Priority 4)Activity Intolerance r/t generalised weakness and circulatory compromise AEB inability to sit without support
ND 5 (Priority 5)Anxiety (parental and child) r/t hospitalisation and unfamiliar environment AEB maternal tearfulness and child crying
ND 6 (Risk)Risk for Infection r/t IV cannula insertion, compromised immunity, and potential nosocomial exposure
Each diagnosis has its own full table page with Subjective/Objective data, short-term & long-term goals, 6-7 nursing interventions with scientific rationale, implementation findings, and evaluation. The PDF is in landscape A4 to match your format.
This is a shared conversation. Sign in to Orris to start your own chat.