Class DeviceUseStatement
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.DeviceUseStatement
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.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 org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static DeviceUseStatement.Builder
builder()
boolean
equals(java.lang.Object obj)
java.util.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.java.util.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.java.util.List<Identifier>
getIdentifier()
An external identifier for this statement such as an IRI.java.util.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.java.util.List<CodeableConcept>
getReasonCode()
Reason or justification for the use of the device.java.util.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 org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public java.util.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 java.util.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 java.util.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.
-
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 java.util.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 java.util.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 java.util.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(java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
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()
-
-