Package org.hl7.fhir.dstu2.model
Class AllergyIntolerance
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.AllergyIntolerance
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class AllergyIntolerance extends DomainResource
Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllergyIntolerance.AllergyIntoleranceCategorystatic classAllergyIntolerance.AllergyIntoleranceCategoryEnumFactorystatic classAllergyIntolerance.AllergyIntoleranceCertaintystatic classAllergyIntolerance.AllergyIntoleranceCertaintyEnumFactorystatic classAllergyIntolerance.AllergyIntoleranceCriticalitystatic classAllergyIntolerance.AllergyIntoleranceCriticalityEnumFactorystatic classAllergyIntolerance.AllergyIntoleranceReactionComponentstatic classAllergyIntolerance.AllergyIntoleranceSeveritystatic classAllergyIntolerance.AllergyIntoleranceSeverityEnumFactorystatic classAllergyIntolerance.AllergyIntoleranceStatusstatic classAllergyIntolerance.AllergyIntoleranceStatusEnumFactorystatic classAllergyIntolerance.AllergyIntoleranceTypestatic classAllergyIntolerance.AllergyIntoleranceTypeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected Enumeration<AllergyIntolerance.AllergyIntoleranceCategory>categoryCategory of the identified Substance.protected Enumeration<AllergyIntolerance.AllergyIntoleranceCriticality>criticalityEstimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.protected List<Identifier>identifierThis records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g.protected DateTimeTypelastOccurenceRepresents the date and/or time of the last known occurrence of a reaction event.protected AnnotationnoteAdditional narrative about the propensity for the Adverse Reaction, not captured in other fields.protected DateTimeTypeonsetRecord of the date and/or time of the onset of the Allergy or Intolerance.protected ReferencepatientThe patient who has the allergy or intolerance.protected PatientpatientTargetThe actual object that is the target of the reference (The patient who has the allergy or intolerance.)protected List<AllergyIntolerance.AllergyIntoleranceReactionComponent>reactionDetails about each adverse reaction event linked to exposure to the identified Substance.protected DateTimeTyperecordedDateDate when the sensitivity was recorded.protected ReferencerecorderIndividual who recorded the record and takes responsibility for its conten.protected ResourcerecorderTargetThe actual object that is the target of the reference (Individual who recorded the record and takes responsibility for its conten.)protected ReferencereporterThe source of the information about the allergy that is recorded.protected ResourcereporterTargetThe actual object that is the target of the reference (The source of the information about the allergy that is recorded.)static StringSP_CATEGORYstatic StringSP_CRITICALITYstatic StringSP_DATEstatic StringSP_IDENTIFIERstatic StringSP_LASTDATEstatic StringSP_MANIFESTATIONstatic StringSP_ONSETstatic StringSP_PATIENTstatic StringSP_RECORDERstatic StringSP_REPORTERstatic StringSP_ROUTEstatic StringSP_SEVERITYstatic StringSP_STATUSstatic StringSP_SUBSTANCEstatic StringSP_TYPEprotected Enumeration<AllergyIntolerance.AllergyIntoleranceStatus>statusAssertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.protected CodeableConceptsubstanceIdentification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.protected Enumeration<AllergyIntolerance.AllergyIntoleranceType>typeIdentification of the underlying physiological mechanism for the reaction risk.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description AllergyIntolerance()AllergyIntolerance(Reference patient, CodeableConcept substance)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).
-
onset
protected DateTimeType onset
Record of the date and/or time of the onset of the Allergy or Intolerance.
-
recordedDate
protected DateTimeType recordedDate
Date when the sensitivity was recorded.
-
recorder
protected Reference recorder
Individual who recorded the record and takes responsibility for its conten.
-
recorderTarget
protected Resource recorderTarget
The actual object that is the target of the reference (Individual who recorded the record and takes responsibility for its conten.)
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (The patient who has the allergy or intolerance.)
-
reporter
protected Reference reporter
The source of the information about the allergy that is recorded.
-
reporterTarget
protected Resource reporterTarget
The actual object that is the target of the reference (The source of the information about the allergy that is recorded.)
-
substance
protected CodeableConcept substance
Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.
-
status
protected Enumeration<AllergyIntolerance.AllergyIntoleranceStatus> status
Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.
-
criticality
protected Enumeration<AllergyIntolerance.AllergyIntoleranceCriticality> criticality
Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.
-
type
protected Enumeration<AllergyIntolerance.AllergyIntoleranceType> type
Identification of the underlying physiological mechanism for the reaction risk.
-
category
protected Enumeration<AllergyIntolerance.AllergyIntoleranceCategory> category
Category of the identified Substance.
-
lastOccurence
protected DateTimeType lastOccurence
Represents the date and/or time of the last known occurrence of a reaction event.
-
note
protected Annotation note
Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.
-
reaction
protected List<AllergyIntolerance.AllergyIntoleranceReactionComponent> reaction
Details about each adverse reaction event linked to exposure to the identified Substance.
-
SP_SEVERITY
public static final String SP_SEVERITY
- See Also:
- Constant Field Values
-
SP_DATE
public static final String SP_DATE
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_MANIFESTATION
public static final String SP_MANIFESTATION
- See Also:
- Constant Field Values
-
SP_RECORDER
public static final String SP_RECORDER
- See Also:
- Constant Field Values
-
SP_SUBSTANCE
public static final String SP_SUBSTANCE
- See Also:
- Constant Field Values
-
SP_CRITICALITY
public static final String SP_CRITICALITY
- See Also:
- Constant Field Values
-
SP_REPORTER
public static final String SP_REPORTER
- See Also:
- Constant Field Values
-
SP_TYPE
public static final String SP_TYPE
- See Also:
- Constant Field Values
-
SP_ONSET
public static final String SP_ONSET
- See Also:
- Constant Field Values
-
SP_ROUTE
public static final String SP_ROUTE
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_CATEGORY
public static final String SP_CATEGORY
- See Also:
- Constant Field Values
-
SP_LASTDATE
public static final String SP_LASTDATE
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AllergyIntolerance
public AllergyIntolerance()
-
AllergyIntolerance
public AllergyIntolerance(Reference patient, CodeableConcept substance)
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).)
-
addIdentifier
public AllergyIntolerance addIdentifier(Identifier t)
-
getOnsetElement
public DateTimeType getOnsetElement()
- Returns:
onset(Record of the date and/or time of the onset of the Allergy or Intolerance.). This is the underlying object with id, value and extensions. The accessor "getOnset" gives direct access to the value
-
hasOnsetElement
public boolean hasOnsetElement()
-
hasOnset
public boolean hasOnset()
-
setOnsetElement
public AllergyIntolerance setOnsetElement(DateTimeType value)
- Parameters:
value-onset(Record of the date and/or time of the onset of the Allergy or Intolerance.). This is the underlying object with id, value and extensions. The accessor "getOnset" gives direct access to the value
-
getOnset
public Date getOnset()
- Returns:
- Record of the date and/or time of the onset of the Allergy or Intolerance.
-
setOnset
public AllergyIntolerance setOnset(Date value)
- Parameters:
value- Record of the date and/or time of the onset of the Allergy or Intolerance.
-
getRecordedDateElement
public DateTimeType getRecordedDateElement()
- Returns:
recordedDate(Date when the sensitivity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecordedDate" gives direct access to the value
-
hasRecordedDateElement
public boolean hasRecordedDateElement()
-
hasRecordedDate
public boolean hasRecordedDate()
-
setRecordedDateElement
public AllergyIntolerance setRecordedDateElement(DateTimeType value)
- Parameters:
value-recordedDate(Date when the sensitivity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecordedDate" gives direct access to the value
-
getRecordedDate
public Date getRecordedDate()
- Returns:
- Date when the sensitivity was recorded.
-
setRecordedDate
public AllergyIntolerance setRecordedDate(Date value)
- Parameters:
value- Date when the sensitivity was recorded.
-
getRecorder
public Reference getRecorder()
- Returns:
recorder(Individual who recorded the record and takes responsibility for its conten.)
-
hasRecorder
public boolean hasRecorder()
-
setRecorder
public AllergyIntolerance setRecorder(Reference value)
- Parameters:
value-recorder(Individual who recorded the record and takes responsibility for its conten.)
-
getRecorderTarget
public Resource getRecorderTarget()
- Returns:
recorderThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Individual who recorded the record and takes responsibility for its conten.)
-
setRecorderTarget
public AllergyIntolerance setRecorderTarget(Resource value)
- Parameters:
value-recorderThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Individual who recorded the record and takes responsibility for its conten.)
-
getPatient
public Reference getPatient()
- Returns:
patient(The patient who has the allergy or intolerance.)
-
hasPatient
public boolean hasPatient()
-
setPatient
public AllergyIntolerance setPatient(Reference value)
- Parameters:
value-patient(The patient who has the allergy or intolerance.)
-
getPatientTarget
public Patient getPatientTarget()
- Returns:
patientThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The patient who has the allergy or intolerance.)
-
setPatientTarget
public AllergyIntolerance setPatientTarget(Patient value)
- Parameters:
value-patientThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The patient who has the allergy or intolerance.)
-
getReporter
public Reference getReporter()
- Returns:
reporter(The source of the information about the allergy that is recorded.)
-
hasReporter
public boolean hasReporter()
-
setReporter
public AllergyIntolerance setReporter(Reference value)
- Parameters:
value-reporter(The source of the information about the allergy that is recorded.)
-
getReporterTarget
public Resource getReporterTarget()
- Returns:
reporterThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The source of the information about the allergy that is recorded.)
-
setReporterTarget
public AllergyIntolerance setReporterTarget(Resource value)
- Parameters:
value-reporterThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The source of the information about the allergy that is recorded.)
-
getSubstance
public CodeableConcept getSubstance()
- Returns:
substance(Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.)
-
hasSubstance
public boolean hasSubstance()
-
setSubstance
public AllergyIntolerance setSubstance(CodeableConcept value)
- Parameters:
value-substance(Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.)
-
getStatusElement
public Enumeration<AllergyIntolerance.AllergyIntoleranceStatus> getStatusElement()
- Returns:
status(Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public AllergyIntolerance setStatusElement(Enumeration<AllergyIntolerance.AllergyIntoleranceStatus> value)
- Parameters:
value-status(Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public AllergyIntolerance.AllergyIntoleranceStatus getStatus()
- Returns:
- Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.
-
setStatus
public AllergyIntolerance setStatus(AllergyIntolerance.AllergyIntoleranceStatus value)
- Parameters:
value- Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.
-
getCriticalityElement
public Enumeration<AllergyIntolerance.AllergyIntoleranceCriticality> getCriticalityElement()
- Returns:
criticality(Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCriticality" gives direct access to the value
-
hasCriticalityElement
public boolean hasCriticalityElement()
-
hasCriticality
public boolean hasCriticality()
-
setCriticalityElement
public AllergyIntolerance setCriticalityElement(Enumeration<AllergyIntolerance.AllergyIntoleranceCriticality> value)
- Parameters:
value-criticality(Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCriticality" gives direct access to the value
-
getCriticality
public AllergyIntolerance.AllergyIntoleranceCriticality getCriticality()
- Returns:
- Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.
-
setCriticality
public AllergyIntolerance setCriticality(AllergyIntolerance.AllergyIntoleranceCriticality value)
- Parameters:
value- Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.
-
getTypeElement
public Enumeration<AllergyIntolerance.AllergyIntoleranceType> getTypeElement()
- Returns:
type(Identification of the underlying physiological mechanism for the reaction risk.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public AllergyIntolerance setTypeElement(Enumeration<AllergyIntolerance.AllergyIntoleranceType> value)
- Parameters:
value-type(Identification of the underlying physiological mechanism for the reaction risk.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public AllergyIntolerance.AllergyIntoleranceType getType()
- Returns:
- Identification of the underlying physiological mechanism for the reaction risk.
-
setType
public AllergyIntolerance setType(AllergyIntolerance.AllergyIntoleranceType value)
- Parameters:
value- Identification of the underlying physiological mechanism for the reaction risk.
-
getCategoryElement
public Enumeration<AllergyIntolerance.AllergyIntoleranceCategory> getCategoryElement()
- Returns:
category(Category of the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
-
hasCategoryElement
public boolean hasCategoryElement()
-
hasCategory
public boolean hasCategory()
-
setCategoryElement
public AllergyIntolerance setCategoryElement(Enumeration<AllergyIntolerance.AllergyIntoleranceCategory> value)
- Parameters:
value-category(Category of the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
-
getCategory
public AllergyIntolerance.AllergyIntoleranceCategory getCategory()
- Returns:
- Category of the identified Substance.
-
setCategory
public AllergyIntolerance setCategory(AllergyIntolerance.AllergyIntoleranceCategory value)
- Parameters:
value- Category of the identified Substance.
-
getLastOccurenceElement
public DateTimeType getLastOccurenceElement()
- Returns:
lastOccurence(Represents the date and/or time of the last known occurrence of a reaction event.). This is the underlying object with id, value and extensions. The accessor "getLastOccurence" gives direct access to the value
-
hasLastOccurenceElement
public boolean hasLastOccurenceElement()
-
hasLastOccurence
public boolean hasLastOccurence()
-
setLastOccurenceElement
public AllergyIntolerance setLastOccurenceElement(DateTimeType value)
- Parameters:
value-lastOccurence(Represents the date and/or time of the last known occurrence of a reaction event.). This is the underlying object with id, value and extensions. The accessor "getLastOccurence" gives direct access to the value
-
getLastOccurence
public Date getLastOccurence()
- Returns:
- Represents the date and/or time of the last known occurrence of a reaction event.
-
setLastOccurence
public AllergyIntolerance setLastOccurence(Date value)
- Parameters:
value- Represents the date and/or time of the last known occurrence of a reaction event.
-
getNote
public Annotation getNote()
- Returns:
note(Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.)
-
hasNote
public boolean hasNote()
-
setNote
public AllergyIntolerance setNote(Annotation value)
- Parameters:
value-note(Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.)
-
getReaction
public List<AllergyIntolerance.AllergyIntoleranceReactionComponent> getReaction()
- Returns:
reaction(Details about each adverse reaction event linked to exposure to the identified Substance.)
-
hasReaction
public boolean hasReaction()
-
addReaction
public AllergyIntolerance.AllergyIntoleranceReactionComponent addReaction()
- Returns:
reaction(Details about each adverse reaction event linked to exposure to the identified Substance.)
-
addReaction
public AllergyIntolerance addReaction(AllergyIntolerance.AllergyIntoleranceReactionComponent t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public AllergyIntolerance copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected AllergyIntolerance typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-