public class Questionnaire extends BaseResource implements IResource
Definition: A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. 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/Questionnaire
| Modifier and Type | Class and Description |
|---|---|
static class |
Questionnaire.Group
Block class for child element: Questionnaire.group (Grouped questions)
|
static class |
Questionnaire.GroupQuestion
Block class for child element: Questionnaire.group.question (Questions in this group)
|
| Modifier and Type | Field and Description |
|---|---|
static ReferenceClientParam |
AUTHOR
Fluent Client search parameter constant for author
|
static DateClientParam |
AUTHORED
Fluent Client search parameter constant for authored
|
static ReferenceClientParam |
ENCOUNTER
Fluent Client search parameter constant for encounter
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements.
|
static TokenClientParam |
NAME
Fluent Client search parameter constant for name
|
static String |
SP_AUTHOR
Search parameter constant for author
|
static String |
SP_AUTHORED
Search parameter constant for authored
|
static String |
SP_ENCOUNTER
Search parameter constant for encounter
|
static String |
SP_IDENTIFIER
Search parameter constant for identifier
|
static String |
SP_NAME
Search parameter constant for name
|
static String |
SP_STATUS
Search parameter constant for status
|
static String |
SP_SUBJECT
Search parameter constant for subject
|
static TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
static ReferenceClientParam |
SUBJECT
Fluent Client search parameter constant for subject
|
SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Questionnaire() |
| Modifier and Type | Method and Description |
|---|---|
IdentifierDt |
addIdentifier()
Adds and returns a new value for identifier (External Ids for this questionnaire)
|
Questionnaire |
addIdentifier(IdentifierUseEnum theUse,
String theSystem,
String theValue,
String theLabel)
Adds a new value for identifier (External Ids for this questionnaire)
|
Questionnaire |
addIdentifier(String theSystem,
String theValue)
Adds a new value for identifier (External Ids for this questionnaire)
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
ResourceReferenceDt |
getAuthor()
Gets the value(s) for author (Person who received and recorded the answers).
|
DateTimeDt |
getAuthored()
Gets the value(s) for authored (Date this version was authored).
|
ResourceReferenceDt |
getEncounter()
Gets the value(s) for encounter (Primary encounter during which the answers were collected).
|
Questionnaire.Group |
getGroup()
Gets the value(s) for group (Grouped questions).
|
List<IdentifierDt> |
getIdentifier()
Gets the value(s) for identifier (External Ids for this questionnaire).
|
IdentifierDt |
getIdentifierFirstRep()
Gets the first repetition for identifier (External Ids for this questionnaire),
creating it if it does not already exist.
|
BoundCodeableConceptDt<QuestionnaireNameEnum> |
getName()
Gets the value(s) for name (Name/code for a predefined list of questions).
|
ResourceReferenceDt |
getSource()
Gets the value(s) for source (The person who answered the questions).
|
BoundCodeDt<QuestionnaireStatusEnum> |
getStatus()
Gets the value(s) for status (draft | published | retired | in progress | completed | amended).
|
ResourceReferenceDt |
getSubject()
Gets the value(s) for subject (The subject of the questions).
|
boolean |
isEmpty() |
Questionnaire |
setAuthor(ResourceReferenceDt theValue)
Sets the value(s) for author (Person who received and recorded the answers)
|
Questionnaire |
setAuthored(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for authored (Date this version was authored)
|
Questionnaire |
setAuthored(DateTimeDt theValue)
Sets the value(s) for authored (Date this version was authored)
|
Questionnaire |
setAuthoredWithSecondsPrecision(Date theDate)
Sets the value for authored (Date this version was authored)
|
Questionnaire |
setEncounter(ResourceReferenceDt theValue)
Sets the value(s) for encounter (Primary encounter during which the answers were collected)
|
Questionnaire |
setGroup(Questionnaire.Group theValue)
Sets the value(s) for group (Grouped questions)
|
Questionnaire |
setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (External Ids for this questionnaire)
|
Questionnaire |
setName(BoundCodeableConceptDt<QuestionnaireNameEnum> theValue)
Sets the value(s) for name (Name/code for a predefined list of questions)
|
Questionnaire |
setName(QuestionnaireNameEnum theValue)
Sets the value(s) for name (Name/code for a predefined list of questions)
|
Questionnaire |
setSource(ResourceReferenceDt theValue)
Sets the value(s) for source (The person who answered the questions)
|
Questionnaire |
setStatus(BoundCodeDt<QuestionnaireStatusEnum> theValue)
Sets the value(s) for status (draft | published | retired | in progress | completed | amended)
|
Questionnaire |
setStatus(QuestionnaireStatusEnum theValue)
Sets the value(s) for status (draft | published | retired | in progress | completed | amended)
|
Questionnaire |
setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (The subject of the questions)
|
getContained, getId, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatapublic static final String SP_STATUS
Description: The status of the questionnaire
Type: token
Path: Questionnaire.status
public static final TokenClientParam STATUS
Description: The status of the questionnaire
Type: token
Path: Questionnaire.status
public static final String SP_AUTHORED
Description: When the questionnaire was authored
Type: date
Path: Questionnaire.authored
public static final DateClientParam AUTHORED
Description: When the questionnaire was authored
Type: date
Path: Questionnaire.authored
public static final String SP_SUBJECT
Description: The subject of the questionnaire
Type: reference
Path: Questionnaire.subject
public static final ReferenceClientParam SUBJECT
Description: The subject of the questionnaire
Type: reference
Path: Questionnaire.subject
public static final Include INCLUDE_SUBJECT
public static final String SP_AUTHOR
Description: The author of the questionnaire
Type: reference
Path: Questionnaire.author
public static final ReferenceClientParam AUTHOR
Description: The author of the questionnaire
Type: reference
Path: Questionnaire.author
public static final Include INCLUDE_AUTHOR
public static final String SP_IDENTIFIER
Description: An identifier for the questionnaire
Type: token
Path: Questionnaire.identifier
public static final TokenClientParam IDENTIFIER
Description: An identifier for the questionnaire
Type: token
Path: Questionnaire.identifier
public static final String SP_NAME
Description: Name of the questionnaire
Type: token
Path: Questionnaire.name
public static final TokenClientParam NAME
Description: Name of the questionnaire
Type: token
Path: Questionnaire.name
public static final String SP_ENCOUNTER
Description: Encounter during which questionnaire was authored
Type: reference
Path: Questionnaire.encounter
public static final ReferenceClientParam ENCOUNTER
Description: Encounter during which questionnaire was authored
Type: reference
Path: Questionnaire.encounter
public static final Include INCLUDE_ENCOUNTER
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic BoundCodeDt<QuestionnaireStatusEnum> getStatus()
null.
Definition: The lifecycle status of the questionnaire as a whole.
public Questionnaire setStatus(BoundCodeDt<QuestionnaireStatusEnum> theValue)
Definition: The lifecycle status of the questionnaire as a whole.
public Questionnaire setStatus(QuestionnaireStatusEnum theValue)
Definition: The lifecycle status of the questionnaire as a whole.
public DateTimeDt getAuthored()
null.
Definition: The date and/or time that this version of the questionnaire was authored
public Questionnaire setAuthored(DateTimeDt theValue)
Definition: The date and/or time that this version of the questionnaire was authored
public Questionnaire setAuthoredWithSecondsPrecision(Date theDate)
Definition: The date and/or time that this version of the questionnaire was authored
public Questionnaire setAuthored(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: The date and/or time that this version of the questionnaire was authored
public ResourceReferenceDt getSubject()
null.
Definition: The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information
public Questionnaire setSubject(ResourceReferenceDt theValue)
Definition: The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information
public ResourceReferenceDt getAuthor()
null.
Definition: Person who received the answers to the questions in the Questionnaire and recorded them in the system
public Questionnaire setAuthor(ResourceReferenceDt theValue)
Definition: Person who received the answers to the questions in the Questionnaire and recorded them in the system
public ResourceReferenceDt getSource()
null.
Definition: The person who answered the questions about the subject. Only used when this is not the subject him/herself
public Questionnaire setSource(ResourceReferenceDt theValue)
Definition: The person who answered the questions about the subject. Only used when this is not the subject him/herself
public BoundCodeableConceptDt<QuestionnaireNameEnum> getName()
null.
Definition: Structured name for a predefined list of questions this questionnaire is responding to
public Questionnaire setName(BoundCodeableConceptDt<QuestionnaireNameEnum> theValue)
Definition: Structured name for a predefined list of questions this questionnaire is responding to
public Questionnaire setName(QuestionnaireNameEnum theValue)
Definition: Structured name for a predefined list of questions this questionnaire is responding to
public List<IdentifierDt> getIdentifier()
null.
Definition: This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
public Questionnaire setIdentifier(List<IdentifierDt> theValue)
Definition: This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
public IdentifierDt addIdentifier()
Definition: This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
public IdentifierDt getIdentifierFirstRep()
Definition: This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
public Questionnaire addIdentifier(IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel)
Definition: This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
public Questionnaire addIdentifier(String theSystem, String theValue)
Definition: This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
public ResourceReferenceDt getEncounter()
null.
Definition: Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.
public Questionnaire setEncounter(ResourceReferenceDt theValue)
Definition: Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.
public Questionnaire.Group getGroup()
null.
Definition: A group of questions to a possibly similarly grouped set of questions in the questionnaire
public Questionnaire setGroup(Questionnaire.Group theValue)
Definition: A group of questions to a possibly similarly grouped set of questions in the questionnaire
Copyright © 2014 University Health Network. All rights reserved.