All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.fhir.model.dstu.resource.Questionnaire Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
















package ca.uhn.fhir.model.dstu.resource;


import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR Questionnaire Resource
 * (A structured set of questions and their answers)
 *
 * 

* 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 *

* */ @ResourceDef(name="Questionnaire", profile="http://hl7.org/fhir/profiles/Questionnaire", id="questionnaire") public class Questionnaire extends ca.uhn.fhir.model.dstu.resource.BaseResource implements IResource { /** * Search parameter constant for status *

* Description: The status of the questionnaire
* Type: token
* Path: Questionnaire.status
*

*/ @SearchParamDefinition(name="status", path="Questionnaire.status", description="The status of the questionnaire", type="token" ) public static final String SP_STATUS = "status"; /** * Fluent Client search parameter constant for status *

* Description: The status of the questionnaire
* Type: token
* Path: Questionnaire.status
*

*/ public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); /** * Search parameter constant for authored *

* Description: When the questionnaire was authored
* Type: date
* Path: Questionnaire.authored
*

*/ @SearchParamDefinition(name="authored", path="Questionnaire.authored", description="When the questionnaire was authored", type="date" ) public static final String SP_AUTHORED = "authored"; /** * Fluent Client search parameter constant for authored *

* Description: When the questionnaire was authored
* Type: date
* Path: Questionnaire.authored
*

*/ public static final DateClientParam AUTHORED = new DateClientParam(SP_AUTHORED); /** * Search parameter constant for subject *

* Description: The subject of the questionnaire
* Type: reference
* Path: Questionnaire.subject
*

*/ @SearchParamDefinition(name="subject", path="Questionnaire.subject", description="The subject of the questionnaire", type="reference" ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description: The subject of the questionnaire
* Type: reference
* Path: Questionnaire.subject
*

*/ public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Questionnaire.subject". */ public static final Include INCLUDE_SUBJECT = new Include("Questionnaire.subject"); /** * Search parameter constant for author *

* Description: The author of the questionnaire
* Type: reference
* Path: Questionnaire.author
*

*/ @SearchParamDefinition(name="author", path="Questionnaire.author", description="The author of the questionnaire", type="reference" ) public static final String SP_AUTHOR = "author"; /** * Fluent Client search parameter constant for author *

* Description: The author of the questionnaire
* Type: reference
* Path: Questionnaire.author
*

*/ public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Questionnaire.author". */ public static final Include INCLUDE_AUTHOR = new Include("Questionnaire.author"); /** * Search parameter constant for identifier *

* Description: An identifier for the questionnaire
* Type: token
* Path: Questionnaire.identifier
*

*/ @SearchParamDefinition(name="identifier", path="Questionnaire.identifier", description="An identifier for the questionnaire", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description: An identifier for the questionnaire
* Type: token
* Path: Questionnaire.identifier
*

*/ public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); /** * Search parameter constant for name *

* Description: Name of the questionnaire
* Type: token
* Path: Questionnaire.name
*

*/ @SearchParamDefinition(name="name", path="Questionnaire.name", description="Name of the questionnaire", type="token" ) public static final String SP_NAME = "name"; /** * Fluent Client search parameter constant for name *

* Description: Name of the questionnaire
* Type: token
* Path: Questionnaire.name
*

*/ public static final TokenClientParam NAME = new TokenClientParam(SP_NAME); /** * Search parameter constant for encounter *

* Description: Encounter during which questionnaire was authored
* Type: reference
* Path: Questionnaire.encounter
*

*/ @SearchParamDefinition(name="encounter", path="Questionnaire.encounter", description="Encounter during which questionnaire was authored", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; /** * Fluent Client search parameter constant for encounter *

* Description: Encounter during which questionnaire was authored
* Type: reference
* Path: Questionnaire.encounter
*

*/ public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Questionnaire.encounter". */ public static final Include INCLUDE_ENCOUNTER = new Include("Questionnaire.encounter"); @Child(name="status", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=true) @Description( shortDefinition="draft | published | retired | in progress | completed | amended", formalDefinition="The lifecycle status of the questionnaire as a whole." ) private BoundCodeDt myStatus; @Child(name="authored", type=DateTimeDt.class, order=1, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Date this version was authored", formalDefinition="The date and/or time that this version of the questionnaire was authored" ) private DateTimeDt myAuthored; @Child(name="subject", order=2, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) @Description( shortDefinition="The subject of the questions", formalDefinition="The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information" ) private ResourceReferenceDt mySubject; @Child(name="author", order=3, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) @Description( shortDefinition="Person who received and recorded the answers", formalDefinition="Person who received the answers to the questions in the Questionnaire and recorded them in the system" ) private ResourceReferenceDt myAuthor; @Child(name="source", order=4, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) @Description( shortDefinition="The person who answered the questions", formalDefinition="The person who answered the questions about the subject. Only used when this is not the subject him/herself" ) private ResourceReferenceDt mySource; @Child(name="name", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Name/code for a predefined list of questions", formalDefinition="Structured name for a predefined list of questions this questionnaire is responding to" ) private BoundCodeableConceptDt myName; @Child(name="identifier", type=IdentifierDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="External Ids for this questionnaire", formalDefinition="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)" ) private java.util.List myIdentifier; @Child(name="encounter", order=7, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Encounter.class }) @Description( shortDefinition="Primary encounter during which the answers were collected", formalDefinition="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." ) private ResourceReferenceDt myEncounter; @Child(name="group", order=8, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Grouped questions", formalDefinition="A group of questions to a possibly similarly grouped set of questions in the questionnaire" ) private Group myGroup; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myAuthored, mySubject, myAuthor, mySource, myName, myIdentifier, myEncounter, myGroup); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStatus, myAuthored, mySubject, myAuthor, mySource, myName, myIdentifier, myEncounter, myGroup); } /** * Gets the value(s) for status (draft | published | retired | in progress | completed | amended). * creating it if it does * not exist. Will not return null. * *

* Definition: * The lifecycle status of the questionnaire as a whole. *

*/ public BoundCodeDt getStatus() { if (myStatus == null) { myStatus = new BoundCodeDt(QuestionnaireStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Gets the value(s) for status (draft | published | retired | in progress | completed | amended). * creating it if it does * not exist. Will not return null. * *

* Definition: * The lifecycle status of the questionnaire as a whole. *

*/ public BoundCodeDt getStatusElement() { if (myStatus == null) { myStatus = new BoundCodeDt(QuestionnaireStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Sets the value(s) for status (draft | published | retired | in progress | completed | amended) * *

* Definition: * The lifecycle status of the questionnaire as a whole. *

*/ public Questionnaire setStatus(BoundCodeDt theValue) { myStatus = theValue; return this; } /** * Sets the value(s) for status (draft | published | retired | in progress | completed | amended) * *

* Definition: * The lifecycle status of the questionnaire as a whole. *

*/ public Questionnaire setStatus(QuestionnaireStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for authored (Date this version was authored). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date and/or time that this version of the questionnaire was authored *

*/ public DateTimeDt getAuthored() { if (myAuthored == null) { myAuthored = new DateTimeDt(); } return myAuthored; } /** * Gets the value(s) for authored (Date this version was authored). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date and/or time that this version of the questionnaire was authored *

*/ public DateTimeDt getAuthoredElement() { if (myAuthored == null) { myAuthored = new DateTimeDt(); } return myAuthored; } /** * Sets the value(s) for authored (Date this version was authored) * *

* Definition: * The date and/or time that this version of the questionnaire was authored *

*/ public Questionnaire setAuthored(DateTimeDt theValue) { myAuthored = theValue; return this; } /** * Sets the value for authored (Date this version was authored) * *

* Definition: * The date and/or time that this version of the questionnaire was authored *

*/ public Questionnaire setAuthored( Date theDate, TemporalPrecisionEnum thePrecision) { myAuthored = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for authored (Date this version was authored) * *

* Definition: * The date and/or time that this version of the questionnaire was authored *

*/ public Questionnaire setAuthoredWithSecondsPrecision( Date theDate) { myAuthored = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for subject (The subject of the questions). * creating it if it does * not exist. Will not return 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 ResourceReferenceDt getSubject() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Gets the value(s) for subject (The subject of the questions). * creating it if it does * not exist. Will not return 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 ResourceReferenceDt getSubjectElement() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Sets the value(s) for subject (The subject of the questions) * *

* 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) { mySubject = theValue; return this; } /** * Gets the value(s) for author (Person who received and recorded the answers). * creating it if it does * not exist. Will not return null. * *

* Definition: * Person who received the answers to the questions in the Questionnaire and recorded them in the system *

*/ public ResourceReferenceDt getAuthor() { if (myAuthor == null) { myAuthor = new ResourceReferenceDt(); } return myAuthor; } /** * Gets the value(s) for author (Person who received and recorded the answers). * creating it if it does * not exist. Will not return null. * *

* Definition: * Person who received the answers to the questions in the Questionnaire and recorded them in the system *

*/ public ResourceReferenceDt getAuthorElement() { if (myAuthor == null) { myAuthor = new ResourceReferenceDt(); } return myAuthor; } /** * Sets the value(s) for author (Person who received and recorded the answers) * *

* Definition: * Person who received the answers to the questions in the Questionnaire and recorded them in the system *

*/ public Questionnaire setAuthor(ResourceReferenceDt theValue) { myAuthor = theValue; return this; } /** * Gets the value(s) for source (The person who answered the questions). * creating it if it does * not exist. Will not return null. * *

* Definition: * The person who answered the questions about the subject. Only used when this is not the subject him/herself *

*/ public ResourceReferenceDt getSource() { if (mySource == null) { mySource = new ResourceReferenceDt(); } return mySource; } /** * Gets the value(s) for source (The person who answered the questions). * creating it if it does * not exist. Will not return null. * *

* Definition: * The person who answered the questions about the subject. Only used when this is not the subject him/herself *

*/ public ResourceReferenceDt getSourceElement() { if (mySource == null) { mySource = new ResourceReferenceDt(); } return mySource; } /** * Sets the value(s) for source (The person who answered the questions) * *

* 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) { mySource = theValue; return this; } /** * Gets the value(s) for name (Name/code for a predefined list of questions). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured name for a predefined list of questions this questionnaire is responding to *

*/ public BoundCodeableConceptDt getName() { if (myName == null) { myName = new BoundCodeableConceptDt(QuestionnaireNameEnum.VALUESET_BINDER); } return myName; } /** * Gets the value(s) for name (Name/code for a predefined list of questions). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured name for a predefined list of questions this questionnaire is responding to *

*/ public BoundCodeableConceptDt getNameElement() { if (myName == null) { myName = new BoundCodeableConceptDt(QuestionnaireNameEnum.VALUESET_BINDER); } return myName; } /** * Sets the value(s) for name (Name/code for a predefined list of questions) * *

* Definition: * Structured name for a predefined list of questions this questionnaire is responding to *

*/ public Questionnaire setName(BoundCodeableConceptDt theValue) { myName = theValue; return this; } /** * Sets the value(s) for name (Name/code for a predefined list of questions) * *

* Definition: * Structured name for a predefined list of questions this questionnaire is responding to *

*/ public Questionnaire setName(QuestionnaireNameEnum theValue) { getName().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for identifier (External Ids for this questionnaire). * creating it if it does * not exist. Will not return 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 java.util.List getIdentifier() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Gets the value(s) for identifier (External Ids for this questionnaire). * creating it if it does * not exist. Will not return 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 java.util.List getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Sets the value(s) for identifier (External Ids for this questionnaire) * *

* 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(java.util.List theValue) { myIdentifier = theValue; return this; } /** * Adds and returns a new value for identifier (External Ids for this questionnaire) * *

* 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() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Gets the first repetition for identifier (External Ids for this questionnaire), * creating it if it does not already exist. * *

* 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() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Adds a new value for identifier (External Ids for this questionnaire) * *

* 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) *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Questionnaire addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); return this; } /** * Adds a new value for identifier (External Ids for this questionnaire) * *

* 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) *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Questionnaire addIdentifier( String theSystem, String theValue) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theSystem, theValue)); return this; } /** * Gets the value(s) for encounter (Primary encounter during which the answers were collected). * creating it if it does * not exist. Will not return 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 ResourceReferenceDt getEncounter() { if (myEncounter == null) { myEncounter = new ResourceReferenceDt(); } return myEncounter; } /** * Gets the value(s) for encounter (Primary encounter during which the answers were collected). * creating it if it does * not exist. Will not return 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 ResourceReferenceDt getEncounterElement() { if (myEncounter == null) { myEncounter = new ResourceReferenceDt(); } return myEncounter; } /** * Sets the value(s) for encounter (Primary encounter during which the answers were collected) * *

* 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) { myEncounter = theValue; return this; } /** * Gets the value(s) for group (Grouped questions). * creating it if it does * not exist. Will not return null. * *

* Definition: * A group of questions to a possibly similarly grouped set of questions in the questionnaire *

*/ public Group getGroup() { if (myGroup == null) { myGroup = new Group(); } return myGroup; } /** * Gets the value(s) for group (Grouped questions). * creating it if it does * not exist. Will not return null. * *

* Definition: * A group of questions to a possibly similarly grouped set of questions in the questionnaire *

*/ public Group getGroupElement() { if (myGroup == null) { myGroup = new Group(); } return myGroup; } /** * Sets the value(s) for group (Grouped questions) * *

* Definition: * A group of questions to a possibly similarly grouped set of questions in the questionnaire *

*/ public Questionnaire setGroup(Group theValue) { myGroup = theValue; return this; } /** * Block class for child element: Questionnaire.group (Grouped questions) * *

* Definition: * A group of questions to a possibly similarly grouped set of questions in the questionnaire *

*/ @Block() public static class Group extends BaseIdentifiableElement implements IResourceBlock { @Child(name="name", type=CodeableConceptDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Code or name of the section on a questionnaire", formalDefinition="Structured name for a section of a predefined list of questions this questionnaire is responding to." ) private BoundCodeableConceptDt myName; @Child(name="header", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Text that is displayed above the contents of the group", formalDefinition="" ) private StringDt myHeader; @Child(name="text", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Additional text for the group", formalDefinition="Additional text for the group, used for display purposes" ) private StringDt myText; @Child(name="subject", order=3, min=0, max=1, summary=false, modifier=false, type={ IResource.class }) @Description( shortDefinition="The subject this group's answers are about", formalDefinition="More specific subject this section's answers are about, details the subject given in Questionnaire" ) private ResourceReferenceDt mySubject; @Child(name="group", type=Group.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Nested questionnaire group", formalDefinition="A sub-group within a group. The ordering of groups within this group is relevant" ) private java.util.List myGroup; @Child(name="question", order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Questions in this group", formalDefinition="Set of questions within this group. The order of questions within the group is relevant" ) private java.util.List myQuestion; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myHeader, myText, mySubject, myGroup, myQuestion); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myHeader, myText, mySubject, myGroup, myQuestion); } /** * Gets the value(s) for name (Code or name of the section on a questionnaire). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured name for a section of a predefined list of questions this questionnaire is responding to. *

*/ public BoundCodeableConceptDt getName() { if (myName == null) { myName = new BoundCodeableConceptDt(QuestionnaireGroupNameEnum.VALUESET_BINDER); } return myName; } /** * Gets the value(s) for name (Code or name of the section on a questionnaire). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured name for a section of a predefined list of questions this questionnaire is responding to. *

*/ public BoundCodeableConceptDt getNameElement() { if (myName == null) { myName = new BoundCodeableConceptDt(QuestionnaireGroupNameEnum.VALUESET_BINDER); } return myName; } /** * Sets the value(s) for name (Code or name of the section on a questionnaire) * *

* Definition: * Structured name for a section of a predefined list of questions this questionnaire is responding to. *

*/ public Group setName(BoundCodeableConceptDt theValue) { myName = theValue; return this; } /** * Sets the value(s) for name (Code or name of the section on a questionnaire) * *

* Definition: * Structured name for a section of a predefined list of questions this questionnaire is responding to. *

*/ public Group setName(QuestionnaireGroupNameEnum theValue) { getName().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for header (Text that is displayed above the contents of the group). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getHeader() { if (myHeader == null) { myHeader = new StringDt(); } return myHeader; } /** * Gets the value(s) for header (Text that is displayed above the contents of the group). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getHeaderElement() { if (myHeader == null) { myHeader = new StringDt(); } return myHeader; } /** * Sets the value(s) for header (Text that is displayed above the contents of the group) * *

* Definition: * *

*/ public Group setHeader(StringDt theValue) { myHeader = theValue; return this; } /** * Sets the value for header (Text that is displayed above the contents of the group) * *

* Definition: * *

*/ public Group setHeader( String theString) { myHeader = new StringDt(theString); return this; } /** * Gets the value(s) for text (Additional text for the group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Additional text for the group, used for display purposes *

*/ public StringDt getText() { if (myText == null) { myText = new StringDt(); } return myText; } /** * Gets the value(s) for text (Additional text for the group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Additional text for the group, used for display purposes *

*/ public StringDt getTextElement() { if (myText == null) { myText = new StringDt(); } return myText; } /** * Sets the value(s) for text (Additional text for the group) * *

* Definition: * Additional text for the group, used for display purposes *

*/ public Group setText(StringDt theValue) { myText = theValue; return this; } /** * Sets the value for text (Additional text for the group) * *

* Definition: * Additional text for the group, used for display purposes *

*/ public Group setText( String theString) { myText = new StringDt(theString); return this; } /** * Gets the value(s) for subject (The subject this group's answers are about). * creating it if it does * not exist. Will not return null. * *

* Definition: * More specific subject this section's answers are about, details the subject given in Questionnaire *

*/ public ResourceReferenceDt getSubject() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Gets the value(s) for subject (The subject this group's answers are about). * creating it if it does * not exist. Will not return null. * *

* Definition: * More specific subject this section's answers are about, details the subject given in Questionnaire *

*/ public ResourceReferenceDt getSubjectElement() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Sets the value(s) for subject (The subject this group's answers are about) * *

* Definition: * More specific subject this section's answers are about, details the subject given in Questionnaire *

*/ public Group setSubject(ResourceReferenceDt theValue) { mySubject = theValue; return this; } /** * Gets the value(s) for group (Nested questionnaire group). * creating it if it does * not exist. Will not return null. * *

* Definition: * A sub-group within a group. The ordering of groups within this group is relevant *

*/ public java.util.List getGroup() { if (myGroup == null) { myGroup = new java.util.ArrayList(); } return myGroup; } /** * Gets the value(s) for group (Nested questionnaire group). * creating it if it does * not exist. Will not return null. * *

* Definition: * A sub-group within a group. The ordering of groups within this group is relevant *

*/ public java.util.List getGroupElement() { if (myGroup == null) { myGroup = new java.util.ArrayList(); } return myGroup; } /** * Sets the value(s) for group (Nested questionnaire group) * *

* Definition: * A sub-group within a group. The ordering of groups within this group is relevant *

*/ public Group setGroup(java.util.List theValue) { myGroup = theValue; return this; } /** * Adds and returns a new value for group (Nested questionnaire group) * *

* Definition: * A sub-group within a group. The ordering of groups within this group is relevant *

*/ public Group addGroup() { Group newType = new Group(); getGroup().add(newType); return newType; } /** * Gets the first repetition for group (Nested questionnaire group), * creating it if it does not already exist. * *

* Definition: * A sub-group within a group. The ordering of groups within this group is relevant *

*/ public Group getGroupFirstRep() { if (getGroup().isEmpty()) { return addGroup(); } return getGroup().get(0); } /** * Gets the value(s) for question (Questions in this group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Set of questions within this group. The order of questions within the group is relevant *

*/ public java.util.List getQuestion() { if (myQuestion == null) { myQuestion = new java.util.ArrayList(); } return myQuestion; } /** * Gets the value(s) for question (Questions in this group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Set of questions within this group. The order of questions within the group is relevant *

*/ public java.util.List getQuestionElement() { if (myQuestion == null) { myQuestion = new java.util.ArrayList(); } return myQuestion; } /** * Sets the value(s) for question (Questions in this group) * *

* Definition: * Set of questions within this group. The order of questions within the group is relevant *

*/ public Group setQuestion(java.util.List theValue) { myQuestion = theValue; return this; } /** * Adds and returns a new value for question (Questions in this group) * *

* Definition: * Set of questions within this group. The order of questions within the group is relevant *

*/ public GroupQuestion addQuestion() { GroupQuestion newType = new GroupQuestion(); getQuestion().add(newType); return newType; } /** * Gets the first repetition for question (Questions in this group), * creating it if it does not already exist. * *

* Definition: * Set of questions within this group. The order of questions within the group is relevant *

*/ public GroupQuestion getQuestionFirstRep() { if (getQuestion().isEmpty()) { return addQuestion(); } return getQuestion().get(0); } } /** * Block class for child element: Questionnaire.group.question (Questions in this group) * *

* Definition: * Set of questions within this group. The order of questions within the group is relevant *

*/ @Block() public static class GroupQuestion extends BaseIdentifiableElement implements IResourceBlock { @Child(name="name", type=CodeableConceptDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Code or name of the question", formalDefinition="Structured name for the question that identifies this question within the Questionnaire or Group" ) private CodeableConceptDt myName; @Child(name="text", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Text of the question as it is shown to the user", formalDefinition="" ) private StringDt myText; @Child(name="answer", order=2, min=0, max=1, summary=false, modifier=false, type={ DecimalDt.class, IntegerDt.class, BooleanDt.class, DateDt.class, StringDt.class, DateTimeDt.class, InstantDt.class }) @Description( shortDefinition="Single-valued answer to the question", formalDefinition="Single-valued answer to the question" ) private IDatatype myAnswer; @Child(name="choice", type=CodingDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Selected options", formalDefinition="Selections made by the user from the list of options" ) private java.util.List myChoice; @Child(name="options", order=4, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.ValueSet.class }) @Description( shortDefinition="Valueset containing the possible options", formalDefinition="Reference to a valueset containing the possible options" ) private ResourceReferenceDt myOptions; @Child(name="data", type=IDatatype.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Structured answer", formalDefinition="Structured answer in the form of a FHIR Resource or datatype" ) private IDatatype myData; @Child(name="remarks", type=StringDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Remarks about the answer given", formalDefinition="The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself." ) private StringDt myRemarks; @Child(name="group", type=Group.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Nested questionnaire group", formalDefinition="Nested group, containing nested question for this question. The order of groups within the question is relevant" ) private java.util.List myGroup; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myText, myAnswer, myChoice, myOptions, myData, myRemarks, myGroup); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myText, myAnswer, myChoice, myOptions, myData, myRemarks, myGroup); } /** * Gets the value(s) for name (Code or name of the question). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured name for the question that identifies this question within the Questionnaire or Group *

*/ public CodeableConceptDt getName() { if (myName == null) { myName = new CodeableConceptDt(); } return myName; } /** * Gets the value(s) for name (Code or name of the question). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured name for the question that identifies this question within the Questionnaire or Group *

*/ public CodeableConceptDt getNameElement() { if (myName == null) { myName = new CodeableConceptDt(); } return myName; } /** * Sets the value(s) for name (Code or name of the question) * *

* Definition: * Structured name for the question that identifies this question within the Questionnaire or Group *

*/ public GroupQuestion setName(CodeableConceptDt theValue) { myName = theValue; return this; } /** * Gets the value(s) for text (Text of the question as it is shown to the user). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getText() { if (myText == null) { myText = new StringDt(); } return myText; } /** * Gets the value(s) for text (Text of the question as it is shown to the user). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getTextElement() { if (myText == null) { myText = new StringDt(); } return myText; } /** * Sets the value(s) for text (Text of the question as it is shown to the user) * *

* Definition: * *

*/ public GroupQuestion setText(StringDt theValue) { myText = theValue; return this; } /** * Sets the value for text (Text of the question as it is shown to the user) * *

* Definition: * *

*/ public GroupQuestion setText( String theString) { myText = new StringDt(theString); return this; } /** * Gets the value(s) for answer[x] (Single-valued answer to the question). * creating it if it does * not exist. Will not return null. * *

* Definition: * Single-valued answer to the question *

*/ public IDatatype getAnswer() { return myAnswer; } /** * Gets the value(s) for answer[x] (Single-valued answer to the question). * creating it if it does * not exist. Will not return null. * *

* Definition: * Single-valued answer to the question *

*/ public IDatatype getAnswerElement() { return myAnswer; } /** * Sets the value(s) for answer[x] (Single-valued answer to the question) * *

* Definition: * Single-valued answer to the question *

*/ public GroupQuestion setAnswer(IDatatype theValue) { myAnswer = theValue; return this; } /** * Gets the value(s) for choice (Selected options). * creating it if it does * not exist. Will not return null. * *

* Definition: * Selections made by the user from the list of options *

*/ public java.util.List getChoice() { if (myChoice == null) { myChoice = new java.util.ArrayList(); } return myChoice; } /** * Gets the value(s) for choice (Selected options). * creating it if it does * not exist. Will not return null. * *

* Definition: * Selections made by the user from the list of options *

*/ public java.util.List getChoiceElement() { if (myChoice == null) { myChoice = new java.util.ArrayList(); } return myChoice; } /** * Sets the value(s) for choice (Selected options) * *

* Definition: * Selections made by the user from the list of options *

*/ public GroupQuestion setChoice(java.util.List theValue) { myChoice = theValue; return this; } /** * Adds and returns a new value for choice (Selected options) * *

* Definition: * Selections made by the user from the list of options *

*/ public CodingDt addChoice() { CodingDt newType = new CodingDt(); getChoice().add(newType); return newType; } /** * Gets the first repetition for choice (Selected options), * creating it if it does not already exist. * *

* Definition: * Selections made by the user from the list of options *

*/ public CodingDt getChoiceFirstRep() { if (getChoice().isEmpty()) { return addChoice(); } return getChoice().get(0); } /** * Gets the value(s) for options (Valueset containing the possible options). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reference to a valueset containing the possible options *

*/ public ResourceReferenceDt getOptions() { if (myOptions == null) { myOptions = new ResourceReferenceDt(); } return myOptions; } /** * Gets the value(s) for options (Valueset containing the possible options). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reference to a valueset containing the possible options *

*/ public ResourceReferenceDt getOptionsElement() { if (myOptions == null) { myOptions = new ResourceReferenceDt(); } return myOptions; } /** * Sets the value(s) for options (Valueset containing the possible options) * *

* Definition: * Reference to a valueset containing the possible options *

*/ public GroupQuestion setOptions(ResourceReferenceDt theValue) { myOptions = theValue; return this; } /** * Gets the value(s) for data[x] (Structured answer). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured answer in the form of a FHIR Resource or datatype *

*/ public IDatatype getData() { return myData; } /** * Gets the value(s) for data[x] (Structured answer). * creating it if it does * not exist. Will not return null. * *

* Definition: * Structured answer in the form of a FHIR Resource or datatype *

*/ public IDatatype getDataElement() { return myData; } /** * Sets the value(s) for data[x] (Structured answer) * *

* Definition: * Structured answer in the form of a FHIR Resource or datatype *

*/ public GroupQuestion setData(IDatatype theValue) { myData = theValue; return this; } /** * Gets the value(s) for remarks (Remarks about the answer given). * creating it if it does * not exist. Will not return null. * *

* Definition: * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. *

*/ public StringDt getRemarks() { if (myRemarks == null) { myRemarks = new StringDt(); } return myRemarks; } /** * Gets the value(s) for remarks (Remarks about the answer given). * creating it if it does * not exist. Will not return null. * *

* Definition: * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. *

*/ public StringDt getRemarksElement() { if (myRemarks == null) { myRemarks = new StringDt(); } return myRemarks; } /** * Sets the value(s) for remarks (Remarks about the answer given) * *

* Definition: * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. *

*/ public GroupQuestion setRemarks(StringDt theValue) { myRemarks = theValue; return this; } /** * Sets the value for remarks (Remarks about the answer given) * *

* Definition: * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. *

*/ public GroupQuestion setRemarks( String theString) { myRemarks = new StringDt(theString); return this; } /** * Gets the value(s) for group (Nested questionnaire group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Nested group, containing nested question for this question. The order of groups within the question is relevant *

*/ public java.util.List getGroup() { if (myGroup == null) { myGroup = new java.util.ArrayList(); } return myGroup; } /** * Gets the value(s) for group (Nested questionnaire group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Nested group, containing nested question for this question. The order of groups within the question is relevant *

*/ public java.util.List getGroupElement() { if (myGroup == null) { myGroup = new java.util.ArrayList(); } return myGroup; } /** * Sets the value(s) for group (Nested questionnaire group) * *

* Definition: * Nested group, containing nested question for this question. The order of groups within the question is relevant *

*/ public GroupQuestion setGroup(java.util.List theValue) { myGroup = theValue; return this; } /** * Adds and returns a new value for group (Nested questionnaire group) * *

* Definition: * Nested group, containing nested question for this question. The order of groups within the question is relevant *

*/ public Group addGroup() { Group newType = new Group(); getGroup().add(newType); return newType; } /** * Gets the first repetition for group (Nested questionnaire group), * creating it if it does not already exist. * *

* Definition: * Nested group, containing nested question for this question. The order of groups within the question is relevant *

*/ public Group getGroupFirstRep() { if (getGroup().isEmpty()) { return addGroup(); } return getGroup().get(0); } } @Override public String getResourceName() { return "Questionnaire"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy