Package com.ibm.fhir.model.resource
Class DeviceUseStatement
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.DeviceUseStatement
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class DeviceUseStatement extends DomainResource
A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.Maturity level: FMM0 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeviceUseStatement.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static DeviceUseStatement.Builder
builder()
boolean
equals(Object obj)
List<Reference>
getBasedOn()
A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement.CodeableConcept
getBodySite()
Indicates the anotomic location on the subject's body where the device was used ( i.e.List<Reference>
getDerivedFrom()
Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement.Reference
getDevice()
The details of the device used.List<Identifier>
getIdentifier()
An external identifier for this statement such as an IRI.List<Annotation>
getNote()
Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class.List<CodeableConcept>
getReasonCode()
Reason or justification for the use of the device.List<Reference>
getReasonReference()
Indicates another resource whose existence justifies this DeviceUseStatement.DateTime
getRecordedOn()
The time at which the statement was made/recorded.Reference
getSource()
Who reported the device was being used by the patient.DeviceUseStatementStatus
getStatus()
A code representing the patient or other source's judgment about the state of the device used that this statement is about.Reference
getSubject()
The patient who used the device.Element
getTiming()
How often the device was used.boolean
hasChildren()
int
hashCode()
DeviceUseStatement.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
An external identifier for this statement such as an IRI.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getBasedOn
public List<Reference> getBasedOn()
A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getStatus
public DeviceUseStatementStatus getStatus()
A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed.- Returns:
- An immutable object of type
DeviceUseStatementStatus
that is non-null.
-
getSubject
public Reference getSubject()
The patient who used the device.- Returns:
- An immutable object of type
Reference
that is non-null.
-
getDerivedFrom
public List<Reference> getDerivedFrom()
Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getTiming
public Element getTiming()
How often the device was used.- Returns:
- An immutable object of type
Element
that may be null.
-
getRecordedOn
public DateTime getRecordedOn()
The time at which the statement was made/recorded.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getSource
public Reference getSource()
Who reported the device was being used by the patient.- Returns:
- An immutable object of type
Reference
that may be null.
-
getDevice
public Reference getDevice()
The details of the device used.- Returns:
- An immutable object of type
Reference
that is non-null.
-
getReasonCode
public List<CodeableConcept> getReasonCode()
Reason or justification for the use of the device.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConcept
that may be empty.
-
getReasonReference
public List<Reference> getReasonReference()
Indicates another resource whose existence justifies this DeviceUseStatement.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getBodySite
public CodeableConcept getBodySite()
Indicates the anotomic location on the subject's body where the device was used ( i.e. the target).- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getNote
public List<Annotation> getNote()
Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
toBuilder
public DeviceUseStatement.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static DeviceUseStatement.Builder builder()
-
-