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

ca.uhn.fhir.model.dstu.resource.Group 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 Group Resource
 * (Group of multiple entities)
 *
 * 

* Definition: * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization *

* *

* Requirements: * *

* *

* Profile Definition: * http://hl7.org/fhir/profiles/Group *

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

* Description: The type of resources the group contains
* Type: token
* Path: Group.type
*

*/ @SearchParamDefinition(name="type", path="Group.type", description="The type of resources the group contains", type="token" ) public static final String SP_TYPE = "type"; /** * Fluent Client search parameter constant for type *

* Description: The type of resources the group contains
* Type: token
* Path: Group.type
*

*/ public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); /** * Search parameter constant for code *

* Description: The kind of resources contained
* Type: token
* Path: Group.code
*

*/ @SearchParamDefinition(name="code", path="Group.code", description="The kind of resources contained", type="token" ) public static final String SP_CODE = "code"; /** * Fluent Client search parameter constant for code *

* Description: The kind of resources contained
* Type: token
* Path: Group.code
*

*/ public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); /** * Search parameter constant for actual *

* Description:
* Type: token
* Path: Group.actual
*

*/ @SearchParamDefinition(name="actual", path="Group.actual", description="", type="token" ) public static final String SP_ACTUAL = "actual"; /** * Fluent Client search parameter constant for actual *

* Description:
* Type: token
* Path: Group.actual
*

*/ public static final TokenClientParam ACTUAL = new TokenClientParam(SP_ACTUAL); /** * Search parameter constant for identifier *

* Description:
* Type: token
* Path: Group.identifier
*

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

* Description:
* Type: token
* Path: Group.identifier
*

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

* Description:
* Type: reference
* Path: Group.member
*

*/ @SearchParamDefinition(name="member", path="Group.member", description="", type="reference" ) public static final String SP_MEMBER = "member"; /** * Fluent Client search parameter constant for member *

* Description:
* Type: reference
* Path: Group.member
*

*/ public static final ReferenceClientParam MEMBER = new ReferenceClientParam(SP_MEMBER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Group.member". */ public static final Include INCLUDE_MEMBER = new Include("Group.member"); /** * Search parameter constant for characteristic *

* Description:
* Type: token
* Path: Group.characteristic.code
*

*/ @SearchParamDefinition(name="characteristic", path="Group.characteristic.code", description="", type="token" ) public static final String SP_CHARACTERISTIC = "characteristic"; /** * Fluent Client search parameter constant for characteristic *

* Description:
* Type: token
* Path: Group.characteristic.code
*

*/ public static final TokenClientParam CHARACTERISTIC = new TokenClientParam(SP_CHARACTERISTIC); /** * Search parameter constant for value *

* Description:
* Type: token
* Path: Group.characteristic.value[x]
*

*/ @SearchParamDefinition(name="value", path="Group.characteristic.value[x]", description="", type="token" ) public static final String SP_VALUE = "value"; /** * Fluent Client search parameter constant for value *

* Description:
* Type: token
* Path: Group.characteristic.value[x]
*

*/ public static final TokenClientParam VALUE = new TokenClientParam(SP_VALUE); /** * Search parameter constant for exclude *

* Description:
* Type: token
* Path: Group.characteristic.exclude
*

*/ @SearchParamDefinition(name="exclude", path="Group.characteristic.exclude", description="", type="token" ) public static final String SP_EXCLUDE = "exclude"; /** * Fluent Client search parameter constant for exclude *

* Description:
* Type: token
* Path: Group.characteristic.exclude
*

*/ public static final TokenClientParam EXCLUDE = new TokenClientParam(SP_EXCLUDE); /** * Search parameter constant for characteristic-value *

* Description: A composite of both characteristic and value
* Type: composite
* Path: characteristic & value
*

*/ @SearchParamDefinition(name="characteristic-value", path="characteristic & value", description="A composite of both characteristic and value", type="composite" , compositeOf={ "characteristic", "value" } ) public static final String SP_CHARACTERISTIC_VALUE = "characteristic-value"; /** * Fluent Client search parameter constant for characteristic-value *

* Description: A composite of both characteristic and value
* Type: composite
* Path: characteristic & value
*

*/ public static final CompositeClientParam CHARACTERISTIC_VALUE = new CompositeClientParam(SP_CHARACTERISTIC_VALUE); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Unique id", formalDefinition="A unique business identifier for this group" ) private IdentifierDt myIdentifier; @Child(name="type", type=CodeDt.class, order=1, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="person | animal | practitioner | device | medication | substance", formalDefinition="Identifies the broad classification of the kind of resources the group includes" ) private BoundCodeDt myType; @Child(name="actual", type=BooleanDt.class, order=2, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Descriptive or actual", formalDefinition="If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals" ) private BooleanDt myActual; @Child(name="code", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Kind of Group members", formalDefinition="Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc." ) private CodeableConceptDt myCode; @Child(name="name", type=StringDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Label for Group", formalDefinition="A label assigned to the group for human identification and communication" ) private StringDt myName; @Child(name="quantity", type=IntegerDt.class, order=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Number of members", formalDefinition="A count of the number of resource instances that are part of the group" ) private IntegerDt myQuantity; @Child(name="characteristic", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Trait of group members", formalDefinition="Identifies the traits shared by members of the group" ) private java.util.List myCharacteristic; @Child(name="member", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, 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.Device.class, ca.uhn.fhir.model.dstu.resource.Medication.class, ca.uhn.fhir.model.dstu.resource.Substance.class }) @Description( shortDefinition="Who is in group", formalDefinition="Identifies the resource instances that are members of the group." ) private java.util.List myMember; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember); } /** * Gets the value(s) for identifier (Unique id). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique business identifier for this group *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Gets the value(s) for identifier (Unique id). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique business identifier for this group *

*/ public IdentifierDt getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier (Unique id) * *

* Definition: * A unique business identifier for this group *

*/ public Group setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Sets the value for identifier (Unique id) * *

* Definition: * A unique business identifier for this group *

*/ public Group setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for identifier (Unique id) * *

* Definition: * A unique business identifier for this group *

*/ public Group setIdentifier( String theSystem, String theValue) { myIdentifier = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for type (person | animal | practitioner | device | medication | substance). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the broad classification of the kind of resources the group includes *

*/ public BoundCodeDt getType() { if (myType == null) { myType = new BoundCodeDt(GroupTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (person | animal | practitioner | device | medication | substance). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the broad classification of the kind of resources the group includes *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(GroupTypeEnum.VALUESET_BINDER); } return myType; } /** * Sets the value(s) for type (person | animal | practitioner | device | medication | substance) * *

* Definition: * Identifies the broad classification of the kind of resources the group includes *

*/ public Group setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type (person | animal | practitioner | device | medication | substance) * *

* Definition: * Identifies the broad classification of the kind of resources the group includes *

*/ public Group setType(GroupTypeEnum theValue) { getType().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for actual (Descriptive or actual). * creating it if it does * not exist. Will not return null. * *

* Definition: * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals *

*/ public BooleanDt getActual() { if (myActual == null) { myActual = new BooleanDt(); } return myActual; } /** * Gets the value(s) for actual (Descriptive or actual). * creating it if it does * not exist. Will not return null. * *

* Definition: * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals *

*/ public BooleanDt getActualElement() { if (myActual == null) { myActual = new BooleanDt(); } return myActual; } /** * Sets the value(s) for actual (Descriptive or actual) * *

* Definition: * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals *

*/ public Group setActual(BooleanDt theValue) { myActual = theValue; return this; } /** * Sets the value for actual (Descriptive or actual) * *

* Definition: * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals *

*/ public Group setActual( boolean theBoolean) { myActual = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for code (Kind of Group members). * creating it if it does * not exist. Will not return null. * *

* Definition: * Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc. *

*/ public CodeableConceptDt getCode() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Gets the value(s) for code (Kind of Group members). * creating it if it does * not exist. Will not return null. * *

* Definition: * Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc. *

*/ public CodeableConceptDt getCodeElement() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Sets the value(s) for code (Kind of Group members) * *

* Definition: * Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc. *

*/ public Group setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for name (Label for Group). * creating it if it does * not exist. Will not return null. * *

* Definition: * A label assigned to the group for human identification and communication *

*/ public StringDt getName() { if (myName == null) { myName = new StringDt(); } return myName; } /** * Gets the value(s) for name (Label for Group). * creating it if it does * not exist. Will not return null. * *

* Definition: * A label assigned to the group for human identification and communication *

*/ public StringDt getNameElement() { if (myName == null) { myName = new StringDt(); } return myName; } /** * Sets the value(s) for name (Label for Group) * *

* Definition: * A label assigned to the group for human identification and communication *

*/ public Group setName(StringDt theValue) { myName = theValue; return this; } /** * Sets the value for name (Label for Group) * *

* Definition: * A label assigned to the group for human identification and communication *

*/ public Group setName( String theString) { myName = new StringDt(theString); return this; } /** * Gets the value(s) for quantity (Number of members). * creating it if it does * not exist. Will not return null. * *

* Definition: * A count of the number of resource instances that are part of the group *

*/ public IntegerDt getQuantity() { if (myQuantity == null) { myQuantity = new IntegerDt(); } return myQuantity; } /** * Gets the value(s) for quantity (Number of members). * creating it if it does * not exist. Will not return null. * *

* Definition: * A count of the number of resource instances that are part of the group *

*/ public IntegerDt getQuantityElement() { if (myQuantity == null) { myQuantity = new IntegerDt(); } return myQuantity; } /** * Sets the value(s) for quantity (Number of members) * *

* Definition: * A count of the number of resource instances that are part of the group *

*/ public Group setQuantity(IntegerDt theValue) { myQuantity = theValue; return this; } /** * Sets the value for quantity (Number of members) * *

* Definition: * A count of the number of resource instances that are part of the group *

*/ public Group setQuantity( int theInteger) { myQuantity = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for characteristic (Trait of group members). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the traits shared by members of the group *

*/ public java.util.List getCharacteristic() { if (myCharacteristic == null) { myCharacteristic = new java.util.ArrayList(); } return myCharacteristic; } /** * Gets the value(s) for characteristic (Trait of group members). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the traits shared by members of the group *

*/ public java.util.List getCharacteristicElement() { if (myCharacteristic == null) { myCharacteristic = new java.util.ArrayList(); } return myCharacteristic; } /** * Sets the value(s) for characteristic (Trait of group members) * *

* Definition: * Identifies the traits shared by members of the group *

*/ public Group setCharacteristic(java.util.List theValue) { myCharacteristic = theValue; return this; } /** * Adds and returns a new value for characteristic (Trait of group members) * *

* Definition: * Identifies the traits shared by members of the group *

*/ public Characteristic addCharacteristic() { Characteristic newType = new Characteristic(); getCharacteristic().add(newType); return newType; } /** * Gets the first repetition for characteristic (Trait of group members), * creating it if it does not already exist. * *

* Definition: * Identifies the traits shared by members of the group *

*/ public Characteristic getCharacteristicFirstRep() { if (getCharacteristic().isEmpty()) { return addCharacteristic(); } return getCharacteristic().get(0); } /** * Gets the value(s) for member (Who is in group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the resource instances that are members of the group. *

*/ public java.util.List getMember() { if (myMember == null) { myMember = new java.util.ArrayList(); } return myMember; } /** * Gets the value(s) for member (Who is in group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the resource instances that are members of the group. *

*/ public java.util.List getMemberElement() { if (myMember == null) { myMember = new java.util.ArrayList(); } return myMember; } /** * Sets the value(s) for member (Who is in group) * *

* Definition: * Identifies the resource instances that are members of the group. *

*/ public Group setMember(java.util.List theValue) { myMember = theValue; return this; } /** * Adds and returns a new value for member (Who is in group) * *

* Definition: * Identifies the resource instances that are members of the group. *

*/ public ResourceReferenceDt addMember() { ResourceReferenceDt newType = new ResourceReferenceDt(); getMember().add(newType); return newType; } /** * Block class for child element: Group.characteristic (Trait of group members) * *

* Definition: * Identifies the traits shared by members of the group *

*/ @Block() public static class Characteristic extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Kind of characteristic", formalDefinition="A code that identifies the kind of trait being asserted" ) private CodeableConceptDt myCode; @Child(name="value", order=1, min=1, max=1, summary=false, modifier=false, type={ CodeableConceptDt.class, BooleanDt.class, QuantityDt.class, RangeDt.class }) @Description( shortDefinition="Value held by characteristic", formalDefinition="The value of the trait that holds (or does not hold - see 'exclude') for members of the group" ) private IDatatype myValue; @Child(name="exclude", type=BooleanDt.class, order=2, min=1, max=1, summary=false, modifier=true) @Description( shortDefinition="Group includes or excludes", formalDefinition="If true, indicates the characteristic is one that is NOT held by members of the group" ) private BooleanDt myExclude; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myValue, myExclude); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myValue, myExclude); } /** * Gets the value(s) for code (Kind of characteristic). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code that identifies the kind of trait being asserted *

*/ public CodeableConceptDt getCode() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Gets the value(s) for code (Kind of characteristic). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code that identifies the kind of trait being asserted *

*/ public CodeableConceptDt getCodeElement() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Sets the value(s) for code (Kind of characteristic) * *

* Definition: * A code that identifies the kind of trait being asserted *

*/ public Characteristic setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for value[x] (Value held by characteristic). * creating it if it does * not exist. Will not return null. * *

* Definition: * The value of the trait that holds (or does not hold - see 'exclude') for members of the group *

*/ public IDatatype getValue() { return myValue; } /** * Gets the value(s) for value[x] (Value held by characteristic). * creating it if it does * not exist. Will not return null. * *

* Definition: * The value of the trait that holds (or does not hold - see 'exclude') for members of the group *

*/ public IDatatype getValueElement() { return myValue; } /** * Sets the value(s) for value[x] (Value held by characteristic) * *

* Definition: * The value of the trait that holds (or does not hold - see 'exclude') for members of the group *

*/ public Characteristic setValue(IDatatype theValue) { myValue = theValue; return this; } /** * Gets the value(s) for exclude (Group includes or excludes). * creating it if it does * not exist. Will not return null. * *

* Definition: * If true, indicates the characteristic is one that is NOT held by members of the group *

*/ public BooleanDt getExclude() { if (myExclude == null) { myExclude = new BooleanDt(); } return myExclude; } /** * Gets the value(s) for exclude (Group includes or excludes). * creating it if it does * not exist. Will not return null. * *

* Definition: * If true, indicates the characteristic is one that is NOT held by members of the group *

*/ public BooleanDt getExcludeElement() { if (myExclude == null) { myExclude = new BooleanDt(); } return myExclude; } /** * Sets the value(s) for exclude (Group includes or excludes) * *

* Definition: * If true, indicates the characteristic is one that is NOT held by members of the group *

*/ public Characteristic setExclude(BooleanDt theValue) { myExclude = theValue; return this; } /** * Sets the value for exclude (Group includes or excludes) * *

* Definition: * If true, indicates the characteristic is one that is NOT held by members of the group *

*/ public Characteristic setExclude( boolean theBoolean) { myExclude = new BooleanDt(theBoolean); return this; } } @Override public String getResourceName() { return "Group"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy