Class Provenance.Agent
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.IResourceBlock
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
Provenance
Definition: An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for relatedAgent ()addRelatedAgent
(Provenance.AgentRelatedAgent theValue) Adds a given new value for relatedAgent ()getActor()
Gets the value(s) for actor (who.actor).<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for relatedAgent ().Gets the first repetition for relatedAgent (), creating it if it does not already exist.getRole()
Gets the value(s) for role ().Gets the value(s) for userId (who.actor).boolean
isEmpty()
setActor
(ResourceReferenceDt theValue) Sets the value(s) for actor (who.actor)setRelatedAgent
(List<Provenance.AgentRelatedAgent> theValue) Sets the value(s) for relatedAgent ()Sets the value(s) for role ()setUserId
(IdentifierDt theValue) Sets the value(s) for userId (who.actor)Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
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.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Agent
public Agent()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getRole
Gets the value(s) for role (). creating it if it does not exist. Will not returnnull
.Definition: The function of the agent with respect to the activity.
-
setRole
Sets the value(s) for role ()Definition: The function of the agent with respect to the activity.
-
getActor
Gets the value(s) for actor (who.actor). creating it if it does not exist. Will not returnnull
.Definition: The individual, device or organization that participated in the event
-
setActor
Sets the value(s) for actor (who.actor)Definition: The individual, device or organization that participated in the event
-
getUserId
Gets the value(s) for userId (who.actor). creating it if it does not exist. Will not returnnull
.Definition: The identity of the agent as known by the authorization system
-
setUserId
Sets the value(s) for userId (who.actor)Definition: The identity of the agent as known by the authorization system
-
getRelatedAgent
Gets the value(s) for relatedAgent (). creating it if it does not exist. Will not returnnull
.Definition: A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest
-
setRelatedAgent
Sets the value(s) for relatedAgent ()Definition: A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest
-
addRelatedAgent
Adds and returns a new value for relatedAgent ()Definition: A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest
-
addRelatedAgent
Adds a given new value for relatedAgent ()Definition: A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest
- Parameters:
theValue
- The relatedAgent to add (must not benull
)
-
getRelatedAgentFirstRep
Gets the first repetition for relatedAgent (), creating it if it does not already exist.Definition: A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest
-