Class Order
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.Order
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class Order extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Order Resource (workflow.order)Definition: A request to perform an action.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Order
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrder.WhenBlock class for child element: Order.when ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.DateClientParamDATEFluent Client search parameter constant for datestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamDETAILFluent Client search parameter constant for detailstatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_DETAILConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SOURCEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_TARGETConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourcestatic StringSP_DATESearch parameter constant for datestatic StringSP_DETAILSearch parameter constant for detailstatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_SOURCESearch parameter constant for sourcestatic StringSP_SUBJECTSearch parameter constant for subjectstatic StringSP_TARGETSearch parameter constant for targetstatic StringSP_WHENSearch parameter constant for whenstatic StringSP_WHEN_CODESearch parameter constant for when_codestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamTARGETFluent Client search parameter constant for targetstatic ca.uhn.fhir.rest.gclient.DateClientParamWHENFluent Client search parameter constant for whenstatic ca.uhn.fhir.rest.gclient.TokenClientParamWHEN_CODEFluent Client search parameter constant for when_code-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Order()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferenceDtaddDetail()Adds and returns a new value for detail ()IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)OrderaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)DategetDate()Gets the value(s) for date (when.done).ca.uhn.fhir.model.primitive.DateTimeDtgetDateElement()Gets the value(s) for date (when.done).List<ResourceReferenceDt>getDetail()Gets the value(s) for detail ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.ca.uhn.fhir.model.api.IDatatypegetReason()Gets the value(s) for reason[x] (why).StringgetResourceName()ResourceReferenceDtgetSource()Gets the value(s) for source (who.cause).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject (who.focus).ResourceReferenceDtgetTarget()Gets the value(s) for target (who.actor).Order.WhengetWhen()Gets the value(s) for when ().booleanisEmpty()OrdersetDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for date (when.done)OrdersetDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for date (when.done)OrdersetDateWithSecondsPrecision(Date theDate)Sets the value for date (when.done)OrdersetDetail(List<ResourceReferenceDt> theValue)Sets the value(s) for detail ()OrdersetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)OrdersetReason(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for reason[x] (why)OrdersetSource(ResourceReferenceDt theValue)Sets the value(s) for source (who.cause)OrdersetSubject(ResourceReferenceDt theValue)Sets the value(s) for subject (who.focus)OrdersetTarget(ResourceReferenceDt theValue)Sets the value(s) for target (who.actor)OrdersetWhen(Order.When theValue)Sets the value(s) for when ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_DATE
public static final String SP_DATE
Search parameter constant for dateDescription:
Type: date
Path: Order.date
- See Also:
- Constant Field Values
-
DATE
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
Fluent Client search parameter constant for dateDescription:
Type: date
Path: Order.date
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: Order.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: Order.subject
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter constant for sourceDescription:
Type: reference
Path: Order.source
- See Also:
- Constant Field Values
-
SOURCE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE
Fluent Client search parameter constant for sourceDescription:
Type: reference
Path: Order.source
-
SP_TARGET
public static final String SP_TARGET
Search parameter constant for targetDescription:
Type: reference
Path: Order.target
- See Also:
- Constant Field Values
-
TARGET
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET
Fluent Client search parameter constant for targetDescription:
Type: reference
Path: Order.target
-
SP_WHEN_CODE
public static final String SP_WHEN_CODE
Search parameter constant for when_codeDescription:
Type: token
Path: Order.when.code
- See Also:
- Constant Field Values
-
WHEN_CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam WHEN_CODE
Fluent Client search parameter constant for when_codeDescription:
Type: token
Path: Order.when.code
-
SP_WHEN
public static final String SP_WHEN
Search parameter constant for whenDescription:
Type: date
Path: Order.when.schedule
- See Also:
- Constant Field Values
-
WHEN
public static final ca.uhn.fhir.rest.gclient.DateClientParam WHEN
Fluent Client search parameter constant for whenDescription:
Type: date
Path: Order.when.schedule
-
SP_DETAIL
public static final String SP_DETAIL
Search parameter constant for detailDescription:
Type: reference
Path: Order.detail
- See Also:
- Constant Field Values
-
DETAIL
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DETAIL
Fluent Client search parameter constant for detailDescription:
Type: reference
Path: Order.detail
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Order.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Order.subject
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription: Instance id from source, target, and/or others
Type: token
Path: Order.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Instance id from source, target, and/or others
Type: token
Path: Order.identifier
-
INCLUDE_DETAIL
public static final ca.uhn.fhir.model.api.Include INCLUDE_DETAIL
Constant for fluent queries to be used to add include statements. Specifies the path value of "Order:detail".
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Order:patient".
-
INCLUDE_SOURCE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Order:source".
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Order:subject".
-
INCLUDE_TARGET
public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET
Constant for fluent queries to be used to add include statements. Specifies the path value of "Order:target".
-
-
Constructor Detail
-
Order
public Order()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.Definition:
-
setIdentifier
public Order setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)Definition:
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier (id)Definition:
-
addIdentifier
public Order addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)Definition:
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition:
-
getDateElement
public ca.uhn.fhir.model.primitive.DateTimeDt getDateElement()
Gets the value(s) for date (when.done). creating it if it does not exist. Will not returnnull.Definition:
-
getDate
public Date getDate()
Gets the value(s) for date (when.done). creating it if it does not exist. This method may returnnull.Definition:
-
setDate
public Order setDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for date (when.done)Definition:
-
setDate
public Order setDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for date (when.done)Definition:
-
setDateWithSecondsPrecision
public Order setDateWithSecondsPrecision(Date theDate)
Sets the value for date (when.done)Definition:
-
getSubject
public ResourceReferenceDt getSubject()
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull.Definition:
-
setSubject
public Order setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (who.focus)Definition:
-
getSource
public ResourceReferenceDt getSource()
Gets the value(s) for source (who.cause). creating it if it does not exist. Will not returnnull.Definition:
-
setSource
public Order setSource(ResourceReferenceDt theValue)
Sets the value(s) for source (who.cause)Definition:
-
getTarget
public ResourceReferenceDt getTarget()
Gets the value(s) for target (who.actor). creating it if it does not exist. Will not returnnull.Definition:
-
setTarget
public Order setTarget(ResourceReferenceDt theValue)
Sets the value(s) for target (who.actor)Definition:
-
getReason
public ca.uhn.fhir.model.api.IDatatype getReason()
Gets the value(s) for reason[x] (why). creating it if it does not exist. Will not returnnull.Definition:
-
setReason
public Order setReason(ca.uhn.fhir.model.api.IDatatype theValue)
Sets the value(s) for reason[x] (why)Definition:
-
getWhen
public Order.When getWhen()
Gets the value(s) for when (). creating it if it does not exist. Will not returnnull.Definition:
-
setWhen
public Order setWhen(Order.When theValue)
Sets the value(s) for when ()Definition:
-
getDetail
public List<ResourceReferenceDt> getDetail()
Gets the value(s) for detail (). creating it if it does not exist. Will not returnnull.Definition:
-
setDetail
public Order setDetail(List<ResourceReferenceDt> theValue)
Sets the value(s) for detail ()Definition:
-
addDetail
public ResourceReferenceDt addDetail()
Adds and returns a new value for detail ()Definition:
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-