Working with Allergy FHIR Resource
Hi Community
I want a FHIR resource example that will populate allergies as displayed below, I am currently focussing on only allergies and not alerts.

Comments
Something like this example?
http://hl7.org/fhir/R4/allergyintolerance-fishallergy.json.html
{
"resourceType": "AllergyIntolerance",
"id": "fishallergy",
"text": {
"status": "additional",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>allergy is to fresh fish. Tolerates canned fish</p>\n <p>recordedDate:2015-08-06T00:00:00-06:00</p>\n <p>substance:Fish - dietary (substance)</p>\n </div>"
},
"identifier": [
{
"system": "http://acme.com/ids/patients/risks",
"value": "49476535"
}
],
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "active",
"display": "Active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code": "confirmed",
"display": "Confirmed"
}
]
},
"category": [
"food"
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "227037002",
"display": "Fish - dietary (substance)"
}
],
"text": "Allergic to fresh fish. Tolerates canned fish"
},
"patient": {
"reference": "Patient/example"
},
"recordedDate": "2015-08-06T15:37:31-06:00",
"recorder": {
"reference": "Practitioner/example"
}
}Thank you so much Luis, so is processing of this resource done automatically within healthshare or I will have to build DTLs and so on?
I guess that you only have to send a POST with this json as body (updating the references to your patient and practitioner - you can remove it) from a Postman to your FHIR endpoint.
One more question, this does not have to be linked to an encounter right?
As you can see in the documentation of the resouce the encounter is optional (0..1):
http://hl7.org/fhir/R4/allergyintolerance.html
.png)
Thanks once again.
Don't forget to check the answer as correct!
I just checked it as correct Luis, it seems like the way DTLs are created on the system I must create a DTL for this resource.Do you have an example of this DTL that will handle AllergyIntolerance resource?
There is a DTL by default when you install the FHIR server or the FHIR adapter...in my case I've installed the adapter and the DTL is named:
HS.FHIR.DTL.vR4.SDA3.AllergyIntolerance.Allergy
This transformation is used to parse an object of type HS.FHIR.DTL.vR4.Model.Resource.AllergyIntolerance into a HS.SDA3.Allergy, you can use it as a reference for your transformation.
Hi Luis,
I have a question around DTL for this resource,I posted it as a new post.
https://community.intersystems.com/post/intersystems-allergyintolerance…