Package org.hl7.fhir.dstu2.model
Class Device
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevice.DeviceStatusstatic classDevice.DeviceStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected List<ContactPoint>contactContact details for an organization or a particular human that is responsible for the device.protected DateTimeTypeexpiryThe date and time beyond which this device is no longer valid or should not be used (if applicable).protected List<Identifier>identifierUnique instance identifiers assigned to a device by organizations like manufacturers or owners.protected ReferencelocationThe place where the device can be found.protected LocationlocationTargetThe actual object that is the target of the reference (The place where the device can be found.)protected StringTypelotNumberLot number assigned by the manufacturer.protected DateTimeTypemanufactureDateThe date and time when the device was manufactured.protected StringTypemanufacturerA name of the manufacturer.protected StringTypemodelThe "model" is an identifier assigned by the manufacturer to identify the product by its type.protected List<Annotation>noteDescriptive information, usage information or implantation information that is not captured in an existing element.protected ReferenceownerAn organization that is responsible for the provision and ongoing maintenance of the device.protected OrganizationownerTargetThe actual object that is the target of the reference (An organization that is responsible for the provision and ongoing maintenance of the device.)protected ReferencepatientPatient information, if the resource is affixed to a person.protected PatientpatientTargetThe actual object that is the target of the reference (Patient information, if the resource is affixed to a person.)static StringSP_IDENTIFIERstatic StringSP_LOCATIONstatic StringSP_MANUFACTURERstatic StringSP_MODELstatic StringSP_ORGANIZATIONstatic StringSP_PATIENTstatic StringSP_TYPEstatic StringSP_UDIstatic StringSP_URLprotected Enumeration<Device.DeviceStatus>statusStatus of the Device availability.protected CodeableConcepttypeCode or identifier to identify a kind of device.protected StringTypeudiUnited States Food and Drug Administration mandated Unique Device Identifier (UDI).protected UriTypeurlA network address on which the device may be contacted directly.protected StringTypeversionThe version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Device()Device(CodeableConcept type)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> 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.
-
type
protected CodeableConcept type
Code or identifier to identify a kind of device.
-
note
protected List<Annotation> note
Descriptive information, usage information or implantation information that is not captured in an existing element.
-
status
protected Enumeration<Device.DeviceStatus> status
Status of the Device availability.
-
manufacturer
protected StringType manufacturer
A name of the manufacturer.
-
model
protected StringType 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.
-
version
protected StringType 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.
-
manufactureDate
protected DateTimeType manufactureDate
The date and time when the device was manufactured.
-
expiry
protected DateTimeType expiry
The date and time beyond which this device is no longer valid or should not be used (if applicable).
-
udi
protected StringType 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.
-
lotNumber
protected StringType lotNumber
Lot number assigned by the manufacturer.
-
owner
protected Reference owner
An organization that is responsible for the provision and ongoing maintenance of the device.
-
ownerTarget
protected Organization ownerTarget
The actual object that is the target of the reference (An organization that is responsible for the provision and ongoing maintenance of the device.)
-
locationTarget
protected Location locationTarget
The actual object that is the target of the reference (The place where the device can be found.)
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (Patient information, if the resource is affixed to a person.)
-
contact
protected List<ContactPoint> contact
Contact details for an organization or a particular human that is responsible for the device.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_ORGANIZATION
public static final String SP_ORGANIZATION
- See Also:
- Constant Field Values
-
SP_MODEL
public static final String SP_MODEL
- See Also:
- Constant Field Values
-
SP_LOCATION
public static final String SP_LOCATION
- See Also:
- Constant Field Values
-
SP_UDI
public static final String SP_UDI
- See Also:
- Constant Field Values
-
SP_TYPE
public static final String SP_TYPE
- See Also:
- Constant Field Values
-
SP_URL
public static final String SP_URL
- See Also:
- Constant Field Values
-
SP_MANUFACTURER
public static final String SP_MANUFACTURER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Device
public Device()
-
Device
public Device(CodeableConcept type)
-
-
Method Detail
-
getIdentifier
public List<Identifier> 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
public Identifier 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
public Device addIdentifier(Identifier t)
-
getType
public CodeableConcept 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
public Device addNote(Annotation t)
-
getStatusElement
public Enumeration<Device.DeviceStatus> 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
public Device setStatusElement(Enumeration<Device.DeviceStatus> value)
- 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
public Device.DeviceStatus getStatus()
- Returns:
- Status of the Device availability.
-
setStatus
public Device setStatus(Device.DeviceStatus value)
- Parameters:
value- Status of the Device availability.
-
getManufacturerElement
public StringType 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
public Device setManufacturerElement(StringType value)
- 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
public String getManufacturer()
- Returns:
- A name of the manufacturer.
-
setManufacturer
public Device setManufacturer(String value)
- Parameters:
value- A name of the manufacturer.
-
getModelElement
public StringType 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
public Device setModelElement(StringType value)
- 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
public StringType 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
public Device setVersionElement(StringType value)
- 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
public DateTimeType 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
public Device setManufactureDateElement(DateTimeType value)
- 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
public Date 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
public DateTimeType 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
public Device setExpiryElement(DateTimeType value)
- 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
public StringType 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
public Device setUdiElement(StringType value)
- 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
public StringType 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
public Device setLotNumberElement(StringType value)
- 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
public Organization getOwnerTarget()
- Returns:
ownerThe 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
public Device setOwnerTarget(Organization value)
- Parameters:
value-ownerThe 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
public Reference 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
public Location getLocationTarget()
- Returns:
locationThe 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
public Device setLocationTarget(Location value)
- Parameters:
value-locationThe 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
public Reference 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
public Patient getPatientTarget()
- Returns:
patientThe 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
public Device setPatientTarget(Patient value)
- Parameters:
value-patientThe 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
public List<ContactPoint> getContact()
- Returns:
contact(Contact details for an organization or a particular human that is responsible for the device.)
-
hasContact
public boolean hasContact()
-
addContact
public ContactPoint addContact()
- Returns:
contact(Contact details for an organization or a particular human that is responsible for the device.)
-
addContact
public Device addContact(ContactPoint t)
-
getUrlElement
public UriType 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:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Device copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-