Class GuidanceResponse
- java.lang.Object
-
- org.hl7.fhir.r5.model.Base
-
- org.hl7.fhir.r5.model.BaseResource
-
- org.hl7.fhir.r5.model.Resource
-
- org.hl7.fhir.r5.model.DomainResource
-
- org.hl7.fhir.r5.model.GuidanceResponse
-
- 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 GuidanceResponse extends DomainResource
A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGuidanceResponse.GuidanceResponseStatusstatic classGuidanceResponse.GuidanceResponseStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected List<DataRequirement>dataRequirementIf the evaluation could not be completed due to lack of information, or additional information would potentially result in a more accurate response, this element will a description of the data required in order to proceed with the evaluation.protected ReferenceencounterThe encounter during which this response was created or to which the creation of this record is tightly associated.protected List<Reference>evaluationMessageMessages resulting from the evaluation of the artifact or artifacts.protected List<Identifier>identifierAllows a service to provide unique, business identifiers for the response.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant 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.protected DataTypemoduleAn identifier, CodeableConcept or canonical reference to the guidance that was requested.protected List<Annotation>noteProvides a mechanism to communicate additional information about the response.protected DateTimeTypeoccurrenceDateTimeIndicates when the guidance response was processed.protected ReferenceoutputParametersThe output parameters of the evaluation, if any.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientprotected ReferenceperformerProvides a reference to the device that performed the guidance.protected List<CodeableReference>reasonDescribes the reason for the guidance response in coded or textual form, or Indicates the reason the request was initiated.static ca.uhn.fhir.rest.gclient.TokenClientParamREQUESTFluent Client search parameter constant for requestprotected IdentifierrequestIdentifierThe identifier of the request associated with this response.protected ReferenceresultThe actions, if any, produced by the evaluation of the artifact.static StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_PATIENTSearch parameter: patientstatic StringSP_REQUESTSearch parameter: requeststatic StringSP_STATUSSearch parameter: statusstatic StringSP_SUBJECTSearch parameter: subjectprotected Enumeration<GuidanceResponse.GuidanceResponseStatus>statusThe status of the response.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusprotected ReferencesubjectThe patient for which the request was processed.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subject-
Fields inherited from class org.hl7.fhir.r5.model.DomainResource
contained, extension, modifierExtension, SP_TEXT, text, TEXT
-
Fields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description GuidanceResponse()ConstructorGuidanceResponse(DataType module, GuidanceResponse.GuidanceResponseStatus status)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r5.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, 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
-
requestIdentifier
protected Identifier requestIdentifier
The identifier of the request associated with this response. If an identifier was given as part of the request, it will be reproduced here to enable the requester to more easily identify the response in a multi-request scenario.
-
identifier
protected List<Identifier> identifier
Allows a service to provide unique, business identifiers for the response.
-
module
protected DataType module
An identifier, CodeableConcept or canonical reference to the guidance that was requested.
-
status
protected Enumeration<GuidanceResponse.GuidanceResponseStatus> status
The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.
-
encounter
protected Reference encounter
The encounter during which this response was created or to which the creation of this record is tightly associated.
-
occurrenceDateTime
protected DateTimeType occurrenceDateTime
Indicates when the guidance response was processed.
-
performer
protected Reference performer
Provides a reference to the device that performed the guidance.
-
reason
protected List<CodeableReference> reason
Describes the reason for the guidance response in coded or textual form, or Indicates the reason the request was initiated. This is typically provided as a parameter to the evaluation and echoed by the service, although for some use cases, such as subscription- or event-based scenarios, it may provide an indication of the cause for the response.
-
note
protected List<Annotation> note
Provides a mechanism to communicate additional information about the response.
-
evaluationMessage
protected List<Reference> evaluationMessage
Messages resulting from the evaluation of the artifact or artifacts. As part of evaluating the request, the engine may produce informational or warning messages. These messages will be provided by this element.
-
outputParameters
protected Reference outputParameters
The output parameters of the evaluation, if any. Many modules will result in the return of specific resources such as procedure or communication requests that are returned as part of the operation result. However, modules may define specific outputs that would be returned as the result of the evaluation, and these would be returned in this element.
-
dataRequirement
protected List<DataRequirement> dataRequirement
If the evaluation could not be completed due to lack of information, or additional information would potentially result in a more accurate response, this element will a description of the data required in order to proceed with the evaluation. A subsequent request to the service should include this data.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: The identifier of the guidance response
Type: token
Path: GuidanceResponse.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: The identifier of the guidance response
Type: token
Path: GuidanceResponse.identifier
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter: patientDescription: The identity of a patient to search for guidance response results
Type: reference
Path: GuidanceResponse.subject.where(resolve() is Patient)
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: The identity of a patient to search for guidance response results
Type: reference
Path: GuidanceResponse.subject.where(resolve() is Patient)
-
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 "GuidanceResponse:patient".
-
SP_REQUEST
public static final String SP_REQUEST
Search parameter: requestDescription: The identifier of the request associated with the response
Type: token
Path: GuidanceResponse.requestIdentifier
- See Also:
- Constant Field Values
-
REQUEST
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST
Fluent Client search parameter constant for requestDescription: The identifier of the request associated with the response
Type: token
Path: GuidanceResponse.requestIdentifier
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: The status of the guidance response
Type: token
Path: GuidanceResponse.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: The status of the guidance response
Type: token
Path: GuidanceResponse.status
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter: subjectDescription: The subject that the guidance response is about
Type: reference
Path: GuidanceResponse.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription: The subject that the guidance response is about
Type: reference
Path: GuidanceResponse.subject
-
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 "GuidanceResponse:subject".
-
-
Constructor Detail
-
GuidanceResponse
public GuidanceResponse()
Constructor
-
GuidanceResponse
public GuidanceResponse(DataType module, GuidanceResponse.GuidanceResponseStatus status)
Constructor
-
-
Method Detail
-
getRequestIdentifier
public Identifier getRequestIdentifier()
- Returns:
requestIdentifier(The identifier of the request associated with this response. If an identifier was given as part of the request, it will be reproduced here to enable the requester to more easily identify the response in a multi-request scenario.)
-
hasRequestIdentifier
public boolean hasRequestIdentifier()
-
setRequestIdentifier
public GuidanceResponse setRequestIdentifier(Identifier value)
- Parameters:
value-requestIdentifier(The identifier of the request associated with this response. If an identifier was given as part of the request, it will be reproduced here to enable the requester to more easily identify the response in a multi-request scenario.)
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Allows a service to provide unique, business identifiers for the response.)
-
setIdentifier
public GuidanceResponse setIdentifier(List<Identifier> theIdentifier)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
-
addIdentifier
public GuidanceResponse addIdentifier(Identifier t)
-
getIdentifierFirstRep
public Identifier getIdentifierFirstRep()
- Returns:
- The first repetition of repeating field
identifier, creating it if it does not already exist {3}
-
getModule
public DataType getModule()
- Returns:
module(An identifier, CodeableConcept or canonical reference to the guidance that was requested.)
-
getModuleUriType
public UriType getModuleUriType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
module(An identifier, CodeableConcept or canonical reference to the guidance that was requested.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasModuleUriType
public boolean hasModuleUriType()
-
getModuleCanonicalType
public CanonicalType getModuleCanonicalType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
module(An identifier, CodeableConcept or canonical reference to the guidance that was requested.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasModuleCanonicalType
public boolean hasModuleCanonicalType()
-
getModuleCodeableConcept
public CodeableConcept getModuleCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
module(An identifier, CodeableConcept or canonical reference to the guidance that was requested.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasModuleCodeableConcept
public boolean hasModuleCodeableConcept()
-
hasModule
public boolean hasModule()
-
setModule
public GuidanceResponse setModule(DataType value)
- Parameters:
value-module(An identifier, CodeableConcept or canonical reference to the guidance that was requested.)
-
getStatusElement
public Enumeration<GuidanceResponse.GuidanceResponseStatus> getStatusElement()
- Returns:
status(The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.). 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 GuidanceResponse setStatusElement(Enumeration<GuidanceResponse.GuidanceResponseStatus> value)
- Parameters:
value-status(The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public GuidanceResponse.GuidanceResponseStatus getStatus()
- Returns:
- The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.
-
setStatus
public GuidanceResponse setStatus(GuidanceResponse.GuidanceResponseStatus value)
- Parameters:
value- The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.
-
getSubject
public Reference getSubject()
- Returns:
subject(The patient for which the request was processed.)
-
hasSubject
public boolean hasSubject()
-
setSubject
public GuidanceResponse setSubject(Reference value)
- Parameters:
value-subject(The patient for which the request was processed.)
-
getEncounter
public Reference getEncounter()
- Returns:
encounter(The encounter during which this response was created or to which the creation of this record is tightly associated.)
-
hasEncounter
public boolean hasEncounter()
-
setEncounter
public GuidanceResponse setEncounter(Reference value)
- Parameters:
value-encounter(The encounter during which this response was created or to which the creation of this record is tightly associated.)
-
getOccurrenceDateTimeElement
public DateTimeType getOccurrenceDateTimeElement()
- Returns:
occurrenceDateTime(Indicates when the guidance response was processed.). This is the underlying object with id, value and extensions. The accessor "getOccurrenceDateTime" gives direct access to the value
-
hasOccurrenceDateTimeElement
public boolean hasOccurrenceDateTimeElement()
-
hasOccurrenceDateTime
public boolean hasOccurrenceDateTime()
-
setOccurrenceDateTimeElement
public GuidanceResponse setOccurrenceDateTimeElement(DateTimeType value)
- Parameters:
value-occurrenceDateTime(Indicates when the guidance response was processed.). This is the underlying object with id, value and extensions. The accessor "getOccurrenceDateTime" gives direct access to the value
-
getOccurrenceDateTime
public Date getOccurrenceDateTime()
- Returns:
- Indicates when the guidance response was processed.
-
setOccurrenceDateTime
public GuidanceResponse setOccurrenceDateTime(Date value)
- Parameters:
value- Indicates when the guidance response was processed.
-
getPerformer
public Reference getPerformer()
- Returns:
performer(Provides a reference to the device that performed the guidance.)
-
hasPerformer
public boolean hasPerformer()
-
setPerformer
public GuidanceResponse setPerformer(Reference value)
- Parameters:
value-performer(Provides a reference to the device that performed the guidance.)
-
getReason
public List<CodeableReference> getReason()
- Returns:
reason(Describes the reason for the guidance response in coded or textual form, or Indicates the reason the request was initiated. This is typically provided as a parameter to the evaluation and echoed by the service, although for some use cases, such as subscription- or event-based scenarios, it may provide an indication of the cause for the response.)
-
setReason
public GuidanceResponse setReason(List<CodeableReference> theReason)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasReason
public boolean hasReason()
-
addReason
public CodeableReference addReason()
-
addReason
public GuidanceResponse addReason(CodeableReference t)
-
getReasonFirstRep
public CodeableReference getReasonFirstRep()
- Returns:
- The first repetition of repeating field
reason, creating it if it does not already exist {3}
-
getNote
public List<Annotation> getNote()
- Returns:
note(Provides a mechanism to communicate additional information about the response.)
-
setNote
public GuidanceResponse setNote(List<Annotation> theNote)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasNote
public boolean hasNote()
-
addNote
public Annotation addNote()
-
addNote
public GuidanceResponse addNote(Annotation t)
-
getNoteFirstRep
public Annotation getNoteFirstRep()
- Returns:
- The first repetition of repeating field
note, creating it if it does not already exist {3}
-
getEvaluationMessage
public List<Reference> getEvaluationMessage()
- Returns:
evaluationMessage(Messages resulting from the evaluation of the artifact or artifacts. As part of evaluating the request, the engine may produce informational or warning messages. These messages will be provided by this element.)
-
setEvaluationMessage
public GuidanceResponse setEvaluationMessage(List<Reference> theEvaluationMessage)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasEvaluationMessage
public boolean hasEvaluationMessage()
-
addEvaluationMessage
public Reference addEvaluationMessage()
-
addEvaluationMessage
public GuidanceResponse addEvaluationMessage(Reference t)
-
getEvaluationMessageFirstRep
public Reference getEvaluationMessageFirstRep()
- Returns:
- The first repetition of repeating field
evaluationMessage, creating it if it does not already exist {3}
-
getOutputParameters
public Reference getOutputParameters()
- Returns:
outputParameters(The output parameters of the evaluation, if any. Many modules will result in the return of specific resources such as procedure or communication requests that are returned as part of the operation result. However, modules may define specific outputs that would be returned as the result of the evaluation, and these would be returned in this element.)
-
hasOutputParameters
public boolean hasOutputParameters()
-
setOutputParameters
public GuidanceResponse setOutputParameters(Reference value)
- Parameters:
value-outputParameters(The output parameters of the evaluation, if any. Many modules will result in the return of specific resources such as procedure or communication requests that are returned as part of the operation result. However, modules may define specific outputs that would be returned as the result of the evaluation, and these would be returned in this element.)
-
getResult
public Reference getResult()
- Returns:
result(The actions, if any, produced by the evaluation of the artifact.)
-
hasResult
public boolean hasResult()
-
setResult
public GuidanceResponse setResult(Reference value)
- Parameters:
value-result(The actions, if any, produced by the evaluation of the artifact.)
-
getDataRequirement
public List<DataRequirement> getDataRequirement()
- Returns:
dataRequirement(If the evaluation could not be completed due to lack of information, or additional information would potentially result in a more accurate response, this element will a description of the data required in order to proceed with the evaluation. A subsequent request to the service should include this data.)
-
setDataRequirement
public GuidanceResponse setDataRequirement(List<DataRequirement> theDataRequirement)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasDataRequirement
public boolean hasDataRequirement()
-
addDataRequirement
public DataRequirement addDataRequirement()
-
addDataRequirement
public GuidanceResponse addDataRequirement(DataRequirement t)
-
getDataRequirementFirstRep
public DataRequirement getDataRequirementFirstRep()
- Returns:
- The first repetition of repeating field
dataRequirement, creating it if it does not already exist {3}
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin 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 GuidanceResponse copy()
- Specified by:
copyin classDomainResource
-
copyValues
public void copyValues(GuidanceResponse dst)
-
typedCopy
protected GuidanceResponse 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
-
-