Skip to main content
POST
/
v1
/
allergies
Create allergy
curl --request POST \
  --url https://api.clinikapi.com/v1/allergies \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "patientId": "<string>",
  "category": [],
  "code": "<string>",
  "encounterId": "<string>",
  "onsetDateTime": "<string>",
  "onsetString": "<string>",
  "recordedDate": "<string>",
  "recorderId": "<string>",
  "asserterId": "<string>",
  "lastOccurrence": "<string>",
  "note": "<string>",
  "reaction": [
    {
      "manifestation": [
        "<string>"
      ],
      "substance": "<string>",
      "description": "<string>",
      "onset": "<string>",
      "exposureRoute": "<string>",
      "note": "<string>"
    }
  ]
}
'

Authorizations

x-api-key
string
header
required

Your ClinikAPI secret key (clk_live_* or clk_test_*)

Body

application/json
patientId
string
required
Maximum string length: 128
clinicalStatus
enum<string>
Available options:
active,
inactive,
resolved
verificationStatus
enum<string>
Available options:
unconfirmed,
confirmed,
refuted
type
enum<string>
Available options:
allergy,
intolerance
category
enum<string>[]
Maximum array length: 4
Available options:
food,
medication,
environment,
biologic
criticality
enum<string>
Available options:
low,
high,
unable-to-assess
code
encounterId
string
Maximum string length: 128
onsetDateTime
string
onsetString
string
Maximum string length: 500
recordedDate
string
recorderId
string
Maximum string length: 128
asserterId
string
Maximum string length: 128
lastOccurrence
string
note
string
Maximum string length: 5000
reaction
object[]
Maximum array length: 20

Response

201

Allergy created