allergies

The allergies table manages allergies for an associated patient.

Table Schema

Name Type Description
id VARCHAR

Surrogate key. Primary key for the allergies table.

reactionfreetext VARCHAR

Deprecated. See the allergyreactions table.

onsetdate VARCHAR

Date the allergy was detected.

offsetdate VARCHAR

Date the allergy was resolved.

reporteddate VARCHAR

Date the allergy was reported.

reportedby VARCHAR

A text field to describe the source of the allegy.

verifieddate VARCHAR

Date on which this allergy was verified.

patient_id VARCHAR

Surrogate key. Foreign key reference to patients.id

encounter_id VARCHAR

Surrogate key. Foreign key reference to encounters.id

verifiedbycaregiver_id VARCHAR

Surrogate key. Foreign key reference to caregivers.id

typeterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

substanceterm_id INTEGER

Surrogate key. Foreign key reference to terms.id. A term that describes the substance causing the allergy.

severityterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

reactionterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

sensitivityterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

groupterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

reportedbyrelationshiptypeterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

alertdeviceterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

clinicalstatusterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

inserteddate TIMESTAMP

Timestamp (UTC) indicating the date the row was first inserted into HIEBus.

insertedbyapplication_id SMALLINT

The application that first inserted the row into HIEBus. Foreign key reference to applications.id.

insertedbyuser_id VARCHAR

The user associated with the process that first inserted the row into HIEBus. Foreign key reference to users.id.

modifieddate TIMESTAMP

Timestamp (UTC) indicating the date the row was last modified.

modifiedbyapplication_id SMALLINT

The application that last modified the row. Foreign key reference to applications.id.

modifiedbyuser_id VARCHAR

The user associated with the process that last modified the row. Foreign key reference to users.id.

datasource_id VARCHAR

Surrogate key. Foreign key reference to datasources.id. The external data source from which the data in this row originated.

verificationstatusterm_id INTEGER

Surrogate key. Foreign key reference to terms.id

substancetext VARCHAR

An uncoded, human readable description of the substance that is causing the allergy.

substancealternateterms VARCHAR

An xml representation of additional terms (beyond the primary term managed in substanceterm_id) that were sent by the source system to describe the substance causing the allergy.

tenant_id SMALLINT

Surrogate key. Foreign key reference to tenants.id

comment VARCHAR

An uncoded, human readable, supplemental text field to describe the allergy.


Back to Tables