Class Device

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

public class Device extends DomainResource
This resource identifies an instance of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. Medical devices includes durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. Non-medical devices may include items such as a machine, cellphone, computer, application, etc.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (Unique instance identifiers assigned to a device by organizations like manufacturers or owners. If the identifier identifies the type of device, Device.type should be used.)
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

      Returns:
      identifier (Unique instance identifiers assigned to a device by organizations like manufacturers or owners. If the identifier identifies the type of device, Device.type should be used.)
    • addIdentifier

    • getType

      Returns:
      type (Code or identifier to identify a kind of device.)
    • hasType

      public boolean hasType()
    • setType

      public Device setType(CodeableConcept value)
      Parameters:
      value - type (Code or identifier to identify a kind of device.)
    • getNote

      public List<Annotation> getNote()
      Returns:
      note (Descriptive information, usage information or implantation information that is not captured in an existing element.)
    • hasNote

      public boolean hasNote()
    • addNote

      public Annotation addNote()
      Returns:
      note (Descriptive information, usage information or implantation information that is not captured in an existing element.)
    • addNote

    • getStatusElement

      Returns:
      status (Status of the Device availability.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • hasStatusElement

      public boolean hasStatusElement()
    • hasStatus

      public boolean hasStatus()
    • setStatusElement

      Parameters:
      value - status (Status of the Device availability.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • getStatus

      Returns:
      Status of the Device availability.
    • setStatus

      Parameters:
      value - Status of the Device availability.
    • getManufacturerElement

      Returns:
      manufacturer (A name of the manufacturer.). This is the underlying object with id, value and extensions. The accessor "getManufacturer" gives direct access to the value
    • hasManufacturerElement

      public boolean hasManufacturerElement()
    • hasManufacturer

      public boolean hasManufacturer()
    • setManufacturerElement

      Parameters:
      value - manufacturer (A name of the manufacturer.). This is the underlying object with id, value and extensions. The accessor "getManufacturer" gives direct access to the value
    • getManufacturer

      Returns:
      A name of the manufacturer.
    • setManufacturer

      public Device setManufacturer(String value)
      Parameters:
      value - A name of the manufacturer.
    • getModelElement

      Returns:
      model (The "model" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.). This is the underlying object with id, value and extensions. The accessor "getModel" gives direct access to the value
    • hasModelElement

      public boolean hasModelElement()
    • hasModel

      public boolean hasModel()
    • setModelElement

      Parameters:
      value - model (The "model" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.). This is the underlying object with id, value and extensions. The accessor "getModel" gives direct access to the value
    • getModel

      public String getModel()
      Returns:
      The "model" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.
    • setModel

      public Device setModel(String value)
      Parameters:
      value - The "model" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.
    • getVersionElement

      Returns:
      version (The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
    • hasVersionElement

      public boolean hasVersionElement()
    • hasVersion

      public boolean hasVersion()
    • setVersionElement

      Parameters:
      value - version (The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
    • getVersion

      public String getVersion()
      Returns:
      The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.
    • setVersion

      public Device setVersion(String value)
      Parameters:
      value - The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.
    • getManufactureDateElement

      Returns:
      manufactureDate (The date and time when the device was manufactured.). This is the underlying object with id, value and extensions. The accessor "getManufactureDate" gives direct access to the value
    • hasManufactureDateElement

      public boolean hasManufactureDateElement()
    • hasManufactureDate

      public boolean hasManufactureDate()
    • setManufactureDateElement

      Parameters:
      value - manufactureDate (The date and time when the device was manufactured.). This is the underlying object with id, value and extensions. The accessor "getManufactureDate" gives direct access to the value
    • getManufactureDate

      Returns:
      The date and time when the device was manufactured.
    • setManufactureDate

      public Device setManufactureDate(Date value)
      Parameters:
      value - The date and time when the device was manufactured.
    • getExpiryElement

      Returns:
      expiry (The date and time beyond which this device is no longer valid or should not be used (if applicable).). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value
    • hasExpiryElement

      public boolean hasExpiryElement()
    • hasExpiry

      public boolean hasExpiry()
    • setExpiryElement

      Parameters:
      value - expiry (The date and time beyond which this device is no longer valid or should not be used (if applicable).). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value
    • getExpiry

      public Date getExpiry()
      Returns:
      The date and time beyond which this device is no longer valid or should not be used (if applicable).
    • setExpiry

      public Device setExpiry(Date value)
      Parameters:
      value - The date and time beyond which this device is no longer valid or should not be used (if applicable).
    • getUdiElement

      Returns:
      udi (United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.). This is the underlying object with id, value and extensions. The accessor "getUdi" gives direct access to the value
    • hasUdiElement

      public boolean hasUdiElement()
    • hasUdi

      public boolean hasUdi()
    • setUdiElement

      Parameters:
      value - udi (United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.). This is the underlying object with id, value and extensions. The accessor "getUdi" gives direct access to the value
    • getUdi

      public String getUdi()
      Returns:
      United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.
    • setUdi

      public Device setUdi(String value)
      Parameters:
      value - United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.
    • getLotNumberElement

      Returns:
      lotNumber (Lot number assigned by the manufacturer.). This is the underlying object with id, value and extensions. The accessor "getLotNumber" gives direct access to the value
    • hasLotNumberElement

      public boolean hasLotNumberElement()
    • hasLotNumber

      public boolean hasLotNumber()
    • setLotNumberElement

      Parameters:
      value - lotNumber (Lot number assigned by the manufacturer.). This is the underlying object with id, value and extensions. The accessor "getLotNumber" gives direct access to the value
    • getLotNumber

      public String getLotNumber()
      Returns:
      Lot number assigned by the manufacturer.
    • setLotNumber

      public Device setLotNumber(String value)
      Parameters:
      value - Lot number assigned by the manufacturer.
    • getOwner

      public Reference getOwner()
      Returns:
      owner (An organization that is responsible for the provision and ongoing maintenance of the device.)
    • hasOwner

      public boolean hasOwner()
    • setOwner

      public Device setOwner(Reference value)
      Parameters:
      value - owner (An organization that is responsible for the provision and ongoing maintenance of the device.)
    • getOwnerTarget

      Returns:
      owner The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (An organization that is responsible for the provision and ongoing maintenance of the device.)
    • setOwnerTarget

      Parameters:
      value - owner The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (An organization that is responsible for the provision and ongoing maintenance of the device.)
    • getLocation

      Returns:
      location (The place where the device can be found.)
    • hasLocation

      public boolean hasLocation()
    • setLocation

      public Device setLocation(Reference value)
      Parameters:
      value - location (The place where the device can be found.)
    • getLocationTarget

      Returns:
      location The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The place where the device can be found.)
    • setLocationTarget

      Parameters:
      value - location The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The place where the device can be found.)
    • getPatient

      Returns:
      patient (Patient information, if the resource is affixed to a person.)
    • hasPatient

      public boolean hasPatient()
    • setPatient

      public Device setPatient(Reference value)
      Parameters:
      value - patient (Patient information, if the resource is affixed to a person.)
    • getPatientTarget

      Returns:
      patient The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Patient information, if the resource is affixed to a person.)
    • setPatientTarget

      Parameters:
      value - patient The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Patient information, if the resource is affixed to a person.)
    • getContact

      Returns:
      contact (Contact details for an organization or a particular human that is responsible for the device.)
    • hasContact

      public boolean hasContact()
    • addContact

      Returns:
      contact (Contact details for an organization or a particular human that is responsible for the device.)
    • addContact

    • getUrlElement

      Returns:
      url (A network address on which the device may be contacted directly.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
    • hasUrlElement

      public boolean hasUrlElement()
    • hasUrl

      public boolean hasUrl()
    • setUrlElement

      public Device setUrlElement(UriType value)
      Parameters:
      value - url (A network address on which the device may be contacted directly.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
    • getUrl

      public String getUrl()
      Returns:
      A network address on which the device may be contacted directly.
    • setUrl

      public Device setUrl(String value)
      Parameters:
      value - A network address on which the device may be contacted directly.
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class DomainResource
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public Device copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected Device typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource