Allergies
Allergies (FHIRAllergyIntolerance) record a patient’s known allergies and adverse reactions to substances including medications, foods, and environmental agents. They track clinical status, criticality, and detailed reaction history.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Record and manage patient allergies and intolerances.
AllergyIntolerance) record a patient’s known allergies and adverse reactions to substances including medications, foods, and environmental agents. They track clinical status, criticality, and detailed reaction history.
const { data: allergy } = await clinik.allergies.create({
patientId: 'pt_abc123',
clinicalStatus: 'active',
verificationStatus: 'confirmed',
type: 'allergy',
category: ['medication'],
criticality: 'high',
code: {
system: 'http://www.nlm.nih.gov/research/umls/rxnorm',
code: '7980',
display: 'Penicillin',
},
onsetDateTime: '2019-06-15',
recordedDate: '2024-01-10',
recorderId: 'pract_dr456',
reaction: [
{
substance: 'Amoxicillin',
manifestation: ['Hives', 'Angioedema'],
severity: 'severe',
onset: '2019-06-15T14:30:00Z',
exposureRoute: 'Oral',
note: 'Patient developed hives within 30 minutes of first dose.',
},
],
note: 'Confirmed penicillin allergy — avoid all beta-lactam antibiotics.',
});
const { data: peanutAllergy } = await clinik.allergies.create({
patientId: 'pt_abc123',
clinicalStatus: 'active',
verificationStatus: 'confirmed',
type: 'allergy',
category: ['food'],
criticality: 'high',
code: 'Peanut',
reaction: [
{
substance: 'Peanut butter',
manifestation: ['Anaphylaxis', 'Throat swelling', 'Difficulty breathing'],
severity: 'severe',
description: 'Severe anaphylactic reaction requiring epinephrine.',
},
{
substance: 'Peanut oil',
manifestation: ['Skin rash', 'Itching'],
severity: 'mild',
},
],
});
await clinik.allergies.update(allergy.id, {
clinicalStatus: 'resolved',
note: 'Patient completed desensitization therapy. No longer reactive.',
});
// All active allergies for a patient
const { data } = await clinik.allergies.search({
patientId: 'pt_abc123',
clinicalStatus: 'active',
});
// High-criticality medication allergies
const { data: critical } = await clinik.allergies.search({
patientId: 'pt_abc123',
category: 'medication',
criticality: 'high',
});
| Category | Description |
|---|---|
food | Food substances (peanuts, shellfish, dairy) |
medication | Medications (penicillin, sulfa drugs) |
environment | Environmental agents (pollen, dust, latex) |
biologic | Biological substances (vaccines, blood products) |
| Level | Description |
|---|---|
low | Low risk — reaction is not life-threatening |
high | High risk — potential for life-threatening reaction |
unable-to-assess | Unable to assess the criticality |