Package org.hl7.fhir.dstu2.model
Class Group
-
- 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 Group extends DomainResource
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroup.GroupCharacteristicComponentstatic classGroup.GroupMemberComponentstatic classGroup.GroupTypestatic classGroup.GroupTypeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected BooleanTypeactualIf true, indicates that the resource refers to a specific group of real individuals.protected List<Group.GroupCharacteristicComponent>characteristicIdentifies the traits shared by members of the group.protected CodeableConceptcodeProvides a specific type of resource the group includes; e.g.protected List<Identifier>identifierA unique business identifier for this group.protected List<Group.GroupMemberComponent>memberIdentifies the resource instances that are members of the group.protected StringTypenameA label assigned to the group for human identification and communication.protected UnsignedIntTypequantityA count of the number of resource instances that are part of the group.static StringSP_ACTUALstatic StringSP_CHARACTERISTICstatic StringSP_CHARACTERISTICVALUEstatic StringSP_CODEstatic StringSP_EXCLUDEstatic StringSP_IDENTIFIERstatic StringSP_MEMBERstatic StringSP_TYPEstatic StringSP_VALUEprotected Enumeration<Group.GroupType>typeIdentifies the broad classification of the kind of resources the group includes.-
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 Group()Group(Enumeration<Group.GroupType> type, BooleanType actual)
-
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
A unique business identifier for this group.
-
type
protected Enumeration<Group.GroupType> type
Identifies the broad classification of the kind of resources the group includes.
-
actual
protected BooleanType actual
If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals.
-
code
protected CodeableConcept code
Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.
-
name
protected StringType name
A label assigned to the group for human identification and communication.
-
quantity
protected UnsignedIntType quantity
A count of the number of resource instances that are part of the group.
-
characteristic
protected List<Group.GroupCharacteristicComponent> characteristic
Identifies the traits shared by members of the group.
-
member
protected List<Group.GroupMemberComponent> member
Identifies the resource instances that are members of the group.
-
SP_ACTUAL
public static final String SP_ACTUAL
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_CHARACTERISTICVALUE
public static final String SP_CHARACTERISTICVALUE
- See Also:
- Constant Field Values
-
SP_CODE
public static final String SP_CODE
- See Also:
- Constant Field Values
-
SP_MEMBER
public static final String SP_MEMBER
- See Also:
- Constant Field Values
-
SP_EXCLUDE
public static final String SP_EXCLUDE
- See Also:
- Constant Field Values
-
SP_TYPE
public static final String SP_TYPE
- See Also:
- Constant Field Values
-
SP_VALUE
public static final String SP_VALUE
- See Also:
- Constant Field Values
-
SP_CHARACTERISTIC
public static final String SP_CHARACTERISTIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Group
public Group()
-
Group
public Group(Enumeration<Group.GroupType> type, BooleanType actual)
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(A unique business identifier for this group.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(A unique business identifier for this group.)
-
addIdentifier
public Group addIdentifier(Identifier t)
-
getTypeElement
public Enumeration<Group.GroupType> getTypeElement()
- Returns:
type(Identifies the broad classification of the kind of resources the group includes.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public Group setTypeElement(Enumeration<Group.GroupType> value)
- Parameters:
value-type(Identifies the broad classification of the kind of resources the group includes.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public Group.GroupType getType()
- Returns:
- Identifies the broad classification of the kind of resources the group includes.
-
setType
public Group setType(Group.GroupType value)
- Parameters:
value- Identifies the broad classification of the kind of resources the group includes.
-
getActualElement
public BooleanType getActualElement()
- Returns:
actual(If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value
-
hasActualElement
public boolean hasActualElement()
-
hasActual
public boolean hasActual()
-
setActualElement
public Group setActualElement(BooleanType value)
- Parameters:
value-actual(If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value
-
getActual
public boolean getActual()
- Returns:
- If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals.
-
setActual
public Group setActual(boolean value)
- Parameters:
value- If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals.
-
getCode
public CodeableConcept getCode()
- Returns:
code(Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.)
-
hasCode
public boolean hasCode()
-
setCode
public Group setCode(CodeableConcept value)
- Parameters:
value-code(Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.)
-
getNameElement
public StringType getNameElement()
- Returns:
name(A label assigned to the group for human identification and communication.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
hasNameElement
public boolean hasNameElement()
-
hasName
public boolean hasName()
-
setNameElement
public Group setNameElement(StringType value)
- Parameters:
value-name(A label assigned to the group for human identification and communication.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
public String getName()
- Returns:
- A label assigned to the group for human identification and communication.
-
setName
public Group setName(String value)
- Parameters:
value- A label assigned to the group for human identification and communication.
-
getQuantityElement
public UnsignedIntType getQuantityElement()
- Returns:
quantity(A count of the number of resource instances that are part of the group.). This is the underlying object with id, value and extensions. The accessor "getQuantity" gives direct access to the value
-
hasQuantityElement
public boolean hasQuantityElement()
-
hasQuantity
public boolean hasQuantity()
-
setQuantityElement
public Group setQuantityElement(UnsignedIntType value)
- Parameters:
value-quantity(A count of the number of resource instances that are part of the group.). This is the underlying object with id, value and extensions. The accessor "getQuantity" gives direct access to the value
-
getQuantity
public int getQuantity()
- Returns:
- A count of the number of resource instances that are part of the group.
-
setQuantity
public Group setQuantity(int value)
- Parameters:
value- A count of the number of resource instances that are part of the group.
-
getCharacteristic
public List<Group.GroupCharacteristicComponent> getCharacteristic()
- Returns:
characteristic(Identifies the traits shared by members of the group.)
-
hasCharacteristic
public boolean hasCharacteristic()
-
addCharacteristic
public Group.GroupCharacteristicComponent addCharacteristic()
- Returns:
characteristic(Identifies the traits shared by members of the group.)
-
addCharacteristic
public Group addCharacteristic(Group.GroupCharacteristicComponent t)
-
getMember
public List<Group.GroupMemberComponent> getMember()
- Returns:
member(Identifies the resource instances that are members of the group.)
-
hasMember
public boolean hasMember()
-
addMember
public Group.GroupMemberComponent addMember()
- Returns:
member(Identifies the resource instances that are members of the group.)
-
addMember
public Group addMember(Group.GroupMemberComponent t)
-
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 Group copy()
- Specified by:
copyin classDomainResource
-
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
-
-