Skip to main content

clinik.allergies

Allergies represent a patient’s known allergies and adverse reactions to substances, mapped to the FHIR AllergyIntolerance resource.

create

const { data, meta } = await clinik.allergies.create(request): Promise<ApiResponse<AllergyIntolerance>>
FieldTypeRequiredDescription
patientIdstringYesPatient ID
clinicalStatusstringNoactive, inactive, resolved
verificationStatusstringNounconfirmed, confirmed, refuted
typestringNoallergy or intolerance
categorystring[]Nofood, medication, environment, biologic
criticalitystringNolow, high, unable-to-assess
codestring | CodeableConceptNoWhat the allergy is to
encounterIdstringNoEncounter context
onsetDateTimestringNoWhen the allergy started
onsetStringstringNoOnset description
recordedDatestringNoWhen recorded
recorderIdstringNoPractitioner who recorded
asserterIdstringNoWho asserted the allergy
lastOccurrencestringNoLast occurrence date
notestringNoAdditional notes
reactionArrayNoAdverse reactions

Reaction Fields

FieldTypeRequiredDescription
substancestringNoSpecific substance
manifestationstring[]YesClinical symptoms
descriptionstringNoReaction description
onsetstringNoWhen the reaction occurred
severitystringNomild, moderate, severe
exposureRoutestringNoHow the allergen was encountered
notestringNoAdditional notes

Example

const { data } = await clinik.allergies.create({
  patientId: 'pt_abc123',
  clinicalStatus: 'active',
  verificationStatus: 'confirmed',
  type: 'allergy',
  category: ['medication'],
  criticality: 'high',
  code: 'Penicillin',
  reaction: [{
    manifestation: ['Hives', 'Angioedema'],
    severity: 'severe',
  }],
});
Same pattern as other resources. Search supports patientId, clinicalStatus, type, category, criticality, code filters.