AllergyIntolerance Profile

This AllergyIntolerance profile is part of the set of resource profiles supported by the API Server used with the athenaPractice 12.3 and athenaFlow 9.12 products. It further describes read and search capabilities of these products. Note: The create and update operations are NOT supported for this resource.

Overview

AllergyIntolerance is a recorded clinical assessment of an allergy or intolerance.

Scope and Usage

This profile is used to define the content that will be returned by the API Server in response to requests to access AllergyIntolerance resources. All elements listed in the differential profile view are Supported, which means that the API Server is capable of supplying these fields from the product database when they have been populated via the product or its APIs.

Source

The AllergyIntolerance resource is derived from the Allergy table in athenaPractice and athenaFlow. Specific detail can be found in the Mappings section below.

Supported Operations

The operations supported by this resource are listed below.

Read Operation

Read operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To read a AllergyIntolerance, an application shall perform an HTTP GET, specifying the identifier of the resources being retrieved.

GET [base]/fhir/AllergyIntolerance/[id]{?_format=[json|xml]&_summary=[true|data]}

Read Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[id]Specifies the identifier of the AllergyIntolerance resource to retrieve
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
[_summary]Filters the output to include only summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides slightly improved API response times.

Read Operation HTTP Response Codes

Response CodeDescription
200 OKThe requested resource was found and is contained within the body of the HTTP response.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
404 Not FoundThe requested resource does not exist. The body of the HTTP response will contain an OperationOutcome resource that indicates that the resource could not be found.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Search Operation

Search operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To search for AllergyIntolerance resources, an application shall perform an HTTP GET, specifying the query parameters associated with the resource.

GET [base]/fhir/AllergyIntolerance?{search-parameters}{&_count=[max-results]&_format=[json|xml]&_summary=[true|text|data]}

Search Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[_count]Specifies the maximum number of search results to return in a single query. Note: The count of results does not limit the number of additional resources returned via the _include parameter. No more than max-results AllergyIntolerance resources which match the search criteria will be returned. The API Server has default and maximum limits for the value that can be specified for this parameter. These limits may vary depending upon the client application vendors participation level in the AthenaHealth Partner program. Note: The API Server support the HL7 FHIR Paging capability.
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
[_summary]Filters the output to include only narrative elements (_summary=text), summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides improved API response times, especially when returning larger result sets.
_id (token )The ID of the resource
_lastUpdated (date )
_lastUpdated-fromnow (quantity )Like _lastUpdated except expressed as a positive or negative offset from the current time in units of time , e.g. _lastUpdated-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
_security (token )
_tag (token )
category (token )food | medication | environment | other - Category of Substance
criticality (token )CRITL | CRITH | CRITU
date (date )When recorded
date-fromnow (quantity )Like date except expressed as a positive or negative offset from the current time in units of time , e.g. date-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
encounter (reference )
encounter-or-historical (reference )
enddate (date )
enddate-fromnow (quantity )Like enddate except expressed as a positive or negative offset from the current time in units of time , e.g. enddate-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
identifier (token )External ids for this item
manifestation (token )Clinical symptoms/signs associated with the Event
onset-or-approximate (date )
onset-or-approximate-fromnow (quantity )Like onset-or-approximate except expressed as a positive or negative offset from the current time in units of time , e.g. onset-or-approximate-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
patient (reference )Who the sensitivity is for
recorder (reference )Who recorded the sensitivity
start (date )
start-fromnow (quantity )Like start except expressed as a positive or negative offset from the current time in units of time , e.g. start-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
status (token )active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error
substance (token )Substance, (or class) considered to be responsible for risk

Search Operation HTTP Response Codes

Response CodeDescription
200 OKThe query was performed and any results found are contained within the body of the HTTP response. Note: The search API will return 200 OK when the query itself is successful, regardless of whether or not any matching results were found.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Profile Content

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/allergyintolerance-profile

Allergy or Intolerance (generally: Risk Of Adverse reaction to a substance)

Name Flags Card. Type Description & Constraints
.. AllergyIntolerance0..*AllergyIntolerance Allergy or Intolerance (generally: Risk Of Adverse reaction to a substance)
... metaS 0..1Meta Metadata about the resource
... implicitRules?! 0..1uri A set of rules under which this content was created
... language0..1code Language of the resource content

Binding: IETF BCP-47 (required )
... textI0..1Narrative Text summary of the resource, for human interpretation
... contained0..*Resource Contained, inline Resources
...allergyintolerance-encounter0..1Reference (Reference)Extension
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/allergyintolerance-encounter"
.... valueReference1..1Reference (Reference)Value of extension
...allergyintolerance-approxonset0..1string Extension
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/allergyintolerance-approxonset"
.... valueString1..1string Value of extension
...allergyintolerance-enddate0..1dateTime Extension
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/allergyintolerance-enddate"
.... valueDateTime1..1dateTime Value of extension
... modifierExtension?!0..*Extension Extensions that cannot be ignored
... identifierS 0..*Identifier External ids for this item
... onsetS 0..1dateTime Date(/time) when manifestations showed
... recordedDateS 0..1dateTime When recorded
... recorderS 0..1Reference (Practitioner | Patient )Who recorded the sensitivity
... patientS 1..1Reference (Patient )Who the sensitivity is for
... reporterS 0..1Reference (Patient | RelatedPerson | Practitioner )Source of the information about the allergy
... substance1..1CodeableConcept Identification of the allergy or intolearnce

Binding: AllergyIntolerance Substance and Negation Codes (example )
.... extension0..*Extension Additional Content defined by implementations
.... codingCoding Code defined by a terminology system

Slice: Unordered, Closed, by system
.... coding0..5Coding Code defined by a terminology system
.... coding0..1Coding Code defined by a terminology system
..... extension0..*Extension Additional Content defined by implementations
..... system1..1uri Identity of the terminology system

Fixed Value: http://hl7.org/fhir/sid/ndc
..... version0..1string Version of the system - if relevant
..... code1..1code Symbol in syntax defined by the system
..... display0..1string Representation defined by the system
..... userSelected0..1boolean If this coding was chosen directly by the user
.... coding0..1Coding Code defined by a terminology system
..... extension0..*Extension Additional Content defined by implementations
..... system1..1uri Identity of the terminology system

Fixed Value: http://docs.wolterskluwercdi.com/codesystems/gpi
..... version0..1string Version of the system - if relevant
..... code1..1code Symbol in syntax defined by the system
..... display0..1string Representation defined by the system
..... userSelected0..1boolean If this coding was chosen directly by the user
.... coding0..1Coding Code defined by a terminology system
..... extension0..*Extension Additional Content defined by implementations
..... system1..1uri Identity of the terminology system

Fixed Value: http://docs.wolterskluwercdi.com/codesystems/ddid
..... version0..1string Version of the system - if relevant
..... code1..1code Symbol in syntax defined by the system
..... display0..1string Representation defined by the system
..... userSelected0..1boolean If this coding was chosen directly by the user
.... coding0..1Coding Code defined by a terminology system
..... extension0..*Extension Additional Content defined by implementations
..... system1..1uri Identity of the terminology system

Fixed Value: http://docs.wolterskluwercdi.com/codesystems/kdc
..... version0..1string Version of the system - if relevant
..... code1..1code Symbol in syntax defined by the system
..... display0..1string Representation defined by the system
..... userSelected0..1boolean If this coding was chosen directly by the user
.... coding0..1Coding Code defined by a terminology system
..... extension0..*Extension Additional Content defined by implementations
..... system1..1uri Identity of the terminology system

Fixed Value: http://snomed.info/sct
..... version0..1string Version of the system - if relevant
..... code1..1code Symbol in syntax defined by the system
..... display0..1string Representation defined by the system
..... userSelected0..1boolean If this coding was chosen directly by the user
.... coding0..1Coding Code defined by a terminology system
.... text0..1string Plain text representation of the concept
... status?! S0..1code active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error

Binding: AllergyIntoleranceStatus (required )
... criticalityS 0..1code CRITL | CRITH | CRITU

Binding: AllergyIntoleranceCriticality (required )
... typeS 0..1code allergy | intolerance - Underlying mechanism (if known)

Binding: AllergyIntoleranceType (required )
... categoryS 0..1code food | medication | environment | other - Category of Substance

Binding: AllergyIntoleranceCategory (required )
... lastOccurence0..1dateTime Date(/time) of last known occurrence of a reaction
... noteS0..1Annotation Additional text not captured in other fields
... reactionS0..*BackboneElement Adverse Reaction Events linked to exposure to substance
.... extension0..*Extension Additional Content defined by implementations
.... modifierExtension?!0..*Extension Extensions that cannot be ignored
.... substanceS 0..1CodeableConcept Specific substance considered to be responsible for event

Binding: Substance Code (example )
.... certainty0..1code unlikely | likely | confirmed - clinical certainty about the specific substance

Binding: AllergyIntoleranceCertainty (required )
.... manifestationS 1..*CodeableConcept Clinical symptoms/signs associated with the Event

Binding: SNOMED CT Clinical Findings (example )
.... descriptionS0..1string Description of the event as a whole
.... onset0..1dateTime Date(/time) when manifestations showed
.... severity0..1code mild | moderate | severe (of event as a whole)

Binding: AllergyIntoleranceSeverity (required )
.... exposureRoute0..1CodeableConcept How the subject was exposed to the substance

Binding: SNOMED CT Route Codes (example )
.... note0..1Annotation Text about event not captured in other fields


 

athenaPractice Mapping

The mappings in this section represent the how data stored within athenaPractice is served through the product's APIs. athenaPractice and athenaFlow share a common schema for patient clinical data and only one is shown when these are the same. Use of this information is subject to the the API Server Terms and Conditions.

AllergyIntolerance Profile
AllergyIntoleranceAllergyIntolerance-ProfileFHIR_ALLERGYVIEW
 ├ idMakeId("ALLERGY",%ALLERGYGROUPID%)
 ├ extensionencounter
 ├ extensionapproxonset
 ├ extensionenddate
 ├ identifierExternal Allergy IdentifierMakeIdentifier("U",getSiteSystem("AllergyId"),%EXTALLERGYID%)
 ├ onset%ONSETDATE%
 ├ recordedDate%DB_CREATE_DATE%
 ├ recorderMakeReference("USR",%USRID%,"Practitioner")
 ├ patientMakeReference("PERSON",%PID%,"Patient")
  │ ├ codingAllergyIntolerance Code
  │ ├ codingLabProd
  │  │ └ code%NDCLABPROD%
  │ ├ codingGPI
  │  │ └ code%GPI%
  │ ├ codingDDID
  │  │ └ code%DDID%
  │ ├ codingKDC
  │  │ └ code%KDC%
  │ ├ codingSNOMED
  │  │ └ code%SNOMED%
  │ ├ codingRXNORMMakeRxnormCodingList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null)
  │ └ text%NAME%
 ├ statusIsActiveOrMapCode(%STOPDATE%,"active",%STOPREASON%,"ALLERGYSTATUS")
 ├ criticalityMapCode(%ISCRITICAL%,"ALLERGYCRIT")
 └ categoryMapCode(%ALLCLASS%,"ALLERGYCLASS")
   └ manifestationMakeConcept(%REACTIONCODE%,"http://snomed.info/sct", %DESCRIPTION%)

athenaFlow Mapping

The mappings in this section represent the how data stored within athenaFlow is served through the product's APIs. Use of this information is subject to the the API Server Terms and Conditions.

AllergyIntolerance Profile
AllergyIntoleranceAllergyIntolerance-ProfileFHIR_ALLERGYVIEW
 ├ idMakeId("ALLERGY",%ALLERGYGROUPID%)
 ├ extensionencounter
 ├ extensionapproxonset
 ├ extensionenddate
 ├ identifierExternal Allergy IdentifierMakeIdentifier("U",getSiteSystem("AllergyId"),%EXTALLERGYID%)
 ├ onset%ONSETDATE%
 ├ recordedDate%DB_CREATE_DATE%
 ├ recorderMakeReference("USR",%USRID%,"Practitioner")
 ├ patientMakeReference("PERSON",%PID%,"Patient")
  │ ├ codingAllergyIntolerance Code
  │ ├ codingLabProd
  │  │ └ code%NDCLABPROD%
  │ ├ codingGPI
  │  │ └ code%GPI%
  │ ├ codingDDID
  │  │ └ code%DDID%
  │ ├ codingKDC
  │  │ └ code%KDC%
  │ ├ codingSNOMED
  │  │ └ code%SNOMED%
  │ ├ codingRXNORMMakeRxnormCodingList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null)
  │ └ text%NAME%
 ├ statusIsActiveOrMapCode(%STOPDATE%,"active",%STOPREASON%,"ALLERGYSTATUS")
 ├ criticalityMapCode(%ISCRITICAL%,"ALLERGYCRIT")
 └ categoryMapCode(%ALLCLASS%,"ALLERGYCLASS")
   └ manifestationMakeConcept(%REACTIONCODE%,"http://snomed.info/sct", %DESCRIPTION%)