Class QuestionnaireResponse

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

A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
See Also:
Serialized Form
  • Field Details

    • identifier

      A business identifier assigned to a particular completed (or partially completed) questionnaire.
    • questionnaire

      Indicates the Questionnaire resource that defines the form for which answers are being provided.
    • questionnaireTarget

      The actual object that is the target of the reference (Indicates the Questionnaire resource that defines the form for which answers are being provided.)
    • status

      The lifecycle status of the questionnaire response as a whole.
    • subject

      protected Reference subject
      The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.
    • subjectTarget

      The actual object that is the target of the reference (The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.)
    • author

      protected Reference author
      Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.
    • authorTarget

      The actual object that is the target of the reference (Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.)
    • authored

      The date and/or time that this version of the questionnaire response was authored.
    • source

      protected Reference source
      The person who answered the questions about the subject.
    • sourceTarget

      The actual object that is the target of the reference (The person who answered the questions about the subject.)
    • encounter

      protected Reference encounter
      Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.
    • encounterTarget

      The actual object that is the target of the reference (Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.)
    • group

      A group of questions to a possibly similarly grouped set of questions in the questionnaire response.
    • SP_AUTHORED

      public static final String SP_AUTHORED
      See Also:
      Constant Field Values
    • SP_QUESTIONNAIRE

      public static final String SP_QUESTIONNAIRE
      See Also:
      Constant Field Values
    • SP_SUBJECT

      public static final String SP_SUBJECT
      See Also:
      Constant Field Values
    • SP_AUTHOR

      public static final String SP_AUTHOR
      See Also:
      Constant Field Values
    • SP_PATIENT

      public static final String SP_PATIENT
      See Also:
      Constant Field Values
    • SP_ENCOUNTER

      public static final String SP_ENCOUNTER
      See Also:
      Constant Field Values
    • SP_SOURCE

      public static final String SP_SOURCE
      See Also:
      Constant Field Values
    • SP_STATUS

      public static final String SP_STATUS
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (A business identifier assigned to a particular completed (or partially completed) questionnaire.)
    • hasIdentifier

      public boolean hasIdentifier()
    • setIdentifier

      Parameters:
      value - identifier (A business identifier assigned to a particular completed (or partially completed) questionnaire.)
    • getQuestionnaire

      Returns:
      questionnaire (Indicates the Questionnaire resource that defines the form for which answers are being provided.)
    • hasQuestionnaire

      public boolean hasQuestionnaire()
    • setQuestionnaire

      Parameters:
      value - questionnaire (Indicates the Questionnaire resource that defines the form for which answers are being provided.)
    • getQuestionnaireTarget

      Returns:
      questionnaire 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. (Indicates the Questionnaire resource that defines the form for which answers are being provided.)
    • setQuestionnaireTarget

      Parameters:
      value - questionnaire 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. (Indicates the Questionnaire resource that defines the form for which answers are being provided.)
    • getStatusElement

      Returns:
      status (The lifecycle status of the questionnaire response as a whole.). 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 lifecycle status of the questionnaire response as a whole.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • getStatus

      Returns:
      The lifecycle status of the questionnaire response as a whole.
    • setStatus

      Parameters:
      value - The lifecycle status of the questionnaire response as a whole.
    • getSubject

      Returns:
      subject (The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.)
    • hasSubject

      public boolean hasSubject()
    • setSubject

      Parameters:
      value - subject (The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.)
    • 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 subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.)
    • 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 subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.)
    • getAuthor

      public Reference getAuthor()
      Returns:
      author (Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.)
    • hasAuthor

      public boolean hasAuthor()
    • setAuthor

      Parameters:
      value - author (Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.)
    • getAuthorTarget

      Returns:
      author 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. (Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.)
    • setAuthorTarget

      Parameters:
      value - author 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. (Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.)
    • getAuthoredElement

      Returns:
      authored (The date and/or time that this version of the questionnaire response was authored.). This is the underlying object with id, value and extensions. The accessor "getAuthored" gives direct access to the value
    • hasAuthoredElement

      public boolean hasAuthoredElement()
    • hasAuthored

      public boolean hasAuthored()
    • setAuthoredElement

      Parameters:
      value - authored (The date and/or time that this version of the questionnaire response was authored.). This is the underlying object with id, value and extensions. The accessor "getAuthored" gives direct access to the value
    • getAuthored

      public Date getAuthored()
      Returns:
      The date and/or time that this version of the questionnaire response was authored.
    • setAuthored

      Parameters:
      value - The date and/or time that this version of the questionnaire response was authored.
    • getSource

      public Reference getSource()
      Returns:
      source (The person who answered the questions about the subject.)
    • hasSource

      public boolean hasSource()
    • setSource

      Parameters:
      value - source (The person who answered the questions about the subject.)
    • getSourceTarget

      Returns:
      source 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 person who answered the questions about the subject.)
    • setSourceTarget

      Parameters:
      value - source 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 person who answered the questions about the subject.)
    • getEncounter

      Returns:
      encounter (Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.)
    • hasEncounter

      public boolean hasEncounter()
    • setEncounter

      Parameters:
      value - encounter (Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.)
    • 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. (Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.)
    • 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. (Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.)
    • getGroup

      Returns:
      group (A group of questions to a possibly similarly grouped set of questions in the questionnaire response.)
    • hasGroup

      public boolean hasGroup()
    • setGroup

      Parameters:
      value - group (A group of questions to a possibly similarly grouped set of questions in the questionnaire response.)
    • listChildren

      protected void listChildren​(List<Property> childrenList)
      Overrides:
      listChildren in class DomainResource
    • setProperty

      public void setProperty​(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty 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
    • 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