Class AllergyIntolerance.Reaction.Builder

    • Method Detail

      • id

        public AllergyIntolerance.Reaction.Builder id​(java.lang.String id)
        Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
        Overrides:
        id in class BackboneElement.Builder
        Parameters:
        id - Unique id for inter-element referencing
        Returns:
        A reference to this Builder instance
      • extension

        public AllergyIntolerance.Reaction.Builder extension​(Extension... extension)
        May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Adds new element(s) to the existing list. If any of the elements are null, calling build() will fail.

        Overrides:
        extension in class BackboneElement.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
      • extension

        public AllergyIntolerance.Reaction.Builder extension​(java.util.Collection<Extension> extension)
        May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling build() will fail.

        Overrides:
        extension in class BackboneElement.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
        Throws:
        java.lang.NullPointerException - If the passed collection is null
      • modifierExtension

        public AllergyIntolerance.Reaction.Builder modifierExtension​(Extension... modifierExtension)
        May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

        Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

        Adds new element(s) to the existing list. If any of the elements are null, calling build() will fail.

        Overrides:
        modifierExtension in class BackboneElement.Builder
        Parameters:
        modifierExtension - Extensions that cannot be ignored even if unrecognized
        Returns:
        A reference to this Builder instance
      • modifierExtension

        public AllergyIntolerance.Reaction.Builder modifierExtension​(java.util.Collection<Extension> modifierExtension)
        May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

        Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

        Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling build() will fail.

        Overrides:
        modifierExtension in class BackboneElement.Builder
        Parameters:
        modifierExtension - Extensions that cannot be ignored even if unrecognized
        Returns:
        A reference to this Builder instance
        Throws:
        java.lang.NullPointerException - If the passed collection is null
      • substance

        public AllergyIntolerance.Reaction.Builder substance​(CodeableConcept substance)
        Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance. reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.
        Parameters:
        substance - Specific substance or pharmaceutical product considered to be responsible for event
        Returns:
        A reference to this Builder instance
      • manifestation

        public AllergyIntolerance.Reaction.Builder manifestation​(CodeableConcept... manifestation)
        Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.

        Adds new element(s) to the existing list. If any of the elements are null, calling build() will fail.

        This element is required.

        Parameters:
        manifestation - Clinical symptoms/signs associated with the Event
        Returns:
        A reference to this Builder instance
      • manifestation

        public AllergyIntolerance.Reaction.Builder manifestation​(java.util.Collection<CodeableConcept> manifestation)
        Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.

        Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling build() will fail.

        This element is required.

        Parameters:
        manifestation - Clinical symptoms/signs associated with the Event
        Returns:
        A reference to this Builder instance
        Throws:
        java.lang.NullPointerException - If the passed collection is null
      • description

        public AllergyIntolerance.Reaction.Builder description​(String description)
        Text description about the reaction as a whole, including details of the manifestation if required.
        Parameters:
        description - Description of the event as a whole
        Returns:
        A reference to this Builder instance
      • onset

        public AllergyIntolerance.Reaction.Builder onset​(DateTime onset)
        Record of the date and/or time of the onset of the Reaction.
        Parameters:
        onset - Date(/time) when manifestations showed
        Returns:
        A reference to this Builder instance
      • severity

        public AllergyIntolerance.Reaction.Builder severity​(AllergyIntoleranceSeverity severity)
        Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.
        Parameters:
        severity - mild | moderate | severe (of event as a whole)
        Returns:
        A reference to this Builder instance
      • exposureRoute

        public AllergyIntolerance.Reaction.Builder exposureRoute​(CodeableConcept exposureRoute)
        Identification of the route by which the subject was exposed to the substance.
        Parameters:
        exposureRoute - How the subject was exposed to the substance
        Returns:
        A reference to this Builder instance
      • note

        public AllergyIntolerance.Reaction.Builder note​(Annotation... note)
        Additional text about the adverse reaction event not captured in other fields.

        Adds new element(s) to the existing list. If any of the elements are null, calling build() will fail.

        Parameters:
        note - Text about event not captured in other fields
        Returns:
        A reference to this Builder instance
      • note

        public AllergyIntolerance.Reaction.Builder note​(java.util.Collection<Annotation> note)
        Additional text about the adverse reaction event not captured in other fields.

        Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling build() will fail.

        Parameters:
        note - Text about event not captured in other fields
        Returns:
        A reference to this Builder instance
        Throws:
        java.lang.NullPointerException - If the passed collection is null