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 classDeviceUseStatement.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 voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static DeviceUseStatement.Builderbuilder()booleanequals(Object obj)List<Reference>getBasedOn()A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement.CodeableConceptgetBodySite()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.ReferencegetDevice()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.DateTimegetRecordedOn()The time at which the statement was made/recorded.ReferencegetSource()Who reported the device was being used by the patient.DeviceUseStatementStatusgetStatus()A code representing the patient or other source's judgment about the state of the device used that this statement is about.ReferencegetSubject()The patient who used the device.ElementgetTiming()How often the device was used.booleanhasChildren()inthashCode()DeviceUseStatement.BuildertoBuilder()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
Identifierthat 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
Referencethat 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
DeviceUseStatementStatusthat is non-null.
-
getSubject
public Reference getSubject()
The patient who used the device.- Returns:
- An immutable object of type
Referencethat 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
Referencethat may be empty.
-
getTiming
public Element getTiming()
How often the device was used.- Returns:
- An immutable object of type
Elementthat may be null.
-
getRecordedOn
public DateTime getRecordedOn()
The time at which the statement was made/recorded.- Returns:
- An immutable object of type
DateTimethat may be null.
-
getSource
public Reference getSource()
Who reported the device was being used by the patient.- Returns:
- An immutable object of type
Referencethat may be null.
-
getDevice
public Reference getDevice()
The details of the device used.- Returns:
- An immutable object of type
Referencethat 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
CodeableConceptthat 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
Referencethat 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
CodeableConceptthat 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
Annotationthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept 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:
acceptin interfaceVisitable- Specified by:
acceptin 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:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static DeviceUseStatement.Builder builder()
-
-