Package org.hl7.fhir.dstu2.model
Class DiagnosticOrder
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.DiagnosticOrder
-
- 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 DiagnosticOrder extends DomainResource
A record of a request for a diagnostic investigation service to be performed.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiagnosticOrder.DiagnosticOrderEventComponentstatic classDiagnosticOrder.DiagnosticOrderItemComponentstatic classDiagnosticOrder.DiagnosticOrderPrioritystatic classDiagnosticOrder.DiagnosticOrderPriorityEnumFactorystatic classDiagnosticOrder.DiagnosticOrderStatusstatic classDiagnosticOrder.DiagnosticOrderStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected ReferenceencounterAn encounter that provides additional information about the healthcare context in which this request is made.protected EncounterencounterTargetThe actual object that is the target of the reference (An encounter that provides additional information about the healthcare context in which this request is made.)protected List<DiagnosticOrder.DiagnosticOrderEventComponent>eventA summary of the events of interest that have occurred as the request is processed; e.g.protected List<Identifier>identifierIdentifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.protected List<DiagnosticOrder.DiagnosticOrderItemComponent>itemThe specific diagnostic investigations that are requested as part of this request.protected List<Annotation>noteAny other notes associated with this patient, specimen or order (e.g.protected ReferenceordererThe practitioner that holds legal responsibility for ordering the investigation.protected PractitionerordererTargetThe actual object that is the target of the reference (The practitioner that holds legal responsibility for ordering the investigation.)protected Enumeration<DiagnosticOrder.DiagnosticOrderPriority>priorityThe clinical priority associated with this order.protected List<CodeableConcept>reasonAn explanation or justification for why this diagnostic investigation is being requested.static StringSP_ACTORstatic StringSP_BODYSITEstatic StringSP_CODEstatic StringSP_ENCOUNTERstatic StringSP_EVENTDATEstatic StringSP_EVENTSTATUSstatic StringSP_EVENTSTATUSDATEstatic StringSP_IDENTIFIERstatic StringSP_ITEMDATEstatic StringSP_ITEMPASTSTATUSstatic StringSP_ITEMSTATUSstatic StringSP_ITEMSTATUSDATEstatic StringSP_ORDERERstatic StringSP_PATIENTstatic StringSP_SPECIMENstatic StringSP_STATUSstatic StringSP_SUBJECTprotected List<Reference>specimenOne or more specimens that the diagnostic investigation is about.protected List<Specimen>specimenTargetThe actual objects that are the target of the reference (One or more specimens that the diagnostic investigation is about.)protected Enumeration<DiagnosticOrder.DiagnosticOrderStatus>statusThe status of the order.protected ReferencesubjectWho or what the investigation is to be performed on.protected ResourcesubjectTargetThe actual object that is the target of the reference (Who or what the investigation is to be performed on.protected List<Reference>supportingInformationAdditional clinical information about the patient or specimen that may influence test interpretations.protected List<Resource>supportingInformationTargetThe actual objects that are the target of the reference (Additional clinical information about the patient or specimen that may influence test interpretations.-
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 DiagnosticOrder()DiagnosticOrder(Reference subject)
-
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
-
subject
protected Reference subject
Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
-
orderer
protected Reference orderer
The practitioner that holds legal responsibility for ordering the investigation.
-
ordererTarget
protected Practitioner ordererTarget
The actual object that is the target of the reference (The practitioner that holds legal responsibility for ordering the investigation.)
-
identifier
protected List<Identifier> identifier
Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.
-
encounter
protected Reference encounter
An encounter that provides additional information about the healthcare context in which this request is made.
-
encounterTarget
protected Encounter encounterTarget
The actual object that is the target of the reference (An encounter that provides additional information about the healthcare context in which this request is made.)
-
reason
protected List<CodeableConcept> reason
An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation.
-
supportingInformation
protected List<Reference> supportingInformation
Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.
-
supportingInformationTarget
protected List<Resource> supportingInformationTarget
The actual objects that are the target of the reference (Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.)
-
specimen
protected List<Reference> specimen
One or more specimens that the diagnostic investigation is about.
-
specimenTarget
protected List<Specimen> specimenTarget
The actual objects that are the target of the reference (One or more specimens that the diagnostic investigation is about.)
-
status
protected Enumeration<DiagnosticOrder.DiagnosticOrderStatus> status
The status of the order.
-
priority
protected Enumeration<DiagnosticOrder.DiagnosticOrderPriority> priority
The clinical priority associated with this order.
-
event
protected List<DiagnosticOrder.DiagnosticOrderEventComponent> event
A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.
-
item
protected List<DiagnosticOrder.DiagnosticOrderItemComponent> item
The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.
-
note
protected List<Annotation> note
Any other notes associated with this patient, specimen or order (e.g. "patient hates needles").
-
SP_ITEMPASTSTATUS
public static final String SP_ITEMPASTSTATUS
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_BODYSITE
public static final String SP_BODYSITE
- See Also:
- Constant Field Values
-
SP_CODE
public static final String SP_CODE
- See Also:
- Constant Field Values
-
SP_EVENTDATE
public static final String SP_EVENTDATE
- See Also:
- Constant Field Values
-
SP_EVENTSTATUSDATE
public static final String SP_EVENTSTATUSDATE
- See Also:
- Constant Field Values
-
SP_SUBJECT
public static final String SP_SUBJECT
- See Also:
- Constant Field Values
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
- See Also:
- Constant Field Values
-
SP_ACTOR
public static final String SP_ACTOR
- See Also:
- Constant Field Values
-
SP_ITEMDATE
public static final String SP_ITEMDATE
- See Also:
- Constant Field Values
-
SP_ITEMSTATUSDATE
public static final String SP_ITEMSTATUSDATE
- See Also:
- Constant Field Values
-
SP_EVENTSTATUS
public static final String SP_EVENTSTATUS
- See Also:
- Constant Field Values
-
SP_ITEMSTATUS
public static final String SP_ITEMSTATUS
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_ORDERER
public static final String SP_ORDERER
- See Also:
- Constant Field Values
-
SP_SPECIMEN
public static final String SP_SPECIMEN
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiagnosticOrder
public DiagnosticOrder()
-
DiagnosticOrder
public DiagnosticOrder(Reference subject)
-
-
Method Detail
-
getSubject
public Reference getSubject()
- Returns:
subject(Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
-
hasSubject
public boolean hasSubject()
-
setSubject
public DiagnosticOrder setSubject(Reference value)
- Parameters:
value-subject(Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
-
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. (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
-
setSubjectTarget
public DiagnosticOrder 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. (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
-
getOrderer
public Reference getOrderer()
- Returns:
orderer(The practitioner that holds legal responsibility for ordering the investigation.)
-
hasOrderer
public boolean hasOrderer()
-
setOrderer
public DiagnosticOrder setOrderer(Reference value)
- Parameters:
value-orderer(The practitioner that holds legal responsibility for ordering the investigation.)
-
getOrdererTarget
public Practitioner getOrdererTarget()
- Returns:
ordererThe 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. (The practitioner that holds legal responsibility for ordering the investigation.)
-
setOrdererTarget
public DiagnosticOrder setOrdererTarget(Practitioner value)
- Parameters:
value-ordererThe 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. (The practitioner that holds legal responsibility for ordering the investigation.)
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.)
-
addIdentifier
public DiagnosticOrder addIdentifier(Identifier t)
-
getEncounter
public Reference getEncounter()
- Returns:
encounter(An encounter that provides additional information about the healthcare context in which this request is made.)
-
hasEncounter
public boolean hasEncounter()
-
setEncounter
public DiagnosticOrder setEncounter(Reference value)
- Parameters:
value-encounter(An encounter that provides additional information about the healthcare context in which this request is made.)
-
getEncounterTarget
public Encounter getEncounterTarget()
- Returns:
encounterThe 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. (An encounter that provides additional information about the healthcare context in which this request is made.)
-
setEncounterTarget
public DiagnosticOrder setEncounterTarget(Encounter value)
- Parameters:
value-encounterThe 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. (An encounter that provides additional information about the healthcare context in which this request is made.)
-
getReason
public List<CodeableConcept> getReason()
- Returns:
reason(An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation.)
-
hasReason
public boolean hasReason()
-
addReason
public CodeableConcept addReason()
- Returns:
reason(An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation.)
-
addReason
public DiagnosticOrder addReason(CodeableConcept t)
-
getSupportingInformation
public List<Reference> getSupportingInformation()
- Returns:
supportingInformation(Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.)
-
hasSupportingInformation
public boolean hasSupportingInformation()
-
addSupportingInformation
public Reference addSupportingInformation()
- Returns:
supportingInformation(Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.)
-
addSupportingInformation
public DiagnosticOrder addSupportingInformation(Reference t)
-
getSupportingInformationTarget
public List<Resource> getSupportingInformationTarget()
- Returns:
supportingInformation(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. Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.)
-
getSpecimen
public List<Reference> getSpecimen()
- Returns:
specimen(One or more specimens that the diagnostic investigation is about.)
-
hasSpecimen
public boolean hasSpecimen()
-
addSpecimen
public Reference addSpecimen()
- Returns:
specimen(One or more specimens that the diagnostic investigation is about.)
-
addSpecimen
public DiagnosticOrder addSpecimen(Reference t)
-
getSpecimenTarget
public List<Specimen> getSpecimenTarget()
- Returns:
specimen(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. One or more specimens that the diagnostic investigation is about.)
-
addSpecimenTarget
public Specimen addSpecimenTarget()
- Returns:
specimen(Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. One or more specimens that the diagnostic investigation is about.)
-
getStatusElement
public Enumeration<DiagnosticOrder.DiagnosticOrderStatus> getStatusElement()
- Returns:
status(The status of the order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public DiagnosticOrder setStatusElement(Enumeration<DiagnosticOrder.DiagnosticOrderStatus> value)
- Parameters:
value-status(The status of the order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public DiagnosticOrder.DiagnosticOrderStatus getStatus()
- Returns:
- The status of the order.
-
setStatus
public DiagnosticOrder setStatus(DiagnosticOrder.DiagnosticOrderStatus value)
- Parameters:
value- The status of the order.
-
getPriorityElement
public Enumeration<DiagnosticOrder.DiagnosticOrderPriority> getPriorityElement()
- Returns:
priority(The clinical priority associated with this order.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
-
hasPriorityElement
public boolean hasPriorityElement()
-
hasPriority
public boolean hasPriority()
-
setPriorityElement
public DiagnosticOrder setPriorityElement(Enumeration<DiagnosticOrder.DiagnosticOrderPriority> value)
- Parameters:
value-priority(The clinical priority associated with this order.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
-
getPriority
public DiagnosticOrder.DiagnosticOrderPriority getPriority()
- Returns:
- The clinical priority associated with this order.
-
setPriority
public DiagnosticOrder setPriority(DiagnosticOrder.DiagnosticOrderPriority value)
- Parameters:
value- The clinical priority associated with this order.
-
getEvent
public List<DiagnosticOrder.DiagnosticOrderEventComponent> getEvent()
- Returns:
event(A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.)
-
hasEvent
public boolean hasEvent()
-
addEvent
public DiagnosticOrder.DiagnosticOrderEventComponent addEvent()
- Returns:
event(A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.)
-
addEvent
public DiagnosticOrder addEvent(DiagnosticOrder.DiagnosticOrderEventComponent t)
-
getItem
public List<DiagnosticOrder.DiagnosticOrderItemComponent> getItem()
- Returns:
item(The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.)
-
hasItem
public boolean hasItem()
-
addItem
public DiagnosticOrder.DiagnosticOrderItemComponent addItem()
- Returns:
item(The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.)
-
addItem
public DiagnosticOrder addItem(DiagnosticOrder.DiagnosticOrderItemComponent t)
-
getNote
public List<Annotation> getNote()
- Returns:
note(Any other notes associated with this patient, specimen or order (e.g. "patient hates needles").)
-
hasNote
public boolean hasNote()
-
addNote
public Annotation addNote()
- Returns:
note(Any other notes associated with this patient, specimen or order (e.g. "patient hates needles").)
-
addNote
public DiagnosticOrder addNote(Annotation t)
-
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 DiagnosticOrder copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected DiagnosticOrder typedCopy()
-
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
-
-