Class Device
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.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 extensionsJava 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 Summary
Fields Modifier and Type Field Description protected java.util.List<ContactPoint>contactprotected DateTimeexpirationDateprotected java.util.List<Identifier>identifierprotected Referencelocationprotected StringlotNumberprotected DateTimemanufactureDateprotected Stringmanufacturerprotected Stringmodelprotected java.util.List<Annotation>noteprotected Referenceownerprotected Referencepatientprotected DeviceStatusstatusprotected CodeableConcepttypeprotected IdentifierudiCarrierprotected Uriurlprotected Stringversion-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(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)java.util.List<ContactPoint>getContact()Gets the value of the contact property.DateTimegetExpirationDate()Gets the value of the expirationDate property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.ReferencegetLocation()Gets the value of the location property.StringgetLotNumber()Gets the value of the lotNumber property.DateTimegetManufactureDate()Gets the value of the manufactureDate property.StringgetManufacturer()Gets the value of the manufacturer property.StringgetModel()Gets the value of the model property.java.util.List<Annotation>getNote()Gets the value of the note property.ReferencegetOwner()Gets the value of the owner property.ReferencegetPatient()Gets the value of the patient property.DeviceStatusgetStatus()Gets the value of the status property.CodeableConceptgetType()Gets the value of the type property.IdentifiergetUdiCarrier()Gets the value of the udiCarrier property.UrigetUrl()Gets the value of the url property.StringgetVersion()Gets the value of the version property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetExpirationDate(DateTime value)Sets the value of the expirationDate property.voidsetLocation(Reference value)Sets the value of the location property.voidsetLotNumber(String value)Sets the value of the lotNumber property.voidsetManufactureDate(DateTime value)Sets the value of the manufactureDate property.voidsetManufacturer(String value)Sets the value of the manufacturer property.voidsetModel(String value)Sets the value of the model property.voidsetOwner(Reference value)Sets the value of the owner property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetStatus(DeviceStatus value)Sets the value of the status property.voidsetType(CodeableConcept value)Sets the value of the type property.voidsetUdiCarrier(Identifier value)Sets the value of the udiCarrier property.voidsetUrl(Uri value)Sets the value of the url property.voidsetVersion(String value)Sets the value of the version property.java.lang.StringtoString()DevicewithContact(java.util.Collection<ContactPoint> values)DevicewithContact(ContactPoint... values)DevicewithContained(java.util.Collection<ResourceContainer> values)DevicewithContained(ResourceContainer... values)DevicewithExpirationDate(DateTime value)DevicewithExtension(java.util.Collection<Extension> values)DevicewithExtension(Extension... values)DevicewithId(Id value)DevicewithIdentifier(java.util.Collection<Identifier> values)DevicewithIdentifier(Identifier... values)DevicewithImplicitRules(Uri value)DevicewithLanguage(Code value)DevicewithLocation(Reference value)DevicewithLotNumber(String value)DevicewithManufactureDate(DateTime value)DevicewithManufacturer(String value)DevicewithMeta(Meta value)DevicewithModel(String value)DevicewithModifierExtension(java.util.Collection<Extension> values)DevicewithModifierExtension(Extension... values)DevicewithNote(java.util.Collection<Annotation> values)DevicewithNote(Annotation... values)DevicewithOwner(Reference value)DevicewithPatient(Reference value)DevicewithStatus(DeviceStatus value)DevicewithText(Narrative value)DevicewithType(CodeableConcept value)DevicewithUdiCarrier(Identifier value)DevicewithUrl(Uri value)DevicewithVersion(String value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
udiCarrier
protected Identifier udiCarrier
-
status
protected DeviceStatus status
-
type
protected CodeableConcept type
-
lotNumber
protected String lotNumber
-
manufacturer
protected String manufacturer
-
manufactureDate
protected DateTime manufactureDate
-
expirationDate
protected DateTime expirationDate
-
model
protected String model
-
version
protected String version
-
patient
protected Reference patient
-
owner
protected Reference owner
-
contact
protected java.util.List<ContactPoint> contact
-
location
protected Reference location
-
url
protected Uri url
-
note
protected java.util.List<Annotation> note
-
-
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
setmethod 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 isIdentifier
-
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 isDeviceStatus
-
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 isCodeableConcept
-
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 isString
-
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 isString
-
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 isDateTime
-
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 isDateTime
-
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 isString
-
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 isString
-
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 isReference
-
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 isReference
-
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
setmethod 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 isReference
-
setUrl
public void setUrl(Uri value)
Sets the value of the url property.- Parameters:
value- allowed object isUri
-
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
setmethod 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(java.util.Collection<Identifier> values)
-
withUdiCarrier
public Device withUdiCarrier(Identifier value)
-
withStatus
public Device withStatus(DeviceStatus value)
-
withType
public Device withType(CodeableConcept value)
-
withContact
public Device withContact(ContactPoint... values)
-
withContact
public Device withContact(java.util.Collection<ContactPoint> values)
-
withNote
public Device withNote(Annotation... values)
-
withNote
public Device withNote(java.util.Collection<Annotation> values)
-
withText
public Device withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Device withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Device withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Device withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Device withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Device withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Device withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Device withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Device withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Device withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Device withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
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:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
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:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
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:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-