Create an allergy intolerance
post
/AllergyIntolerance
Creates a new allergy intolerance.
Note: Only the body fields mentioned below are supported. Unsupported fields are ignored.
Authorization Types
This operation supports the following authorization types:
Request
Supported Media Types
- application/json+fhir
Header Parameters
-
Authorization(required): string
Contains the credentials to authenticate a consumer to the service. The credentials should be the OAuth2 Bearer Token.
-
accept(required): string
The media type to be requested. See what the resource's operation produces for what is supported.
The body of the create operation.
Root Schema : AllergyIntoleranceCreate
Type:
object
A summary representation of the create (POST) operation for the AllergyIntolerance resource.
Show Source
-
asserter:
object asserter
Indicates the source of information about the allergy.
Note: The asserter must be provided and linked to the contained resource if a contained resource is specified.
Example:{ "asserter":{ "reference":"#638994" } }
-
category:
array category
The category of the identified code.
Note:- The category code of
biologic
is not supported. - Only a single category is written to the allergy.
- When multiple categories are provided, the selected category is based on precedence (medication > food > environment).
Example:{ "category":[ "environment", "food", "medication" ] }
- The category code of
-
clinicalStatus(required):
object clinicalStatus
The clinical status of the allergy intolerance.
Note: A clinicalStatus must always be provided while creating an allergy.
Example:{ "clinicalStatus": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical", "code": "resolved" } ] } }
-
code(required):
object code
A code that identifies the allergy or intolerance.
Note: A code must always be provided while creating an allergy.
Example:{ "code":{ "coding": [ { "system": "http://snomed.info/sct", "code": "9220005" } ], "text": "Plant phenol oil" } }
-
contained:
string
Contained, inline resources.
Note: These resources should be eitherPractitionerRole
orRelatedPerson
resources that are relative references from theasserter
field.
Examples:
Contained RelatedPerson
Contained PractitionerRole{ "contained": [ { "resourceType":"RelatedPerson", "id":"638996", "relationship":[ { "coding":[ { "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", "code": "PRN", } ] } ], "patient":{ "reference":"Patient/12742400" } } ] }
{ "contained": [ { "resourceType":"PractitionerRole", "id":"638994", "code":[ { "coding":[ { "system":"http://terminology.hl7.org/CodeSystem/practitioner-role", "code":"doctor" } ] } ] } ] }
-
criticality:
array criticality
Values are
low
,high
, andunable-to-assess
.
Example:{ "criticality": "high" }
-
encounter:
object encounter
Indicates the encounter when the allergy or intolerance was asserted.
Example:{ "encounter": { "reference":"Encounter/1693915" } }
-
note:
array note
Additional narrative about the allergy not captured in other fields.
Note: An author and text can be specified but note.time is always defaulted.
Example:{ "note": [ { "authorReference": { "reference": "Practitioner/2578010" }, "text": "Allergy reported by patient." } ] }
-
onset[x]:
The estimated date, actual date, or date and time when the allergy began, in the opinion of the clinician.
Note:- Only a type of
dateTime
is supported. - The
dateTime
is converted to a GMT date.
{ "onsetDateTime": "2015-10-14T13:13:20-06:00" }
- Only a type of
-
patient(required):
object patient
Indicates the patient who the sensitivity is for.
Example:{ "patient": { "reference": "Patient/631923" } }
-
reaction:
array reaction
Adverse reaction events linked to exposure to substance
Example:{ "reaction":[ { "manifestation":[ { "coding":[ { "system":"http://snomed.info/sct", "code":"414322003" } ], "text":"Blastobacter" } ], "severity":"severe" } ] }
-
resourceType(required):
string
Allowed Values:
[ "AllergyIntolerance" ]
The type of the FHIR resource. -
type:
string
The underlying mechanism (if known), either
allergy
orintolerance
.
Example:{ "type": "allergy" }
-
verificationStatus:
object verificationStatus
The verification status to support or decline the clinical status of an allergy.
Note: verificationStatus codes ofentered-in-error
andrefuted
are not supported during AllergyIntolerance creates.
Example:{ "verificationStatus": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification", "code": "confirmed" } ] } }
Nested Schema : asserter
Type:
object
Indicates the source of information about the allergy.
Note: The asserter must be provided and linked to the contained resource if a contained resource is specified.
Example:
Show Source
Note: The asserter must be provided and linked to the contained resource if a contained resource is specified.
Example:
{
"asserter":{
"reference":"#638994"
}
}
Nested Schema : category
Type:
array
The category of the identified code.
Note:
Example:
Show Source
Note:
- The category code of
biologic
is not supported. - Only a single category is written to the allergy.
- When multiple categories are provided, the selected category is based on precedence (medication > food > environment).
Example:
{
"category":[
"environment",
"food",
"medication"
]
}
Nested Schema : clinicalStatus
Type:
object
The clinical status of the allergy intolerance.
Note: A clinicalStatus must always be provided while creating an allergy.
Example:
Show Source
Note: A clinicalStatus must always be provided while creating an allergy.
Example:
{
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "resolved"
}
]
}
}
Nested Schema : code
Type:
object
A code that identifies the allergy or intolerance.
Note: A code must always be provided while creating an allergy.
Example:
Show Source
Note: A code must always be provided while creating an allergy.
Example:
{
"code":{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "9220005"
}
],
"text": "Plant phenol oil"
}
}
Nested Schema : criticality
Type:
array
Values are
Example:
Show Source
low
, high
, and unable-to-assess
.
Example:
{
"criticality": "high"
}
Nested Schema : encounter
Type:
object
Indicates the encounter when the allergy or intolerance was asserted.
Example:
Show Source
Example:
{
"encounter": {
"reference":"Encounter/1693915"
}
}
Nested Schema : note
Type:
array
Additional narrative about the allergy not captured in other fields.
Note: An author and text can be specified but note.time is always defaulted.
Example:
Show Source
Note: An author and text can be specified but note.time is always defaulted.
Example:
{
"note": [
{
"authorReference": {
"reference": "Practitioner/2578010"
},
"text": "Allergy reported by patient."
}
]
}
Nested Schema : patient
Type:
object
Indicates the patient who the sensitivity is for.
Example:
Show Source
Example:
{
"patient": {
"reference": "Patient/631923"
}
}
Nested Schema : reaction
Type:
array
Adverse reaction events linked to exposure to substance
Example:
Show Source
Example:
{
"reaction":[
{
"manifestation":[
{
"coding":[
{
"system":"http://snomed.info/sct",
"code":"414322003"
}
],
"text":"Blastobacter"
}
],
"severity":"severe"
}
]
}
Nested Schema : verificationStatus
Type:
object
The verification status to support or decline the clinical status of an allergy.
Note: verificationStatus codes of
Example:
Show Source
Note: verificationStatus codes of
entered-in-error
and refuted
are not supported during AllergyIntolerance creates.
Example:
{
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code": "confirmed"
}
]
}
}
Nested Schema : items
Type:
Show Source
object
-
reaction.manifestation:
array reaction.manifestation
The clinical symptoms or signs associated with the event.
Note: Only one manifestation can be provided.
Example:{ { "manifestation":[ { "coding":[ { "system":"http://snomed.info/sct", "code":"414322003" } ], "text":"Blastobacter" } ] } }
-
reaction.severity:
string
Values are
mild
,moderate
, andsevere
(of the event as a whole).
Example:{ "severity":"severe" }
Nested Schema : reaction.manifestation
Type:
array
The clinical symptoms or signs associated with the event.
Note: Only one manifestation can be provided.
Example:
Show Source
Note: Only one manifestation can be provided.
Example:
{
{
"manifestation":[
{
"coding":[
{
"system":"http://snomed.info/sct",
"code":"414322003"
}
],
"text":"Blastobacter"
}
]
}
}
Response
Supported Media Types
- application/json+fhir
Default Response
Example Request:
POST https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/AllergyIntolerance
Example Request Body:
{
'resourceType': 'AllergyIntolerance',
'contained': [
{
'resourceType': 'PractitionerRole',
'id': '638995',
'code': [
{
'coding': [
{
'system': 'http://terminology.hl7.org/CodeSystem/practitioner-role',
'code': 'nurse'
}
]
}
]
}
],
'clinicalStatus': {
'coding': [
{
'system': 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical',
'code': 'active'
}
]
},
'verificationStatus': {
'coding': [
{
'system': 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification',
'code': 'confirmed'
}
]
},
'type': 'allergy',
'category': [
'medication'
],
'criticality': 'high',
'code': {
'coding': [
{
'system': 'http://www.nlm.nih.gov/research/umls/rxnorm',
'code': '723'
}
],
'text': 'amoxicillin'
},
'patient': {
'reference': 'Patient/12742399'
},
'encounter': {
'reference': 'Encounter/97953523'
},
'onsetDateTime': '2019-09-11T05:00:00.000Z',
'asserter': {
'reference': '#638995'
},
'note': [
{
'authorReference': {
'reference': 'Practitioner/12742399'
},
'text': 'Updated with additional details provided by patient.'
}
],
'reaction': [
{
'manifestation': [
{
'coding': [
{
'system': 'http://snomed.info/sct',
'code': '271757001'
}
],
'text': 'Papular eruption'
}
],
'severity': 'severe'
}
]
}
Example Response:
HTTP Status: 201 Created
Cache-Control: no-cache
Content-Length: 0
Content-Type: text/html
Date: Wed, 14 Aug 2019 17:23:14 GMT
Etag: W/"6767735"
Location: https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/AllergyIntolerance/6767735
Last-Modified: Wed, 14 Aug 2019 17:23:14 GMT
Vary: Origin
X-Request-Id: 11111111111111111111111111111111
Headers
-
Etag: string
For Update or Patch versioning controls. Related to
If-Match
. When a resource performs an operation that creates or updates a record, anEtag
value is returned as a header. This same value should be included in request headers as anIf-Match
for any subsequent update to that record. -
X-Request-Id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
X-Request-Id
, if present. -
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
opc-Request-Id
, if present.