Skip to main content

CarePlanBuilder

Create structured patient care plans as FHIR CarePlan resources. Supports plan status management, intent classification, category tagging, and optional author attribution.

Usage

import { CarePlanBuilder } from '@clinikapi/react';

<CarePlanBuilder
  proxyUrl="/api/clinik"
  patientId="pt_abc123"
  authorId="prac_def456"
  theme="light"
/>

Props

PropTypeRequiredDescription
proxyUrlstringYesBackend proxy URL
patientIdstringYesPatient ID
authorIdstringNoPractitioner who authored the plan
theme'light' | 'dark'NoColor theme

Form Fields

FieldDescription
TitleCare plan title
DescriptionDetailed description of the care plan
Statusdraft, active
Intentplan, order
CategoryCare plan category (e.g. “diabetes-management”, “post-surgical”)
NoteAdditional clinical notes

Status Values

StatusDescription
draftCare plan is being developed
activeCare plan is currently in effect

Intent Values

IntentDescription
planA suggested care plan
orderAn authoritative care plan

Proxy Action

The widget sends care-plans.create with:
{
  "action": "care-plans.create",
  "data": {
    "patientId": "pt_abc123",
    "authorId": "prac_def456",
    "title": "Diabetes Management Plan",
    "description": "Comprehensive plan for Type 2 diabetes management including diet, exercise, and medication adherence.",
    "status": "active",
    "intent": "plan",
    "category": "diabetes-management",
    "note": "Patient agreed to follow-up in 3 months"
  }
}