Discussions

Ask a Question
Back to All

Error Updating Allergies

(edited)

im trying to update an allergy created in the portal, when the PUT endpoint is called i receive the following error:

{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "substance cannot be modified."
}
]
}

The substance has not been modified, only a reaction has been added. I've tried to update the Allergy without modifying it (sending in the PUT the same data i receive in the GET), But i still receive the same error.

Allergy to be updated:
{
"resourceType": "AllergyIntolerance",
"id": "7023d85de188facfe5985755",
"meta": {
"versionId": "1574445936024",
"lastUpdated": "2019-11-22T18:05:36.024+00:00"
},
"clinicalStatus": "inactive",
"type": "allergy",
"category": [
"medication"
],
"code": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "201388",
"display": "Demser 250 MG Oral Capsule"
}
]
},
"patient": {
"reference": "Patient/e4ebad5da8814b04a756a144",
"display": "Emanuel Emanuel Silva"
},
"onsetPeriod": {
"start": "2019-11-22T01:00:00+00:00",
"end": "2019-11-29T01:30:00+00:00"
},
"assertedDate": "2019-11-22T01:00:00+00:00",
"recorder": {
"reference": "Practitioner/ef8c355d65fb0dd9c2956d7d",
"display": "Francis Berrios"
},
"reaction": [
{
"manifestation": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "2919008",
"display": "Nausea/Vomiting/Diarrhea"
}
]
}
],
"severity": "mild"
}
]
}

Updated Allergy generating the error in PUT:
{
"resourceType":"AllergyIntolerance",
"id":"7023d85de188facfe5985755",
"meta":{
"versionId":"1574445936024",
"lastUpdated":"2019-11-22T18:05:36.024+00:00"
},
"clinicalStatus":"inactive",
"type":"allergy",
"category":[
"medication"],
"code":{
"coding":[
{
"system":"http://www.nlm.nih.gov/research/umls/rxnorm",
"code":"201388",
"display":"Demser 250 MG Oral Capsule"
}
]
},
"patient":{
"reference":"Patient/e4ebad5da8814b04a756a144",
"display":"Emanuel Emanuel Silva"
},
"onsetPeriod":{
"start":"2019-11-22T01:00:00+00:00",
"end":"2019-11-29T01:30:00+00:00"
},
"assertedDate":"2019-11-22T01:00:00+00:00",
"recorder":{
"reference":"Practitioner/ef8c355d65fb0dd9c2956d7d",
"display":"Francis Berrios"
},
"reaction":[
{
"manifestation":[
{
"coding":[
{
"system":"http://snomed.info/sct",
"code":"2919008",
"display":"Nausea/Vomiting/Diarrhea"
}
]
}
],
"severity":"mild"
},
{
"manifestation":[
{
"coding":[
{
"system":"http://snomed.info/sct",
"code":"4386001",
"display":"Bronchospasm"
}]
}],
"severity":"mild"
}]
}