I'm writing a script to merge patients between instances. I'm stumbling on allergies.
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":""}
