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

    public static class Provenance.Agent
    extends ca.uhn.fhir.model.api.BaseIdentifiableElement
    implements ca.uhn.fhir.model.api.IResourceBlock
    Block class for child element: Provenance.agent (who)

    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:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.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 interface ca.uhn.fhir.model.api.ICompositeElement
      • getRole

        public CodingDt getRole()
        Gets the value(s) for role (). creating it if it does not exist. Will not return null.

        Definition: The function of the agent with respect to the activity.

      • setRole

        public Provenance.Agent setRole​(CodingDt theValue)
        Sets the value(s) for role ()

        Definition: The function of the agent with respect to the activity.

      • getActor

        public ResourceReferenceDt getActor()
        Gets the value(s) for actor (who.actor). creating it if it does not exist. Will not return null.

        Definition: The individual, device or organization that participated in the event

      • getUserId

        public IdentifierDt getUserId()
        Gets the value(s) for userId (who.actor). creating it if it does not exist. Will not return null.

        Definition: The identity of the agent as known by the authorization system

      • setUserId

        public Provenance.Agent setUserId​(IdentifierDt theValue)
        Sets the value(s) for userId (who.actor)

        Definition: The identity of the agent as known by the authorization system

      • getRelatedAgent

        public List<Provenance.AgentRelatedAgentgetRelatedAgent()
        Gets the value(s) for relatedAgent (). creating it if it does not exist. Will not return null.

        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

        public Provenance.Agent setRelatedAgent​(List<Provenance.AgentRelatedAgent> theValue)
        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

        public Provenance.AgentRelatedAgent 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

        public Provenance.Agent addRelatedAgent​(Provenance.AgentRelatedAgent theValue)
        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 be null)
      • getRelatedAgentFirstRep

        public Provenance.AgentRelatedAgent 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