Package org.hl7.fhir

Class Device

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

    public class Device
    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 Device complex type.

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

     <complexType name="Device">
       <complexContent>
         <extension base="{http://hl7.org/fhir}DomainResource">
           <sequence>
             <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
             <element name="udiCarrier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
             <element name="status" type="{http://hl7.org/fhir}DeviceStatus" minOccurs="0"/>
             <element name="type" type="{http://hl7.org/fhir}CodeableConcept"/>
             <element name="lotNumber" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="manufacturer" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="manufactureDate" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
             <element name="expirationDate" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
             <element name="model" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="version" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="owner" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="contact" type="{http://hl7.org/fhir}ContactPoint" maxOccurs="unbounded" minOccurs="0"/>
             <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
             <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Device

        public Device()
    • 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

      • getUdiCarrier

        public Identifier getUdiCarrier()
        Gets the value of the udiCarrier property.
        Returns:
        possible object is Identifier
      • setUdiCarrier

        public void setUdiCarrier​(Identifier value)
        Sets the value of the udiCarrier property.
        Parameters:
        value - allowed object is Identifier
      • getStatus

        public DeviceStatus getStatus()
        Gets the value of the status property.
        Returns:
        possible object is DeviceStatus
      • setStatus

        public void setStatus​(DeviceStatus value)
        Sets the value of the status property.
        Parameters:
        value - allowed object is DeviceStatus
      • getLotNumber

        public String getLotNumber()
        Gets the value of the lotNumber property.
        Returns:
        possible object is String
      • setLotNumber

        public void setLotNumber​(String value)
        Sets the value of the lotNumber property.
        Parameters:
        value - allowed object is String
      • getManufacturer

        public String getManufacturer()
        Gets the value of the manufacturer property.
        Returns:
        possible object is String
      • setManufacturer

        public void setManufacturer​(String value)
        Sets the value of the manufacturer property.
        Parameters:
        value - allowed object is String
      • getManufactureDate

        public DateTime getManufactureDate()
        Gets the value of the manufactureDate property.
        Returns:
        possible object is DateTime
      • setManufactureDate

        public void setManufactureDate​(DateTime value)
        Sets the value of the manufactureDate property.
        Parameters:
        value - allowed object is DateTime
      • getExpirationDate

        public DateTime getExpirationDate()
        Gets the value of the expirationDate property.
        Returns:
        possible object is DateTime
      • setExpirationDate

        public void setExpirationDate​(DateTime value)
        Sets the value of the expirationDate property.
        Parameters:
        value - allowed object is DateTime
      • getModel

        public String getModel()
        Gets the value of the model property.
        Returns:
        possible object is String
      • setModel

        public void setModel​(String value)
        Sets the value of the model property.
        Parameters:
        value - allowed object is String
      • getVersion

        public String getVersion()
        Gets the value of the version property.
        Returns:
        possible object is String
      • setVersion

        public void setVersion​(String value)
        Sets the value of the version property.
        Parameters:
        value - allowed object is String
      • 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
      • getOwner

        public Reference getOwner()
        Gets the value of the owner property.
        Returns:
        possible object is Reference
      • setOwner

        public void setOwner​(Reference value)
        Sets the value of the owner property.
        Parameters:
        value - allowed object is Reference
      • getContact

        public java.util.List<ContactPoint> getContact()
        Gets the value of the contact 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 contact property.

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

            getContact().add(newItem);
         

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

      • getLocation

        public Reference getLocation()
        Gets the value of the location property.
        Returns:
        possible object is Reference
      • setLocation

        public void setLocation​(Reference value)
        Sets the value of the location property.
        Parameters:
        value - allowed object is Reference
      • getUrl

        public Uri getUrl()
        Gets the value of the url property.
        Returns:
        possible object is Uri
      • setUrl

        public void setUrl​(Uri value)
        Sets the value of the url property.
        Parameters:
        value - allowed object is Uri
      • 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

      • withIdentifier

        public Device withIdentifier​(java.util.Collection<Identifier> values)
      • withLotNumber

        public Device withLotNumber​(String value)
      • withManufacturer

        public Device withManufacturer​(String value)
      • withManufactureDate

        public Device withManufactureDate​(DateTime value)
      • withExpirationDate

        public Device withExpirationDate​(DateTime value)
      • withUrl

        public Device withUrl​(Uri value)
      • withNote

        public Device withNote​(java.util.Collection<Annotation> values)
      • 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