Class AllergyIntolerance

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IResource, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseResource

public class AllergyIntolerance extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR AllergyIntolerance Resource ()

Definition: Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.

Requirements: To record a clinical assessment of a propensity, or potential risk to an individual, of an adverse reaction upon future exposure to the specified substance, or class of substance.

Profile Definition: http://hl7.org/fhir/profiles/AllergyIntolerance

See Also:
  • Field Details

    • SP_SUBSTANCE

      public static final String SP_SUBSTANCE
      Search parameter constant for substance

      Description:
      Type: token
      Path: AllergyIntolerance.substance | AllergyIntolerance.reaction.substance

      See Also:
    • SUBSTANCE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBSTANCE
      Fluent Client search parameter constant for substance

      Description:
      Type: token
      Path: AllergyIntolerance.substance | AllergyIntolerance.reaction.substance

    • SP_STATUS

      public static final String SP_STATUS
      Search parameter constant for status

      Description:
      Type: token
      Path: AllergyIntolerance.status

      See Also:
    • STATUS

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
      Fluent Client search parameter constant for status

      Description:
      Type: token
      Path: AllergyIntolerance.status

    • SP_CRITICALITY

      public static final String SP_CRITICALITY
      Search parameter constant for criticality

      Description:
      Type: token
      Path: AllergyIntolerance.criticality

      See Also:
    • CRITICALITY

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CRITICALITY
      Fluent Client search parameter constant for criticality

      Description:
      Type: token
      Path: AllergyIntolerance.criticality

    • SP_TYPE

      public static final String SP_TYPE
      Search parameter constant for type

      Description:
      Type: token
      Path: AllergyIntolerance.type

      See Also:
    • TYPE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
      Fluent Client search parameter constant for type

      Description:
      Type: token
      Path: AllergyIntolerance.type

    • SP_CATEGORY

      public static final String SP_CATEGORY
      Search parameter constant for category

      Description:
      Type: token
      Path: AllergyIntolerance.category

      See Also:
    • CATEGORY

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
      Fluent Client search parameter constant for category

      Description:
      Type: token
      Path: AllergyIntolerance.category

    • SP_LAST_DATE

      public static final String SP_LAST_DATE
      Search parameter constant for last-date

      Description:
      Type: date
      Path: AllergyIntolerance.lastOccurence

      See Also:
    • LAST_DATE

      public static final ca.uhn.fhir.rest.gclient.DateClientParam LAST_DATE
      Fluent Client search parameter constant for last-date

      Description:
      Type: date
      Path: AllergyIntolerance.lastOccurence

    • SP_MANIFESTATION

      public static final String SP_MANIFESTATION
      Search parameter constant for manifestation

      Description:
      Type: token
      Path: AllergyIntolerance.reaction.manifestation

      See Also:
    • MANIFESTATION

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam MANIFESTATION
      Fluent Client search parameter constant for manifestation

      Description:
      Type: token
      Path: AllergyIntolerance.reaction.manifestation

    • SP_ONSET

      public static final String SP_ONSET
      Search parameter constant for onset

      Description:
      Type: date
      Path: AllergyIntolerance.reaction.onset

      See Also:
    • ONSET

      public static final ca.uhn.fhir.rest.gclient.DateClientParam ONSET
      Fluent Client search parameter constant for onset

      Description:
      Type: date
      Path: AllergyIntolerance.reaction.onset

    • SP_SEVERITY

      public static final String SP_SEVERITY
      Search parameter constant for severity

      Description:
      Type: token
      Path: AllergyIntolerance.reaction.severity

      See Also:
    • SEVERITY

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEVERITY
      Fluent Client search parameter constant for severity

      Description:
      Type: token
      Path: AllergyIntolerance.reaction.severity

    • SP_ROUTE

      public static final String SP_ROUTE
      Search parameter constant for route

      Description:
      Type: token
      Path: AllergyIntolerance.reaction.exposureRoute

      See Also:
    • ROUTE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam ROUTE
      Fluent Client search parameter constant for route

      Description:
      Type: token
      Path: AllergyIntolerance.reaction.exposureRoute

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter constant for identifier

      Description:
      Type: token
      Path: AllergyIntolerance.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description:
      Type: token
      Path: AllergyIntolerance.identifier

    • SP_DATE

      public static final String SP_DATE
      Search parameter constant for date

      Description:
      Type: date
      Path: AllergyIntolerance.recordedDate

      See Also:
    • DATE

      public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
      Fluent Client search parameter constant for date

      Description:
      Type: date
      Path: AllergyIntolerance.recordedDate

    • SP_RECORDER

      public static final String SP_RECORDER
      Search parameter constant for recorder

      Description:
      Type: reference
      Path: AllergyIntolerance.recorder

      See Also:
    • RECORDER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECORDER
      Fluent Client search parameter constant for recorder

      Description:
      Type: reference
      Path: AllergyIntolerance.recorder

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description:
      Type: reference
      Path: AllergyIntolerance.patient

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description:
      Type: reference
      Path: AllergyIntolerance.patient

    • SP_REPORTER

      public static final String SP_REPORTER
      Search parameter constant for reporter

      Description:
      Type: reference
      Path: AllergyIntolerance.reporter

      See Also:
    • REPORTER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REPORTER
      Fluent Client search parameter constant for reporter

      Description:
      Type: reference
      Path: AllergyIntolerance.reporter

    • INCLUDE_PATIENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "AllergyIntolerance:patient".
    • INCLUDE_RECORDER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_RECORDER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "AllergyIntolerance:recorder".
    • INCLUDE_REPORTER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_REPORTER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "AllergyIntolerance:reporter".
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getIdentifier

      Gets the value(s) for identifier (). creating it if it does not exist. Will not return null.

      Definition: 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)

    • setIdentifier

      Sets the value(s) for identifier ()

      Definition: 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

      Adds and returns a new value for identifier ()

      Definition: 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

      Adds a given new value for identifier ()

      Definition: 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)

      Parameters:
      theValue - The identifier to add (must not be null)
    • getIdentifierFirstRep

      Gets the first repetition for identifier (), creating it if it does not already exist.

      Definition: 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)

    • getOnsetElement

      public ca.uhn.fhir.model.primitive.DateTimeDt getOnsetElement()
      Gets the value(s) for onset (). creating it if it does not exist. Will not return null.

      Definition: Record of the date and/or time of the onset of the Allergy or Intolerance

    • getOnset

      public Date getOnset()
      Gets the value(s) for onset (). creating it if it does not exist. This method may return null.

      Definition: Record of the date and/or time of the onset of the Allergy or Intolerance

    • setOnset

      public AllergyIntolerance setOnset(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
      Sets the value(s) for onset ()

      Definition: Record of the date and/or time of the onset of the Allergy or Intolerance

    • setOnsetWithSecondsPrecision

      Sets the value for onset ()

      Definition: Record of the date and/or time of the onset of the Allergy or Intolerance

    • setOnset

      public AllergyIntolerance setOnset(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for onset ()

      Definition: Record of the date and/or time of the onset of the Allergy or Intolerance

    • getRecordedDateElement

      public ca.uhn.fhir.model.primitive.DateTimeDt getRecordedDateElement()
      Gets the value(s) for recordedDate (). creating it if it does not exist. Will not return null.

      Definition: Date when the sensitivity was recorded

    • getRecordedDate

      Gets the value(s) for recordedDate (). creating it if it does not exist. This method may return null.

      Definition: Date when the sensitivity was recorded

    • setRecordedDate

      public AllergyIntolerance setRecordedDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
      Sets the value(s) for recordedDate ()

      Definition: Date when the sensitivity was recorded

    • setRecordedDateWithSecondsPrecision

      Sets the value for recordedDate ()

      Definition: Date when the sensitivity was recorded

    • setRecordedDate

      public AllergyIntolerance setRecordedDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for recordedDate ()

      Definition: Date when the sensitivity was recorded

    • getRecorder

      Gets the value(s) for recorder (). creating it if it does not exist. Will not return null.

      Definition: Individual who recorded the record and takes responsibility for its conten

    • setRecorder

      Sets the value(s) for recorder ()

      Definition: Individual who recorded the record and takes responsibility for its conten

    • getPatient

      Gets the value(s) for patient (). creating it if it does not exist. Will not return null.

      Definition: The patient who has the allergy or intolerance

    • setPatient

      Sets the value(s) for patient ()

      Definition: The patient who has the allergy or intolerance

    • getReporter

      Gets the value(s) for reporter (). creating it if it does not exist. Will not return null.

      Definition: The source of the information about the allergy that is recorded

    • setReporter

      Sets the value(s) for reporter ()

      Definition: The source of the information about the allergy that is recorded

    • getSubstance

      Gets the value(s) for substance (). creating it if it does not exist. Will not return null.

      Definition: Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk

    • setSubstance

      Sets the value(s) for substance ()

      Definition: Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk

    • getStatusElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceStatusEnum> getStatusElement()
      Gets the value(s) for status (). creating it if it does not exist. Will not return null.

      Definition: Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance

    • getStatus

      public String getStatus()
      Gets the value(s) for status (). creating it if it does not exist. This method may return null.

      Definition: Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance

    • setStatus

      public AllergyIntolerance setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceStatusEnum> theValue)
      Sets the value(s) for status ()

      Definition: Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance

    • setStatus

      Sets the value(s) for status ()

      Definition: Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance

    • getCriticalityElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceCriticalityEnum> getCriticalityElement()
      Gets the value(s) for criticality (). creating it if it does not exist. Will not return null.

      Definition: Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance

    • getCriticality

      Gets the value(s) for criticality (). creating it if it does not exist. This method may return null.

      Definition: Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance

    • setCriticality

      public AllergyIntolerance setCriticality(ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceCriticalityEnum> theValue)
      Sets the value(s) for criticality ()

      Definition: Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance

    • setCriticality

      Sets the value(s) for criticality ()

      Definition: Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance

    • getTypeElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceTypeEnum> getTypeElement()
      Gets the value(s) for type (). creating it if it does not exist. Will not return null.

      Definition: Identification of the underlying physiological mechanism for the reaction risk.

    • getType

      public String getType()
      Gets the value(s) for type (). creating it if it does not exist. This method may return null.

      Definition: Identification of the underlying physiological mechanism for the reaction risk.

    • setType

      public AllergyIntolerance setType(ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceTypeEnum> theValue)
      Sets the value(s) for type ()

      Definition: Identification of the underlying physiological mechanism for the reaction risk.

    • setType

      Sets the value(s) for type ()

      Definition: Identification of the underlying physiological mechanism for the reaction risk.

    • getCategoryElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceCategoryEnum> getCategoryElement()
      Gets the value(s) for category (). creating it if it does not exist. Will not return null.

      Definition: Category of the identified Substance

    • getCategory

      public String getCategory()
      Gets the value(s) for category (). creating it if it does not exist. This method may return null.

      Definition: Category of the identified Substance

    • setCategory

      public AllergyIntolerance setCategory(ca.uhn.fhir.model.primitive.BoundCodeDt<AllergyIntoleranceCategoryEnum> theValue)
      Sets the value(s) for category ()

      Definition: Category of the identified Substance

    • setCategory

      Sets the value(s) for category ()

      Definition: Category of the identified Substance

    • getLastOccurenceElement

      public ca.uhn.fhir.model.primitive.DateTimeDt getLastOccurenceElement()
      Gets the value(s) for lastOccurence (). creating it if it does not exist. Will not return null.

      Definition: Represents the date and/or time of the last known occurrence of a reaction event

    • getLastOccurence

      Gets the value(s) for lastOccurence (). creating it if it does not exist. This method may return null.

      Definition: Represents the date and/or time of the last known occurrence of a reaction event

    • setLastOccurence

      public AllergyIntolerance setLastOccurence(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
      Sets the value(s) for lastOccurence ()

      Definition: Represents the date and/or time of the last known occurrence of a reaction event

    • setLastOccurenceWithSecondsPrecision

      Sets the value for lastOccurence ()

      Definition: Represents the date and/or time of the last known occurrence of a reaction event

    • setLastOccurence

      public AllergyIntolerance setLastOccurence(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for lastOccurence ()

      Definition: Represents the date and/or time of the last known occurrence of a reaction event

    • getNote

      Gets the value(s) for note (). creating it if it does not exist. Will not return null.

      Definition: Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.

    • setNote

      Sets the value(s) for note ()

      Definition: Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.

    • getReaction

      Gets the value(s) for reaction (). creating it if it does not exist. Will not return null.

      Definition: Details about each adverse reaction event linked to exposure to the identified Substance

    • setReaction

      Sets the value(s) for reaction ()

      Definition: Details about each adverse reaction event linked to exposure to the identified Substance

    • addReaction

      Adds and returns a new value for reaction ()

      Definition: Details about each adverse reaction event linked to exposure to the identified Substance

    • addReaction

      Adds a given new value for reaction ()

      Definition: Details about each adverse reaction event linked to exposure to the identified Substance

      Parameters:
      theValue - The reaction to add (must not be null)
    • getReactionFirstRep

      Gets the first repetition for reaction (), creating it if it does not already exist.

      Definition: Details about each adverse reaction event linked to exposure to the identified Substance

    • getResourceName

      Specified by:
      getResourceName in interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource