Package org.hl7.fhir

Class AuditEvent

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class AuditEvent
    extends DomainResource
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    If the element is present, it must have either a @value, an @id, or extensions

    Java class for AuditEvent complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="AuditEvent">
       <complexContent>
         <extension base="{http://hl7.org/fhir}DomainResource">
           <sequence>
             <element name="type" type="{http://hl7.org/fhir}Coding"/>
             <element name="subtype" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
             <element name="action" type="{http://hl7.org/fhir}AuditEventAction" minOccurs="0"/>
             <element name="recorded" type="{http://hl7.org/fhir}instant"/>
             <element name="outcome" type="{http://hl7.org/fhir}AuditEventOutcome" minOccurs="0"/>
             <element name="outcomeDesc" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="purposeOfEvent" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
             <element name="agent" type="{http://hl7.org/fhir}AuditEvent.Agent" maxOccurs="unbounded"/>
             <element name="source" type="{http://hl7.org/fhir}AuditEvent.Source"/>
             <element name="entity" type="{http://hl7.org/fhir}AuditEvent.Entity" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • AuditEvent

        public AuditEvent()
    • Method Detail

      • getType

        public Coding getType()
        Gets the value of the type property.
        Returns:
        possible object is Coding
      • setType

        public void setType​(Coding value)
        Sets the value of the type property.
        Parameters:
        value - allowed object is Coding
      • getSubtype

        public java.util.List<Coding> getSubtype()
        Gets the value of the subtype property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the subtype property.

        For example, to add a new item, do as follows:

            getSubtype().add(newItem);
         

        Objects of the following type(s) are allowed in the list Coding

      • getRecorded

        public Instant getRecorded()
        Gets the value of the recorded property.
        Returns:
        possible object is Instant
      • setRecorded

        public void setRecorded​(Instant value)
        Sets the value of the recorded property.
        Parameters:
        value - allowed object is Instant
      • getOutcomeDesc

        public String getOutcomeDesc()
        Gets the value of the outcomeDesc property.
        Returns:
        possible object is String
      • setOutcomeDesc

        public void setOutcomeDesc​(String value)
        Sets the value of the outcomeDesc property.
        Parameters:
        value - allowed object is String
      • getPurposeOfEvent

        public java.util.List<Coding> getPurposeOfEvent()
        Gets the value of the purposeOfEvent property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the purposeOfEvent property.

        For example, to add a new item, do as follows:

            getPurposeOfEvent().add(newItem);
         

        Objects of the following type(s) are allowed in the list Coding

      • getAgent

        public java.util.List<AuditEventAgent> getAgent()
        Gets the value of the agent property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the agent property.

        For example, to add a new item, do as follows:

            getAgent().add(newItem);
         

        Objects of the following type(s) are allowed in the list AuditEventAgent

      • getEntity

        public java.util.List<AuditEventEntity> getEntity()
        Gets the value of the entity property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the entity property.

        For example, to add a new item, do as follows:

            getEntity().add(newItem);
         

        Objects of the following type(s) are allowed in the list AuditEventEntity

      • withSubtype

        public AuditEvent withSubtype​(java.util.Collection<Coding> values)
      • withPurposeOfEvent

        public AuditEvent withPurposeOfEvent​(Coding... values)
      • withPurposeOfEvent

        public AuditEvent withPurposeOfEvent​(java.util.Collection<Coding> values)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class DomainResource
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class DomainResource
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class DomainResource
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class DomainResource
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class DomainResource