Class QuestionnaireResponse
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse
-
- 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 QuestionnaireResponse extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR QuestionnaireResponse Resource (infrastructure.information)Definition: 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
Requirements: To support structured, hierarchical registration of data gathered using digital forms and other questionnaires.
Profile Definition: http://hl7.org/fhir/profiles/QuestionnaireResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestionnaireResponse.GroupBlock class for child element: QuestionnaireResponse.group ()static classQuestionnaireResponse.GroupQuestionBlock class for child element: QuestionnaireResponse.group.question ()static classQuestionnaireResponse.GroupQuestionAnswerBlock class for child element: QuestionnaireResponse.group.question.answer ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.ReferenceClientParamAUTHORFluent Client search parameter constant for authorstatic ca.uhn.fhir.rest.gclient.DateClientParamAUTHOREDFluent Client search parameter constant for authoredstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterstatic ca.uhn.fhir.model.api.IncludeINCLUDE_AUTHORConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_ENCOUNTERConstant 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_QUESTIONNAIREConstant 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.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamQUESTIONNAIREFluent Client search parameter constant for questionnairestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourcestatic StringSP_AUTHORSearch parameter constant for authorstatic StringSP_AUTHOREDSearch parameter constant for authoredstatic StringSP_ENCOUNTERSearch parameter constant for encounterstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_QUESTIONNAIRESearch parameter constant for questionnairestatic StringSP_SOURCESearch parameter constant for sourcestatic StringSP_STATUSSearch parameter constant for statusstatic StringSP_SUBJECTSearch parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subject-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description QuestionnaireResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)ResourceReferenceDtgetAuthor()Gets the value(s) for author (who.author).DategetAuthored()Gets the value(s) for authored (when.recorded).ca.uhn.fhir.model.primitive.DateTimeDtgetAuthoredElement()Gets the value(s) for authored (when.recorded).ResourceReferenceDtgetEncounter()Gets the value(s) for encounter (context).QuestionnaireResponse.GroupgetGroup()Gets the value(s) for group ().IdentifierDtgetIdentifier()Gets the value(s) for identifier (id).ResourceReferenceDtgetQuestionnaire()Gets the value(s) for questionnaire ().StringgetResourceName()ResourceReferenceDtgetSource()Gets the value(s) for source (who.source).StringgetStatus()Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<QuestionnaireResponseStatusEnum>getStatusElement()Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject (who.focus).booleanisEmpty()QuestionnaireResponsesetAuthor(ResourceReferenceDt theValue)Sets the value(s) for author (who.author)QuestionnaireResponsesetAuthored(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for authored (when.recorded)QuestionnaireResponsesetAuthored(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for authored (when.recorded)QuestionnaireResponsesetAuthoredWithSecondsPrecision(Date theDate)Sets the value for authored (when.recorded)QuestionnaireResponsesetEncounter(ResourceReferenceDt theValue)Sets the value(s) for encounter (context)QuestionnaireResponsesetGroup(QuestionnaireResponse.Group theValue)Sets the value(s) for group ()QuestionnaireResponsesetIdentifier(IdentifierDt theValue)Sets the value(s) for identifier (id)QuestionnaireResponsesetQuestionnaire(ResourceReferenceDt theValue)Sets the value(s) for questionnaire ()QuestionnaireResponsesetSource(ResourceReferenceDt theValue)Sets the value(s) for source (who.source)QuestionnaireResponsesetStatus(QuestionnaireResponseStatusEnum theValue)Sets the value(s) for status (status)QuestionnaireResponsesetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<QuestionnaireResponseStatusEnum> theValue)Sets the value(s) for status (status)QuestionnaireResponsesetSubject(ResourceReferenceDt theValue)Sets the value(s) for subject (who.focus)-
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_STATUS
public static final String SP_STATUS
Search parameter constant for statusDescription: The status of the questionnaire response
Type: token
Path: QuestionnaireResponse.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 questionnaire response
Type: token
Path: QuestionnaireResponse.status
-
SP_AUTHORED
public static final String SP_AUTHORED
Search parameter constant for authoredDescription: When the questionnaire was authored
Type: date
Path: QuestionnaireResponse.authored
- See Also:
- Constant Field Values
-
AUTHORED
public static final ca.uhn.fhir.rest.gclient.DateClientParam AUTHORED
Fluent Client search parameter constant for authoredDescription: When the questionnaire was authored
Type: date
Path: QuestionnaireResponse.authored
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription: The subject of the questionnaire
Type: reference
Path: QuestionnaireResponse.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 of the questionnaire
Type: reference
Path: QuestionnaireResponse.subject
-
SP_AUTHOR
public static final String SP_AUTHOR
Search parameter constant for authorDescription: The author of the questionnaire
Type: reference
Path: QuestionnaireResponse.author
- See Also:
- Constant Field Values
-
AUTHOR
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR
Fluent Client search parameter constant for authorDescription: The author of the questionnaire
Type: reference
Path: QuestionnaireResponse.author
-
SP_QUESTIONNAIRE
public static final String SP_QUESTIONNAIRE
Search parameter constant for questionnaireDescription: The questionnaire the answers are provided for
Type: reference
Path: QuestionnaireResponse.questionnaire
- See Also:
- Constant Field Values
-
QUESTIONNAIRE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam QUESTIONNAIRE
Fluent Client search parameter constant for questionnaireDescription: The questionnaire the answers are provided for
Type: reference
Path: QuestionnaireResponse.questionnaire
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
Search parameter constant for encounterDescription: Encounter during which questionnaire was authored
Type: reference
Path: QuestionnaireResponse.encounter
- See Also:
- Constant Field Values
-
ENCOUNTER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Encounter during which questionnaire was authored
Type: reference
Path: QuestionnaireResponse.encounter
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription: The patient that is the subject of the questionnaire
Type: reference
Path: QuestionnaireResponse.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: The patient that is the subject of the questionnaire
Type: reference
Path: QuestionnaireResponse.subject
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter constant for sourceDescription:
Type: reference
Path: QuestionnaireResponse.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: QuestionnaireResponse.source
-
INCLUDE_AUTHOR
public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "QuestionnaireResponse:author".
-
INCLUDE_ENCOUNTER
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "QuestionnaireResponse:encounter".
-
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 "QuestionnaireResponse:patient".
-
INCLUDE_QUESTIONNAIRE
public static final ca.uhn.fhir.model.api.Include INCLUDE_QUESTIONNAIRE
Constant for fluent queries to be used to add include statements. Specifies the path value of "QuestionnaireResponse:questionnaire".
-
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 "QuestionnaireResponse: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 "QuestionnaireResponse:subject".
-
-
Constructor Detail
-
QuestionnaireResponse
public QuestionnaireResponse()
-
-
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 IdentifierDt getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.Definition: A business identifier assigned to a particular completed (or partially completed) questionnaire
-
setIdentifier
public QuestionnaireResponse setIdentifier(IdentifierDt theValue)
Sets the value(s) for identifier (id)Definition: A business identifier assigned to a particular completed (or partially completed) questionnaire
-
getQuestionnaire
public ResourceReferenceDt getQuestionnaire()
Gets the value(s) for questionnaire (). creating it if it does not exist. Will not returnnull.Definition: Indicates the Questionnaire resource that defines the form for which answers are being provided
-
setQuestionnaire
public QuestionnaireResponse setQuestionnaire(ResourceReferenceDt theValue)
Sets the value(s) for questionnaire ()Definition: Indicates the Questionnaire resource that defines the form for which answers are being provided
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<QuestionnaireResponseStatusEnum> getStatusElement()
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull.Definition: The lifecycle status of the questionnaire response as a whole.
-
getStatus
public String getStatus()
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull.Definition: The lifecycle status of the questionnaire response as a whole.
-
setStatus
public QuestionnaireResponse setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<QuestionnaireResponseStatusEnum> theValue)
Sets the value(s) for status (status)Definition: The lifecycle status of the questionnaire response as a whole.
-
setStatus
public QuestionnaireResponse setStatus(QuestionnaireResponseStatusEnum theValue)
Sets the value(s) for status (status)Definition: The lifecycle status of the questionnaire response as a whole.
-
getSubject
public ResourceReferenceDt getSubject()
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull.Definition: 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
-
setSubject
public QuestionnaireResponse setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (who.focus)Definition: 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 ResourceReferenceDt getAuthor()
Gets the value(s) for author (who.author). creating it if it does not exist. Will not returnnull.Definition: Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system
-
setAuthor
public QuestionnaireResponse setAuthor(ResourceReferenceDt theValue)
Sets the value(s) for author (who.author)Definition: Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system
-
getAuthoredElement
public ca.uhn.fhir.model.primitive.DateTimeDt getAuthoredElement()
Gets the value(s) for authored (when.recorded). creating it if it does not exist. Will not returnnull.Definition: The date and/or time that this version of the questionnaire response was authored
-
getAuthored
public Date getAuthored()
Gets the value(s) for authored (when.recorded). creating it if it does not exist. This method may returnnull.Definition: The date and/or time that this version of the questionnaire response was authored
-
setAuthored
public QuestionnaireResponse setAuthored(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for authored (when.recorded)Definition: The date and/or time that this version of the questionnaire response was authored
-
setAuthored
public QuestionnaireResponse setAuthored(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for authored (when.recorded)Definition: The date and/or time that this version of the questionnaire response was authored
-
setAuthoredWithSecondsPrecision
public QuestionnaireResponse setAuthoredWithSecondsPrecision(Date theDate)
Sets the value for authored (when.recorded)Definition: The date and/or time that this version of the questionnaire response was authored
-
getSource
public ResourceReferenceDt getSource()
Gets the value(s) for source (who.source). creating it if it does not exist. Will not returnnull.Definition: The person who answered the questions about the subject.
-
setSource
public QuestionnaireResponse setSource(ResourceReferenceDt theValue)
Sets the value(s) for source (who.source)Definition: The person who answered the questions about the subject.
-
getEncounter
public ResourceReferenceDt getEncounter()
Gets the value(s) for encounter (context). creating it if it does not exist. Will not returnnull.Definition: 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.
-
setEncounter
public QuestionnaireResponse setEncounter(ResourceReferenceDt theValue)
Sets the value(s) for encounter (context)Definition: 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
public QuestionnaireResponse.Group getGroup()
Gets the value(s) for group (). creating it if it does not exist. Will not returnnull.Definition: A group of questions to a possibly similarly grouped set of questions in the questionnaire response
-
setGroup
public QuestionnaireResponse setGroup(QuestionnaireResponse.Group theValue)
Sets the value(s) for group ()Definition: A group of questions to a possibly similarly grouped set of questions in the questionnaire response
-
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
-
-