allergies

16 views
Skip to first unread message

Dave Fraleigh

unread,
Mar 19, 2025, 2:47:20 PMMar 19
to DrChrono API Developers
I'm writing a script to merge patients between instances.  I'm stumbling on allergies.

Created a generic drug class allergy on the frontend.
Screenshot 2025-03-18 at 5.34.52 PM.png
make a request to the api: 
Here's the response:
{"id":25983418,"doctor":501804,"patient":126774721,"rxnorm":"1307948","reaction":"Fever","snomed_reaction":"386661006","status":"active","notes":"these are the notes for the cedarwood (juniperus) drug class allergy; fever-moderate-active."}

Now, if I take this, strip the ID and try to insert it into another patient (or even into the same patient), it imports but is missing the allergy itself.

curl -X POST 'https://app.drchrono.com/api/allergies' -H 'content-type:application/json' -H 'accept:application/json' -H 'Authorization: Bearer xxxxx' -d '{"doctor":501804,"patient":126774721,"rxnorm":"1307948","reaction":"Fever","snomed_reaction":"386661006","status":"active","notes":"these are the notes for the cedarwood (juniperus) drug class allergy; fever-moderate-active."}' -i

HTTP/2 201
{"id":25983435,"doctor":501804,"patient":126774721,"rxnorm":"1307948","reaction":"Fever","snomed_reaction":"386661006","status":"active","notes":"these are the notes for the cedarwood (juniperus) drug class allergy; fever-moderate-active.","description":""}

Screenshot 2025-03-18 at 5.36.56 PM.png

Can anybody help -- what am I doing wrong?

DrChrono API Developers

unread,
Mar 27, 2025, 12:26:19 PMMar 27
to DrChrono API Developers
Hi Dave,

I am responding with the same answer I provided over our ticket case so that everyone can view the answer. 

input the "description" in the request:

{
"doctor": 501804,
"patient": 126774721,
"rxnorm": "123456",
"reaction": "Swelling",
"snomed_reaction": "14669001",
"status": "active",
"notes": "TEST",
"description": "Drug Class allergy: XYZ Acid",
"allergy_type": "nondrug",
"severity": "Moderate"
}

This will show the name of the allergy in the front-end. When calling the allergy API it will not show the description. But if you add api/allergies?verbose=true the description will show.

Best,
Assaad
Reply all
Reply to author
Forward
0 new messages