Question Ephraim Malane · Jul 25, 2023

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.


 

Product version: IRIS 2020.2

Comments

Luis Angel Pérez Ramos · Jul 25, 2023

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"
  }
}
0
Ephraim Malane  Jul 25, 2023 to Luis Angel Pérez Ramos

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?

0
Luis Angel Pérez Ramos  Jul 25, 2023 to Ephraim Malane

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.

0
Ephraim Malane  Jul 25, 2023 to Luis Angel Pérez Ramos

One more question, this does not have to be linked to an encounter right?

0
Ephraim Malane  Jul 25, 2023 to Luis Angel Pérez Ramos

Thanks once again.

0
Ephraim Malane  Jul 25, 2023 to Luis Angel Pérez Ramos

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?

0
Luis Angel Pérez Ramos  Jul 26, 2023 to Ephraim Malane

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. 

0