Package org.hl7.fhir

Class MedicationStatement

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class MedicationStatement
    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 extensions

    Java class for MedicationStatement complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="MedicationStatement">
       <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}MedicationStatementStatus"/>
             <choice>
               <element name="medicationCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
               <element name="medicationReference" type="{http://hl7.org/fhir}Reference"/>
             </choice>
             <element name="patient" type="{http://hl7.org/fhir}Reference"/>
             <choice minOccurs="0">
               <element name="effectiveDateTime" type="{http://hl7.org/fhir}dateTime"/>
               <element name="effectivePeriod" type="{http://hl7.org/fhir}Period"/>
             </choice>
             <element name="informationSource" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="supportingInformation" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="dateAsserted" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
             <element name="wasNotTaken" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
             <element name="reasonNotTaken" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <choice minOccurs="0">
               <element name="reasonForUseCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
               <element name="reasonForUseReference" type="{http://hl7.org/fhir}Reference"/>
             </choice>
             <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
             <element name="dosage" type="{http://hl7.org/fhir}MedicationStatement.Dosage" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • MedicationStatement

        public MedicationStatement()
    • 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 set method 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

      • getMedicationCodeableConcept

        public CodeableConcept getMedicationCodeableConcept()
        Gets the value of the medicationCodeableConcept property.
        Returns:
        possible object is CodeableConcept
      • setMedicationCodeableConcept

        public void setMedicationCodeableConcept​(CodeableConcept value)
        Sets the value of the medicationCodeableConcept property.
        Parameters:
        value - allowed object is CodeableConcept
      • getMedicationReference

        public Reference getMedicationReference()
        Gets the value of the medicationReference property.
        Returns:
        possible object is Reference
      • setMedicationReference

        public void setMedicationReference​(Reference value)
        Sets the value of the medicationReference property.
        Parameters:
        value - allowed object is Reference
      • 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 is Reference
      • getEffectiveDateTime

        public DateTime getEffectiveDateTime()
        Gets the value of the effectiveDateTime property.
        Returns:
        possible object is DateTime
      • setEffectiveDateTime

        public void setEffectiveDateTime​(DateTime value)
        Sets the value of the effectiveDateTime property.
        Parameters:
        value - allowed object is DateTime
      • getEffectivePeriod

        public Period getEffectivePeriod()
        Gets the value of the effectivePeriod property.
        Returns:
        possible object is Period
      • setEffectivePeriod

        public void setEffectivePeriod​(Period value)
        Sets the value of the effectivePeriod property.
        Parameters:
        value - allowed object is Period
      • getInformationSource

        public Reference getInformationSource()
        Gets the value of the informationSource property.
        Returns:
        possible object is Reference
      • setInformationSource

        public void setInformationSource​(Reference value)
        Sets the value of the informationSource property.
        Parameters:
        value - allowed object is Reference
      • getSupportingInformation

        public java.util.List<Reference> getSupportingInformation()
        Gets the value of the supportingInformation 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 set method for the supportingInformation property.

        For example, to add a new item, do as follows:

            getSupportingInformation().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getDateAsserted

        public DateTime getDateAsserted()
        Gets the value of the dateAsserted property.
        Returns:
        possible object is DateTime
      • setDateAsserted

        public void setDateAsserted​(DateTime value)
        Sets the value of the dateAsserted property.
        Parameters:
        value - allowed object is DateTime
      • getWasNotTaken

        public Boolean getWasNotTaken()
        Gets the value of the wasNotTaken property.
        Returns:
        possible object is Boolean
      • setWasNotTaken

        public void setWasNotTaken​(Boolean value)
        Sets the value of the wasNotTaken property.
        Parameters:
        value - allowed object is Boolean
      • getReasonNotTaken

        public java.util.List<CodeableConcept> getReasonNotTaken()
        Gets the value of the reasonNotTaken 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 set method for the reasonNotTaken property.

        For example, to add a new item, do as follows:

            getReasonNotTaken().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getReasonForUseCodeableConcept

        public CodeableConcept getReasonForUseCodeableConcept()
        Gets the value of the reasonForUseCodeableConcept property.
        Returns:
        possible object is CodeableConcept
      • setReasonForUseCodeableConcept

        public void setReasonForUseCodeableConcept​(CodeableConcept value)
        Sets the value of the reasonForUseCodeableConcept property.
        Parameters:
        value - allowed object is CodeableConcept
      • getReasonForUseReference

        public Reference getReasonForUseReference()
        Gets the value of the reasonForUseReference property.
        Returns:
        possible object is Reference
      • setReasonForUseReference

        public void setReasonForUseReference​(Reference value)
        Sets the value of the reasonForUseReference property.
        Parameters:
        value - allowed object is Reference
      • 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 set method 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

      • getDosage

        public java.util.List<MedicationStatementDosage> getDosage()
        Gets the value of the dosage 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 set method for the dosage property.

        For example, to add a new item, do as follows:

            getDosage().add(newItem);
         

        Objects of the following type(s) are allowed in the list MedicationStatementDosage

      • 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:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class DomainResource
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class DomainResource
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class DomainResource
      • 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:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class DomainResource
      • 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:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class DomainResource