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>
 
  • Field Details

  • Constructor Details

    • Device

      public Device()
  • Method Details

    • getIdentifier

      public 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 Jakarta XML Binding 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
    • getType

      public CodeableConcept getType()
      Gets the value of the type property.
      Returns:
      possible object is CodeableConcept
    • setType

      public void setType(CodeableConcept value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is CodeableConcept
    • 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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(Identifier... values)
    • withIdentifier

      public Device withIdentifier(Collection<Identifier> values)
    • withUdiCarrier

      public Device withUdiCarrier(Identifier value)
    • withStatus

      public Device withStatus(DeviceStatus value)
    • withType

      public Device withType(CodeableConcept value)
    • withLotNumber

      public Device withLotNumber(String value)
    • withManufacturer

      public Device withManufacturer(String value)
    • withManufactureDate

      public Device withManufactureDate(DateTime value)
    • withExpirationDate

      public Device withExpirationDate(DateTime value)
    • withModel

      public Device withModel(String value)
    • withVersion

      public Device withVersion(String value)
    • withPatient

      public Device withPatient(Reference value)
    • withOwner

      public Device withOwner(Reference value)
    • withContact

      public Device withContact(ContactPoint... values)
    • withContact

      public Device withContact(Collection<ContactPoint> values)
    • withLocation

      public Device withLocation(Reference value)
    • withUrl

      public Device withUrl(Uri value)
    • withNote

      public Device withNote(Annotation... values)
    • withNote

      public Device withNote(Collection<Annotation> values)
    • withText

      public Device withText(Narrative value)
      Overrides:
      withText in class DomainResource
    • withContained

      public Device withContained(ResourceContainer... values)
      Overrides:
      withContained in class DomainResource
    • withContained

      public Device withContained(Collection<ResourceContainer> values)
      Overrides:
      withContained in class DomainResource
    • withExtension

      public Device withExtension(Extension... values)
      Overrides:
      withExtension in class DomainResource
    • withExtension

      public Device withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class DomainResource
    • withModifierExtension

      public Device withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class DomainResource
    • withModifierExtension

      public Device withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class DomainResource
    • withId

      public Device withId(Id value)
      Overrides:
      withId in class DomainResource
    • withMeta

      public Device withMeta(Meta value)
      Overrides:
      withMeta in class DomainResource
    • withImplicitRules

      public Device withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class DomainResource
    • withLanguage

      public Device withLanguage(Code value)
      Overrides:
      withLanguage in class DomainResource
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, 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(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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DomainResource
    • toString

      public String toString()
      Overrides:
      toString in class DomainResource
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, 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 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, 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
    • setIdentifier

      public void setIdentifier(List<Identifier> value)
    • setContact

      public void setContact(List<ContactPoint> value)
    • setNote

      public void setNote(List<Annotation> value)