Skip to main content

AllergyRecorder

Record patient allergies and intolerances as FHIR AllergyIntolerance resources. Supports allergen categorization, criticality levels, and detailed reaction tracking.

Usage

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

<AllergyRecorder
  proxyUrl="/api/clinik"
  patientId="pt_abc123"
  theme="light"
/>

Props

PropTypeRequiredDescription
proxyUrlstringYesBackend proxy URL
patientIdstringYesPatient ID
theme'light' | 'dark'NoColor theme

Form Fields

FieldDescription
CodeAllergen name (e.g. “Penicillin”, “Peanuts”)
Typeallergy, intolerance
Categoryfood, medication, environment, biologic
Criticalitylow, high
Clinical statusactive, inactive, resolved
Reaction manifestationObserved reaction (e.g. “Hives”, “Anaphylaxis”)
Reaction severitymild, moderate, severe

Categories

CategoryDescription
foodFood allergens (e.g. peanuts, shellfish)
medicationDrug allergens (e.g. penicillin, sulfa)
environmentEnvironmental allergens (e.g. pollen, dust)
biologicBiologic substances (e.g. vaccines, blood products)

Proxy Action

The widget sends allergies.create with:
{
  "action": "allergies.create",
  "data": {
    "patientId": "pt_abc123",
    "code": "Penicillin",
    "type": "allergy",
    "category": "medication",
    "criticality": "high",
    "clinicalStatus": "active",
    "reaction": {
      "manifestation": "Anaphylaxis",
      "severity": "severe"
    }
  }
}