Package org.hl7.fhir.dstu2.model
Class Questionnaire
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.Questionnaire
-
- 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 Questionnaire extends DomainResource
A structured set of questions intended to guide the collection of 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestionnaire.AnswerFormatstatic classQuestionnaire.AnswerFormatEnumFactorystatic classQuestionnaire.GroupComponentstatic classQuestionnaire.QuestionComponentstatic classQuestionnaire.QuestionnaireStatusstatic classQuestionnaire.QuestionnaireStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected DateTimeTypedateThe date that this questionnaire was last changed.protected Questionnaire.GroupComponentgroupA collection of related questions (or further groupings of questions).protected List<Identifier>identifierThis records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g.protected StringTypepublisherOrganization or person responsible for developing and maintaining the questionnaire.static StringSP_CODEstatic StringSP_DATEstatic StringSP_IDENTIFIERstatic StringSP_PUBLISHERstatic StringSP_STATUSstatic StringSP_TITLEstatic StringSP_VERSIONprotected Enumeration<Questionnaire.QuestionnaireStatus>statusThe lifecycle status of the questionnaire as a whole.protected List<CodeType>subjectTypeIdentifies the types of subjects that can be the subject of the questionnaire.protected List<ContactPoint>telecomContact details to assist a user in finding and communicating with the publisher.protected StringTypeversionThe version number assigned by the publisher for business reasons.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Questionnaire()Questionnaire(Enumeration<Questionnaire.QuestionnaireStatus> status, Questionnaire.GroupComponent group)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, 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
-
identifier
protected List<Identifier> identifier
This records identifiers associated with this question set that are defined by business processes 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).
-
version
protected StringType version
The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated.
-
status
protected Enumeration<Questionnaire.QuestionnaireStatus> status
The lifecycle status of the questionnaire as a whole.
-
date
protected DateTimeType date
The date that this questionnaire was last changed.
-
publisher
protected StringType publisher
Organization or person responsible for developing and maintaining the questionnaire.
-
telecom
protected List<ContactPoint> telecom
Contact details to assist a user in finding and communicating with the publisher.
-
subjectType
protected List<CodeType> subjectType
Identifies the types of subjects that can be the subject of the questionnaire.
-
group
protected Questionnaire.GroupComponent group
A collection of related questions (or further groupings of questions).
-
SP_DATE
public static final String SP_DATE
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_CODE
public static final String SP_CODE
- See Also:
- Constant Field Values
-
SP_PUBLISHER
public static final String SP_PUBLISHER
- See Also:
- Constant Field Values
-
SP_TITLE
public static final String SP_TITLE
- See Also:
- Constant Field Values
-
SP_VERSION
public static final String SP_VERSION
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Questionnaire
public Questionnaire()
-
Questionnaire
public Questionnaire(Enumeration<Questionnaire.QuestionnaireStatus> status, Questionnaire.GroupComponent group)
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(This records identifiers associated with this question set that are defined by business processes 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).)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(This records identifiers associated with this question set that are defined by business processes 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).)
-
addIdentifier
public Questionnaire addIdentifier(Identifier t)
-
getVersionElement
public StringType getVersionElement()
- Returns:
version(The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
-
hasVersionElement
public boolean hasVersionElement()
-
hasVersion
public boolean hasVersion()
-
setVersionElement
public Questionnaire setVersionElement(StringType value)
- Parameters:
value-version(The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
-
getVersion
public String getVersion()
- Returns:
- The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated.
-
setVersion
public Questionnaire setVersion(String value)
- Parameters:
value- The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated.
-
getStatusElement
public Enumeration<Questionnaire.QuestionnaireStatus> getStatusElement()
- Returns:
status(The lifecycle status of the questionnaire 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
public Questionnaire setStatusElement(Enumeration<Questionnaire.QuestionnaireStatus> value)
- Parameters:
value-status(The lifecycle status of the questionnaire as a whole.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public Questionnaire.QuestionnaireStatus getStatus()
- Returns:
- The lifecycle status of the questionnaire as a whole.
-
setStatus
public Questionnaire setStatus(Questionnaire.QuestionnaireStatus value)
- Parameters:
value- The lifecycle status of the questionnaire as a whole.
-
getDateElement
public DateTimeType getDateElement()
- Returns:
date(The date that this questionnaire was last changed.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
hasDateElement
public boolean hasDateElement()
-
hasDate
public boolean hasDate()
-
setDateElement
public Questionnaire setDateElement(DateTimeType value)
- Parameters:
value-date(The date that this questionnaire was last changed.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
setDate
public Questionnaire setDate(Date value)
- Parameters:
value- The date that this questionnaire was last changed.
-
getPublisherElement
public StringType getPublisherElement()
- Returns:
publisher(Organization or person responsible for developing and maintaining the questionnaire.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
-
hasPublisherElement
public boolean hasPublisherElement()
-
hasPublisher
public boolean hasPublisher()
-
setPublisherElement
public Questionnaire setPublisherElement(StringType value)
- Parameters:
value-publisher(Organization or person responsible for developing and maintaining the questionnaire.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
-
getPublisher
public String getPublisher()
- Returns:
- Organization or person responsible for developing and maintaining the questionnaire.
-
setPublisher
public Questionnaire setPublisher(String value)
- Parameters:
value- Organization or person responsible for developing and maintaining the questionnaire.
-
getTelecom
public List<ContactPoint> getTelecom()
- Returns:
telecom(Contact details to assist a user in finding and communicating with the publisher.)
-
hasTelecom
public boolean hasTelecom()
-
addTelecom
public ContactPoint addTelecom()
- Returns:
telecom(Contact details to assist a user in finding and communicating with the publisher.)
-
addTelecom
public Questionnaire addTelecom(ContactPoint t)
-
getSubjectType
public List<CodeType> getSubjectType()
- Returns:
subjectType(Identifies the types of subjects that can be the subject of the questionnaire.)
-
hasSubjectType
public boolean hasSubjectType()
-
addSubjectTypeElement
public CodeType addSubjectTypeElement()
- Returns:
subjectType(Identifies the types of subjects that can be the subject of the questionnaire.)
-
addSubjectType
public Questionnaire addSubjectType(String value)
- Parameters:
value-subjectType(Identifies the types of subjects that can be the subject of the questionnaire.)
-
hasSubjectType
public boolean hasSubjectType(String value)
- Parameters:
value-subjectType(Identifies the types of subjects that can be the subject of the questionnaire.)
-
getGroup
public Questionnaire.GroupComponent getGroup()
- Returns:
group(A collection of related questions (or further groupings of questions).)
-
hasGroup
public boolean hasGroup()
-
setGroup
public Questionnaire setGroup(Questionnaire.GroupComponent value)
- Parameters:
value-group(A collection of related questions (or further groupings of questions).)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin 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 Questionnaire copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected Questionnaire 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
-
-