Allergen
A substance that, upon exposure to an individual, may cause a harmful or undesirable physiological response.
Best practices is to utilize this endpoint to find codings to feed the Allergy Intolerance Create/Update. These substances come directly from our integration with FDB.
Endpoints
Allergen read
Read an Allergen resource.
Path Parameters
Response Payload Attributes
The FHIR Resource name.
The identifier of the Allergen.
Text summary of the Allergen, for human interpretation.
All allergens returned from this endpoint will show a status of generated
since this resource is generated from FDB.
Limited xhtml content that contains the human readable text of the Allergen.
Code that identifies the allergen
In Canvas we will return two different codings: one from FDB and one RxNorm
Code defined by a terminology system.
The system url of the coding.
The code of the allergen
The display name of the coding
Responses
Errors
Allergen search
Search for Allergyen resources.
Query Parameters
Performs a case insensitive partial search on the narrative of the Allergen.
System url and code that identifies the allergen formatted like
system_url|code
.
Response Payload Attributes
The FHIR Resource name.
This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .
The number of resources that match the search parameter.
Attributes relevant to pagination, see our Pagination page for more detail.
The relation of the page search
The search url for the specific relation
The results bundle that lists out each object returned in the search
The attributes specific to the resource type, see the Attributes section below
Attributes
The FHIR Resource name.
The identifier of the Allergen.
Text summary of the Allergen, for human interpretation.
All allergens returned from this endpoint will show a status of generated
since this resource is generated from FDB.
Limited xhtml content that contains the human readable text of the Allergen.
Code that identifies the allergen
In Canvas we will return two different codings: one from FDB and one RxNorm
Code defined by a terminology system.
The system url of the coding.
The code of the allergen
The display name of the coding
Responses
Errors
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Allergen/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Allergen/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Allergen", "id": "fdb-6-2754", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>minocycline HCl</p><p>6979</p>\"</div>" }, "code": { "coding": [ { "system": "http://www.fdbhealth.com/", "code": "6-2754", "display": "minocycline HCl" }, { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "6979" } ] } }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-found", "details": { "text": "Unknown Allergen resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Allergen?code=http://www.nlm.nih.gov/research/umls/rxnorm|6979' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Allergen?code=http://www.nlm.nih.gov/research/umls/rxnorm|6979" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "/Allergen?code=http%3A%2F%2Fwww.nlm.nih.gov%2Fresearch%2Fumls%2Frxnorm%7C6979&_count=10&_offset=0" }, { "relation": "first", "url": "/Allergen?code=http%3A%2F%2Fwww.nlm.nih.gov%2Fresearch%2Fumls%2Frxnorm%7C6979&_count=10&_offset=0" }, { "relation": "last", "url": "/Allergen?code=http%3A%2F%2Fwww.nlm.nih.gov%2Fresearch%2Fumls%2Frxnorm%7C6979&_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "Allergen", "id": "fdb-6-2754", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>minocycline HCl</p><p>6979</p>\"</div>" }, "code": { "coding": [ { "system": "http://www.fdbhealth.com/", "code": "6-2754", "display": "minocycline HCl" }, { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "6979" } ] } } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }