Class 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:
  • Field Details

    • 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

      Allows a service to provide unique, business identifiers for the response.
    • module

      protected Type module
      An identifier, CodeableConcept or canonical reference to the guidance that was requested.
    • 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.
    • subject

      protected Reference subject
      The patient for which the request was processed.
    • subjectTarget

      The actual object that is the target of the reference (The patient for which the request was processed.)
    • encounter

      protected Reference encounter
      The encounter during which this response was created or to which the creation of this record is tightly associated.
    • encounterTarget

      The actual object that is the target of the reference (The encounter during which this response was created or to which the creation of this record is tightly associated.)
    • occurrenceDateTime

      Indicates when the guidance response was processed.
    • performer

      protected Reference performer
      Provides a reference to the device that performed the guidance.
    • performerTarget

      The actual object that is the target of the reference (Provides a reference to the device that performed the guidance.)
    • reasonCode

      Describes the reason for the guidance response in coded or textual form.
    • reasonReference

      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.
    • reasonReferenceTarget

      The actual objects that are the target of the reference (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

      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.
    • evaluationMessageTarget

      The actual objects that are the target of the reference (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

      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.
    • outputParametersTarget

      The actual object that is the target of the reference (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.)
    • result

      protected Reference result
      The actions, if any, produced by the evaluation of the artifact.
    • resultTarget

      The actual object that is the target of the reference (The actions, if any, produced by the evaluation of the artifact.)
    • 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_REQUEST

      public static final String SP_REQUEST
      Search parameter: request

      Description: The identifier of the request associated with the response
      Type: token
      Path: GuidanceResponse.requestIdentifier

      See Also:
    • REQUEST

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST
      Fluent Client search parameter constant for request

      Description: The identifier of the request associated with the response
      Type: token
      Path: GuidanceResponse.requestIdentifier

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter: identifier

      Description: The identifier of the guidance response
      Type: token
      Path: GuidanceResponse.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description: The identifier of the guidance response
      Type: token
      Path: GuidanceResponse.identifier

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter: patient

      Description: The identity of a patient to search for guidance response results
      Type: reference
      Path: GuidanceResponse.subject

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description: The identity of a patient to search for guidance response results
      Type: reference
      Path: GuidanceResponse.subject

    • 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_SUBJECT

      public static final String SP_SUBJECT
      Search parameter: subject

      Description: The subject that the guidance response is about
      Type: reference
      Path: GuidanceResponse.subject

      See Also:
    • SUBJECT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
      Fluent Client search parameter constant for subject

      Description: 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 Details

  • Method Details

    • 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

      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

      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 this for easy method chaining
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

    • addIdentifier

    • getIdentifierFirstRep

      Returns:
      The first repetition of repeating field identifier, creating it if it does not already exist
    • getModule

      public Type 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

      Parameters:
      value - module (An identifier, CodeableConcept or canonical reference to the guidance that was requested.)
    • 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

      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

      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

      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

      Returns:
      subject (The patient for which the request was processed.)
    • hasSubject

      public boolean hasSubject()
    • setSubject

      Parameters:
      value - subject (The patient for which the request was processed.)
    • getSubjectTarget

      Returns:
      subject The 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 patient for which the request was processed.)
    • setSubjectTarget

      Parameters:
      value - subject The 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 patient for which the request was processed.)
    • 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

      Parameters:
      value - encounter (The encounter during which this response was created or to which the creation of this record is tightly associated.)
    • getEncounterTarget

      Returns:
      encounter The 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 encounter during which this response was created or to which the creation of this record is tightly associated.)
    • setEncounterTarget

      Parameters:
      value - encounter The 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 encounter during which this response was created or to which the creation of this record is tightly associated.)
    • 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

      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

      Returns:
      Indicates when the guidance response was processed.
    • setOccurrenceDateTime

      Parameters:
      value - Indicates when the guidance response was processed.
    • getPerformer

      Returns:
      performer (Provides a reference to the device that performed the guidance.)
    • hasPerformer

      public boolean hasPerformer()
    • setPerformer

      Parameters:
      value - performer (Provides a reference to the device that performed the guidance.)
    • getPerformerTarget

      Returns:
      performer The 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. (Provides a reference to the device that performed the guidance.)
    • setPerformerTarget

      Parameters:
      value - performer The 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. (Provides a reference to the device that performed the guidance.)
    • getReasonCode

      Returns:
      reasonCode (Describes the reason for the guidance response in coded or textual form.)
    • setReasonCode

      Returns:
      Returns a reference to this for easy method chaining
    • hasReasonCode

      public boolean hasReasonCode()
    • addReasonCode

    • addReasonCode

    • getReasonCodeFirstRep

      Returns:
      The first repetition of repeating field reasonCode, creating it if it does not already exist
    • getReasonReference

      Returns:
      reasonReference (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.)
    • setReasonReference

      public GuidanceResponse setReasonReference(List<Reference> theReasonReference)
      Returns:
      Returns a reference to this for easy method chaining
    • hasReasonReference

      public boolean hasReasonReference()
    • addReasonReference

    • addReasonReference

    • getReasonReferenceFirstRep

      Returns:
      The first repetition of repeating field reasonReference, creating it if it does not already exist
    • getReasonReferenceTarget

      Deprecated.
      Use Reference#setResource(IBaseResource) instead
    • getNote

      public List<Annotation> getNote()
      Returns:
      note (Provides a mechanism to communicate additional information about the response.)
    • setNote

      Returns:
      Returns a reference to this for easy method chaining
    • hasNote

      public boolean hasNote()
    • addNote

      public Annotation addNote()
    • addNote

    • getNoteFirstRep

      Returns:
      The first repetition of repeating field note, creating it if it does not already exist
    • 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 this for easy method chaining
    • hasEvaluationMessage

      public boolean hasEvaluationMessage()
    • addEvaluationMessage

    • addEvaluationMessage

    • getEvaluationMessageFirstRep

      Returns:
      The first repetition of repeating field evaluationMessage, creating it if it does not already exist
    • getEvaluationMessageTarget

      Deprecated.
      Use Reference#setResource(IBaseResource) instead
    • addEvaluationMessageTarget

      Deprecated.
      Use Reference#setResource(IBaseResource) instead
    • 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

      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.)
    • getOutputParametersTarget

      Returns:
      outputParameters The 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 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.)
    • setOutputParametersTarget

      Parameters:
      value - outputParameters The 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 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

      Parameters:
      value - result (The actions, if any, produced by the evaluation of the artifact.)
    • getResultTarget

      Returns:
      result The 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 actions, if any, produced by the evaluation of the artifact.)
    • setResultTarget

      Parameters:
      value - result The 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 actions, if any, produced by the evaluation of the artifact.)
    • 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

      Returns:
      Returns a reference to this for easy method chaining
    • hasDataRequirement

      public boolean hasDataRequirement()
    • addDataRequirement

    • addDataRequirement

    • getDataRequirementFirstRep

      Returns:
      The first repetition of repeating field dataRequirement, creating it if it does not already exist
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class DomainResource
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      Specified by:
      copy in class DomainResource
    • copyValues

      public void copyValues(GuidanceResponse dst)
    • typedCopy

    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource