Package org.hl7.fhir.dstu2.model
Class Order
-
- 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 Order extends DomainResource
A request to perform an action.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrder.OrderWhenComponent
-
Field Summary
Fields Modifier and Type Field Description protected DateTimeTypedateWhen the order was made.protected List<Reference>detailWhat action is being ordered.protected List<Resource>detailTargetThe actual objects that are the target of the reference (What action is being ordered.)protected List<Identifier>identifierIdentifiers assigned to this order by the orderer or by the receiver.protected TypereasonText - why the order was made.protected ReferencesourceWho initiated the order.protected ResourcesourceTargetThe actual object that is the target of the reference (Who initiated the order.)static StringSP_DATEstatic StringSP_DETAILstatic StringSP_IDENTIFIERstatic StringSP_PATIENTstatic StringSP_SOURCEstatic StringSP_SUBJECTstatic StringSP_TARGETstatic StringSP_WHENstatic StringSP_WHENCODEprotected ReferencesubjectPatient this order is about.protected ResourcesubjectTargetThe actual object that is the target of the reference (Patient this order is about.)protected ReferencetargetWho is intended to fulfill the order.protected ResourcetargetTargetThe actual object that is the target of the reference (Who is intended to fulfill the order.)protected Order.OrderWhenComponentwhenWhen order should be fulfilled.-
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 Order()
-
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
Identifiers assigned to this order by the orderer or by the receiver.
-
date
protected DateTimeType date
When the order was made.
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (Patient this order is about.)
-
sourceTarget
protected Resource sourceTarget
The actual object that is the target of the reference (Who initiated the order.)
-
targetTarget
protected Resource targetTarget
The actual object that is the target of the reference (Who is intended to fulfill the order.)
-
when
protected Order.OrderWhenComponent when
When order should be fulfilled.
-
detailTarget
protected List<Resource> detailTarget
The actual objects that are the target of the reference (What action is being ordered.)
-
SP_DATE
public static final String SP_DATE
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_SUBJECT
public static final String SP_SUBJECT
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_SOURCE
public static final String SP_SOURCE
- See Also:
- Constant Field Values
-
SP_DETAIL
public static final String SP_DETAIL
- See Also:
- Constant Field Values
-
SP_WHEN
public static final String SP_WHEN
- See Also:
- Constant Field Values
-
SP_TARGET
public static final String SP_TARGET
- See Also:
- Constant Field Values
-
SP_WHENCODE
public static final String SP_WHENCODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Order
public Order()
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Identifiers assigned to this order by the orderer or by the receiver.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Identifiers assigned to this order by the orderer or by the receiver.)
-
addIdentifier
public Order addIdentifier(Identifier t)
-
getDateElement
public DateTimeType getDateElement()
- Returns:
date(When the order was made.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
hasDateElement
public boolean hasDateElement()
-
hasDate
public boolean hasDate()
-
setDateElement
public Order setDateElement(DateTimeType value)
- Parameters:
value-date(When the order was made.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
getSubject
public Reference getSubject()
- Returns:
subject(Patient this order is about.)
-
hasSubject
public boolean hasSubject()
-
setSubject
public Order setSubject(Reference value)
- Parameters:
value-subject(Patient this order is about.)
-
getSubjectTarget
public Resource getSubjectTarget()
- Returns:
subjectThe 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 this order is about.)
-
setSubjectTarget
public Order setSubjectTarget(Resource value)
- Parameters:
value-subjectThe 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 this order is about.)
-
hasSource
public boolean hasSource()
-
setSource
public Order setSource(Reference value)
- Parameters:
value-source(Who initiated the order.)
-
getSourceTarget
public Resource getSourceTarget()
- Returns:
sourceThe 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. (Who initiated the order.)
-
setSourceTarget
public Order setSourceTarget(Resource value)
- Parameters:
value-sourceThe 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. (Who initiated the order.)
-
hasTarget
public boolean hasTarget()
-
setTarget
public Order setTarget(Reference value)
- Parameters:
value-target(Who is intended to fulfill the order.)
-
getTargetTarget
public Resource getTargetTarget()
- Returns:
targetThe 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. (Who is intended to fulfill the order.)
-
setTargetTarget
public Order setTargetTarget(Resource value)
- Parameters:
value-targetThe 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. (Who is intended to fulfill the order.)
-
getReasonCodeableConcept
public CodeableConcept getReasonCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reason(Text - why the order was made.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReasonCodeableConcept
public boolean hasReasonCodeableConcept()
-
getReasonReference
public Reference getReasonReference() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reason(Text - why the order was made.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReasonReference
public boolean hasReasonReference()
-
hasReason
public boolean hasReason()
-
setReason
public Order setReason(Type value)
- Parameters:
value-reason(Text - why the order was made.)
-
getWhen
public Order.OrderWhenComponent getWhen()
- Returns:
when(When order should be fulfilled.)
-
hasWhen
public boolean hasWhen()
-
setWhen
public Order setWhen(Order.OrderWhenComponent value)
- Parameters:
value-when(When order should be fulfilled.)
-
hasDetail
public boolean hasDetail()
-
getDetailTarget
public List<Resource> getDetailTarget()
- Returns:
detail(The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. What action is being ordered.)
-
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 Order 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
-
-