HiMS API Documentation

HIMS FHIR documentation version 1.0


AllergyIntolerance

GET https://fhir-api.hmsfirst.com/r4/AllergyIntolerance

The AllergyIntolerance resource provides a bundle of allergies for a given patient resource.

The AllergyIntolerance resource returns data classes and elements defined for Allergies and Intolerances in United States Core Data for Interoperability (USCDI v2) Substance (Medication), Substance (Drug Class), and Reaction. Example requests for patient data are shown below:

Get allergy intolerances associated with a specific patient


curl --request GET \
--url 'https://fhir-api.hmsfirst.com/r4/AllergyIntolerance?patient={patientId}' \
--header 'Accept: application/fhir+json' \
--header 'Authorization: Bearer ACCESS_TOKEN'

Examples:
GET https://fhir-api.hmsfirst.com/r4/AllergyIntolerance?patient=29355
                    

Response schema


{
  "resourceType": "string",
  "id": "string",
  "type": "string",
  "total": 0,
  "link": [
    {
      "relation": "string",
      "url": "string"
    }
  ],
  "entry": [
    {
      "fullUrl": "string",
      "resource": {
        "resourceType": "string",
        "id": "string",
        "meta": {
          "versionId": "string",
          "lastUpdated": "string",
          "profile": [
            "string"
          ]
        },
        "status": "string",
        "category": [
          {
            "coding": [
              {
                "system": "string",
                "code": "string"
              }
            ],
            "text": "string"
          }
        ],
        "code": {
          "coding": [
            {
              "system": "string",
              "code": "string",
              "display": "string"
            }
          ],
          "text": "string"
        },
        "subject": {
          "reference": "string"
        },
        "encounter": {
          "reference": "string"
        },
        "effectiveDateTime": "string",
        "issued": "string",
        "performer": [
          {
            "reference": "string",
            "display": "string"
          }
        ],
        "result": [
          {
            "reference": "string",
            "display": "string"
          }
        ],
        "media": [
          {
            "link": {
              "reference": "string",
              "display": "string"
            }
          }
        ],
        "presentedForm": [
          {
            "contentType": "string",
            "data": "string",
            "title": "string"
          }
        ]
      }
    }
  ]
}