Class DeviceRequest
- 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.DeviceRequest
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class DeviceRequest extends DomainResource
Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker.Maturity level: FMM1 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeviceRequest.Builder
static class
DeviceRequest.Parameter
Specific parameters for the ordered item.
-
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 DeviceRequest.Builder
builder()
boolean
equals(java.lang.Object obj)
DateTime
getAuthoredOn()
When the request transitioned to being actionable.java.util.List<Reference>
getBasedOn()
Plan/proposal/order fulfilled by this request.Element
getCode()
The details of the device to be used.Reference
getEncounter()
An encounter that provides additional context in which this request is made.Identifier
getGroupIdentifier()
Composite request this is part of.java.util.List<Identifier>
getIdentifier()
Identifiers assigned to this order by the orderer or by the receiver.java.util.List<Canonical>
getInstantiatesCanonical()
The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.java.util.List<Uri>
getInstantiatesUri()
The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.java.util.List<Reference>
getInsurance()
Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.RequestIntent
getIntent()
Whether the request is a proposal, plan, an original order or a reflex order.java.util.List<Annotation>
getNote()
Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class.Element
getOccurrence()
The timing schedule for the use of the device.java.util.List<DeviceRequest.Parameter>
getParameter()
Specific parameters for the ordered item.Reference
getPerformer()
The desired performer for doing the diagnostic testing.CodeableConcept
getPerformerType()
Desired type of performer for doing the diagnostic testing.RequestPriority
getPriority()
Indicates how quickly the {{title}} should be addressed with respect to other requests.java.util.List<Reference>
getPriorRequest()
The request takes the place of the referenced completed or terminated request(s).java.util.List<CodeableConcept>
getReasonCode()
Reason or justification for the use of this device.java.util.List<Reference>
getReasonReference()
Reason or justification for the use of this device.java.util.List<Reference>
getRelevantHistory()
Key events in the history of the request.Reference
getRequester()
The individual who initiated the request and has responsibility for its activation.DeviceRequestStatus
getStatus()
The status of the request.Reference
getSubject()
The patient who will use the device.java.util.List<Reference>
getSupportingInfo()
Additional clinical information about the patient that may influence the request fulfilment.boolean
hasChildren()
int
hashCode()
DeviceRequest.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()
Identifiers assigned to this order by the orderer or by the receiver.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getInstantiatesCanonical
public java.util.List<Canonical> getInstantiatesCanonical()
The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.- Returns:
- An unmodifiable list containing immutable objects of type
Canonical
that may be empty.
-
getInstantiatesUri
public java.util.List<Uri> getInstantiatesUri()
The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.- Returns:
- An unmodifiable list containing immutable objects of type
Uri
that may be empty.
-
getBasedOn
public java.util.List<Reference> getBasedOn()
Plan/proposal/order fulfilled by this request.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getPriorRequest
public java.util.List<Reference> getPriorRequest()
The request takes the place of the referenced completed or terminated request(s).- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getGroupIdentifier
public Identifier getGroupIdentifier()
Composite request this is part of.- Returns:
- An immutable object of type
Identifier
that may be null.
-
getStatus
public DeviceRequestStatus getStatus()
The status of the request.- Returns:
- An immutable object of type
DeviceRequestStatus
that may be null.
-
getIntent
public RequestIntent getIntent()
Whether the request is a proposal, plan, an original order or a reflex order.- Returns:
- An immutable object of type
RequestIntent
that is non-null.
-
getPriority
public RequestPriority getPriority()
Indicates how quickly the {{title}} should be addressed with respect to other requests.- Returns:
- An immutable object of type
RequestPriority
that may be null.
-
getCode
public Element getCode()
The details of the device to be used.- Returns:
- An immutable object of type
Reference
orCodeableConcept
that is non-null.
-
getParameter
public java.util.List<DeviceRequest.Parameter> getParameter()
Specific parameters for the ordered item. For example, the prism value for lenses.- Returns:
- An unmodifiable list containing immutable objects of type
DeviceRequest.Parameter
that may be empty.
-
getSubject
public Reference getSubject()
The patient who will use the device.- Returns:
- An immutable object of type
Reference
that is non-null.
-
getEncounter
public Reference getEncounter()
An encounter that provides additional context in which this request is made.- Returns:
- An immutable object of type
Reference
that may be null.
-
getOccurrence
public Element getOccurrence()
The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".
-
getAuthoredOn
public DateTime getAuthoredOn()
When the request transitioned to being actionable.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getRequester
public Reference getRequester()
The individual who initiated the request and has responsibility for its activation.- Returns:
- An immutable object of type
Reference
that may be null.
-
getPerformerType
public CodeableConcept getPerformerType()
Desired type of performer for doing the diagnostic testing.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getPerformer
public Reference getPerformer()
The desired performer for doing the diagnostic testing.- Returns:
- An immutable object of type
Reference
that may be null.
-
getReasonCode
public java.util.List<CodeableConcept> getReasonCode()
Reason or justification for the use of this device.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConcept
that may be empty.
-
getReasonReference
public java.util.List<Reference> getReasonReference()
Reason or justification for the use of this device.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getInsurance
public java.util.List<Reference> getInsurance()
Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getSupportingInfo
public java.util.List<Reference> getSupportingInfo()
Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getNote
public java.util.List<Annotation> getNote()
Details about this request 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.
-
getRelevantHistory
public java.util.List<Reference> getRelevantHistory()
Key events in the history of the request.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
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 DeviceRequest.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 DeviceRequest.Builder builder()
-
-