Class AllergyIntolerance
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.AllergyIntolerance
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class AllergyIntolerance extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for AllergyIntolerance complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AllergyIntolerance"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}AllergyIntoleranceStatus" minOccurs="0"/> <element name="type" type="{http://hl7.org/fhir}AllergyIntoleranceType" minOccurs="0"/> <element name="category" type="{http://hl7.org/fhir}AllergyIntoleranceCategory" minOccurs="0"/> <element name="criticality" type="{http://hl7.org/fhir}AllergyIntoleranceCriticality" minOccurs="0"/> <element name="substance" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="patient" type="{http://hl7.org/fhir}Reference"/> <element name="recordedDate" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="recorder" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="reporter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="onset" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="lastOccurence" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/> <element name="reaction" type="{http://hl7.org/fhir}AllergyIntolerance.Reaction" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected AllergyIntoleranceCategorycategoryprotected AllergyIntoleranceCriticalitycriticalityprotected java.util.List<Identifier>identifierprotected DateTimelastOccurenceprotected java.util.List<Annotation>noteprotected DateTimeonsetprotected Referencepatientprotected java.util.List<AllergyIntoleranceReaction>reactionprotected DateTimerecordedDateprotected Referencerecorderprotected Referencereporterprotected AllergyIntoleranceStatusstatusprotected CodeableConceptsubstanceprotected AllergyIntoleranceTypetype-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description AllergyIntolerance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)AllergyIntoleranceCategorygetCategory()Gets the value of the category property.AllergyIntoleranceCriticalitygetCriticality()Gets the value of the criticality property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.DateTimegetLastOccurence()Gets the value of the lastOccurence property.java.util.List<Annotation>getNote()Gets the value of the note property.DateTimegetOnset()Gets the value of the onset property.ReferencegetPatient()Gets the value of the patient property.java.util.List<AllergyIntoleranceReaction>getReaction()Gets the value of the reaction property.DateTimegetRecordedDate()Gets the value of the recordedDate property.ReferencegetRecorder()Gets the value of the recorder property.ReferencegetReporter()Gets the value of the reporter property.AllergyIntoleranceStatusgetStatus()Gets the value of the status property.CodeableConceptgetSubstance()Gets the value of the substance property.AllergyIntoleranceTypegetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCategory(AllergyIntoleranceCategory value)Sets the value of the category property.voidsetCriticality(AllergyIntoleranceCriticality value)Sets the value of the criticality property.voidsetLastOccurence(DateTime value)Sets the value of the lastOccurence property.voidsetOnset(DateTime value)Sets the value of the onset property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetRecordedDate(DateTime value)Sets the value of the recordedDate property.voidsetRecorder(Reference value)Sets the value of the recorder property.voidsetReporter(Reference value)Sets the value of the reporter property.voidsetStatus(AllergyIntoleranceStatus value)Sets the value of the status property.voidsetSubstance(CodeableConcept value)Sets the value of the substance property.voidsetType(AllergyIntoleranceType value)Sets the value of the type property.java.lang.StringtoString()AllergyIntolerancewithCategory(AllergyIntoleranceCategory value)AllergyIntolerancewithContained(java.util.Collection<ResourceContainer> values)AllergyIntolerancewithContained(ResourceContainer... values)AllergyIntolerancewithCriticality(AllergyIntoleranceCriticality value)AllergyIntolerancewithExtension(java.util.Collection<Extension> values)AllergyIntolerancewithExtension(Extension... values)AllergyIntolerancewithId(Id value)AllergyIntolerancewithIdentifier(java.util.Collection<Identifier> values)AllergyIntolerancewithIdentifier(Identifier... values)AllergyIntolerancewithImplicitRules(Uri value)AllergyIntolerancewithLanguage(Code value)AllergyIntolerancewithLastOccurence(DateTime value)AllergyIntolerancewithMeta(Meta value)AllergyIntolerancewithModifierExtension(java.util.Collection<Extension> values)AllergyIntolerancewithModifierExtension(Extension... values)AllergyIntolerancewithNote(java.util.Collection<Annotation> values)AllergyIntolerancewithNote(Annotation... values)AllergyIntolerancewithOnset(DateTime value)AllergyIntolerancewithPatient(Reference value)AllergyIntolerancewithReaction(java.util.Collection<AllergyIntoleranceReaction> values)AllergyIntolerancewithReaction(AllergyIntoleranceReaction... values)AllergyIntolerancewithRecordedDate(DateTime value)AllergyIntolerancewithRecorder(Reference value)AllergyIntolerancewithReporter(Reference value)AllergyIntolerancewithStatus(AllergyIntoleranceStatus value)AllergyIntolerancewithSubstance(CodeableConcept value)AllergyIntolerancewithText(Narrative value)AllergyIntolerancewithType(AllergyIntoleranceType value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
status
protected AllergyIntoleranceStatus status
-
type
protected AllergyIntoleranceType type
-
category
protected AllergyIntoleranceCategory category
-
criticality
protected AllergyIntoleranceCriticality criticality
-
substance
protected CodeableConcept substance
-
patient
protected Reference patient
-
recordedDate
protected DateTime recordedDate
-
recorder
protected Reference recorder
-
reporter
protected Reference reporter
-
onset
protected DateTime onset
-
lastOccurence
protected DateTime lastOccurence
-
note
protected java.util.List<Annotation> note
-
reaction
protected java.util.List<AllergyIntoleranceReaction> reaction
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getStatus
public AllergyIntoleranceStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
AllergyIntoleranceStatus
-
setStatus
public void setStatus(AllergyIntoleranceStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isAllergyIntoleranceStatus
-
getType
public AllergyIntoleranceType getType()
Gets the value of the type property.- Returns:
- possible object is
AllergyIntoleranceType
-
setType
public void setType(AllergyIntoleranceType value)
Sets the value of the type property.- Parameters:
value- allowed object isAllergyIntoleranceType
-
getCategory
public AllergyIntoleranceCategory getCategory()
Gets the value of the category property.- Returns:
- possible object is
AllergyIntoleranceCategory
-
setCategory
public void setCategory(AllergyIntoleranceCategory value)
Sets the value of the category property.- Parameters:
value- allowed object isAllergyIntoleranceCategory
-
getCriticality
public AllergyIntoleranceCriticality getCriticality()
Gets the value of the criticality property.- Returns:
- possible object is
AllergyIntoleranceCriticality
-
setCriticality
public void setCriticality(AllergyIntoleranceCriticality value)
Sets the value of the criticality property.- Parameters:
value- allowed object isAllergyIntoleranceCriticality
-
getSubstance
public CodeableConcept getSubstance()
Gets the value of the substance property.- Returns:
- possible object is
CodeableConcept
-
setSubstance
public void setSubstance(CodeableConcept value)
Sets the value of the substance property.- Parameters:
value- allowed object isCodeableConcept
-
getPatient
public Reference getPatient()
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
public void setPatient(Reference value)
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getRecordedDate
public DateTime getRecordedDate()
Gets the value of the recordedDate property.- Returns:
- possible object is
DateTime
-
setRecordedDate
public void setRecordedDate(DateTime value)
Sets the value of the recordedDate property.- Parameters:
value- allowed object isDateTime
-
getRecorder
public Reference getRecorder()
Gets the value of the recorder property.- Returns:
- possible object is
Reference
-
setRecorder
public void setRecorder(Reference value)
Sets the value of the recorder property.- Parameters:
value- allowed object isReference
-
getReporter
public Reference getReporter()
Gets the value of the reporter property.- Returns:
- possible object is
Reference
-
setReporter
public void setReporter(Reference value)
Sets the value of the reporter property.- Parameters:
value- allowed object isReference
-
getOnset
public DateTime getOnset()
Gets the value of the onset property.- Returns:
- possible object is
DateTime
-
setOnset
public void setOnset(DateTime value)
Sets the value of the onset property.- Parameters:
value- allowed object isDateTime
-
getLastOccurence
public DateTime getLastOccurence()
Gets the value of the lastOccurence property.- Returns:
- possible object is
DateTime
-
setLastOccurence
public void setLastOccurence(DateTime value)
Sets the value of the lastOccurence property.- Parameters:
value- allowed object isDateTime
-
getNote
public java.util.List<Annotation> getNote()
Gets the value of the note property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the note property.For example, to add a new item, do as follows:
getNote().add(newItem);Objects of the following type(s) are allowed in the list
Annotation
-
getReaction
public java.util.List<AllergyIntoleranceReaction> getReaction()
Gets the value of the reaction property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the reaction property.For example, to add a new item, do as follows:
getReaction().add(newItem);Objects of the following type(s) are allowed in the list
AllergyIntoleranceReaction
-
withIdentifier
public AllergyIntolerance withIdentifier(Identifier... values)
-
withIdentifier
public AllergyIntolerance withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public AllergyIntolerance withStatus(AllergyIntoleranceStatus value)
-
withType
public AllergyIntolerance withType(AllergyIntoleranceType value)
-
withCategory
public AllergyIntolerance withCategory(AllergyIntoleranceCategory value)
-
withCriticality
public AllergyIntolerance withCriticality(AllergyIntoleranceCriticality value)
-
withSubstance
public AllergyIntolerance withSubstance(CodeableConcept value)
-
withPatient
public AllergyIntolerance withPatient(Reference value)
-
withRecordedDate
public AllergyIntolerance withRecordedDate(DateTime value)
-
withRecorder
public AllergyIntolerance withRecorder(Reference value)
-
withReporter
public AllergyIntolerance withReporter(Reference value)
-
withOnset
public AllergyIntolerance withOnset(DateTime value)
-
withLastOccurence
public AllergyIntolerance withLastOccurence(DateTime value)
-
withNote
public AllergyIntolerance withNote(Annotation... values)
-
withNote
public AllergyIntolerance withNote(java.util.Collection<Annotation> values)
-
withReaction
public AllergyIntolerance withReaction(AllergyIntoleranceReaction... values)
-
withReaction
public AllergyIntolerance withReaction(java.util.Collection<AllergyIntoleranceReaction> values)
-
withText
public AllergyIntolerance withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public AllergyIntolerance withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public AllergyIntolerance withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public AllergyIntolerance withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public AllergyIntolerance withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public AllergyIntolerance withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public AllergyIntolerance withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public AllergyIntolerance withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public AllergyIntolerance withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public AllergyIntolerance withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public AllergyIntolerance withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-