
ca.uhn.fhir.model.dstu.resource.SecurityEvent Maven / Gradle / Ivy
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 SecurityEvent Resource
* (Event record kept for security purposes)
*
*
* Definition:
* A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/SecurityEvent
*
*
*/
@ResourceDef(name="SecurityEvent", profile="http://hl7.org/fhir/profiles/SecurityEvent", id="securityevent")
public class SecurityEvent extends ca.uhn.fhir.model.dstu.resource.BaseResource
implements ca.uhn.fhir.model.base.resource.BaseSecurityEvent {
/**
* Search parameter constant for type
*
* Description:
* Type: token
* Path: SecurityEvent.event.type
*
*/
@SearchParamDefinition(name="type", path="SecurityEvent.event.type", description="", type="token" )
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description:
* Type: token
* Path: SecurityEvent.event.type
*
*/
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
/**
* Search parameter constant for action
*
* Description:
* Type: token
* Path: SecurityEvent.event.action
*
*/
@SearchParamDefinition(name="action", path="SecurityEvent.event.action", description="", type="token" )
public static final String SP_ACTION = "action";
/**
* Fluent Client search parameter constant for action
*
* Description:
* Type: token
* Path: SecurityEvent.event.action
*
*/
public static final TokenClientParam ACTION = new TokenClientParam(SP_ACTION);
/**
* Search parameter constant for date
*
* Description:
* Type: date
* Path: SecurityEvent.event.dateTime
*
*/
@SearchParamDefinition(name="date", path="SecurityEvent.event.dateTime", description="", type="date" )
public static final String SP_DATE = "date";
/**
* Fluent Client search parameter constant for date
*
* Description:
* Type: date
* Path: SecurityEvent.event.dateTime
*
*/
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
/**
* Search parameter constant for subtype
*
* Description:
* Type: token
* Path: SecurityEvent.event.subtype
*
*/
@SearchParamDefinition(name="subtype", path="SecurityEvent.event.subtype", description="", type="token" )
public static final String SP_SUBTYPE = "subtype";
/**
* Fluent Client search parameter constant for subtype
*
* Description:
* Type: token
* Path: SecurityEvent.event.subtype
*
*/
public static final TokenClientParam SUBTYPE = new TokenClientParam(SP_SUBTYPE);
/**
* Search parameter constant for user
*
* Description:
* Type: token
* Path: SecurityEvent.participant.userId
*
*/
@SearchParamDefinition(name="user", path="SecurityEvent.participant.userId", description="", type="token" )
public static final String SP_USER = "user";
/**
* Fluent Client search parameter constant for user
*
* Description:
* Type: token
* Path: SecurityEvent.participant.userId
*
*/
public static final TokenClientParam USER = new TokenClientParam(SP_USER);
/**
* Search parameter constant for name
*
* Description:
* Type: string
* Path: SecurityEvent.participant.name
*
*/
@SearchParamDefinition(name="name", path="SecurityEvent.participant.name", description="", type="string" )
public static final String SP_NAME = "name";
/**
* Fluent Client search parameter constant for name
*
* Description:
* Type: string
* Path: SecurityEvent.participant.name
*
*/
public static final StringClientParam NAME = new StringClientParam(SP_NAME);
/**
* Search parameter constant for address
*
* Description:
* Type: token
* Path: SecurityEvent.participant.network.identifier
*
*/
@SearchParamDefinition(name="address", path="SecurityEvent.participant.network.identifier", description="", type="token" )
public static final String SP_ADDRESS = "address";
/**
* Fluent Client search parameter constant for address
*
* Description:
* Type: token
* Path: SecurityEvent.participant.network.identifier
*
*/
public static final TokenClientParam ADDRESS = new TokenClientParam(SP_ADDRESS);
/**
* Search parameter constant for source
*
* Description:
* Type: token
* Path: SecurityEvent.source.identifier
*
*/
@SearchParamDefinition(name="source", path="SecurityEvent.source.identifier", description="", type="token" )
public static final String SP_SOURCE = "source";
/**
* Fluent Client search parameter constant for source
*
* Description:
* Type: token
* Path: SecurityEvent.source.identifier
*
*/
public static final TokenClientParam SOURCE = new TokenClientParam(SP_SOURCE);
/**
* Search parameter constant for site
*
* Description:
* Type: token
* Path: SecurityEvent.source.site
*
*/
@SearchParamDefinition(name="site", path="SecurityEvent.source.site", description="", type="token" )
public static final String SP_SITE = "site";
/**
* Fluent Client search parameter constant for site
*
* Description:
* Type: token
* Path: SecurityEvent.source.site
*
*/
public static final TokenClientParam SITE = new TokenClientParam(SP_SITE);
/**
* Search parameter constant for object-type
*
* Description:
* Type: token
* Path: SecurityEvent.object.type
*
*/
@SearchParamDefinition(name="object-type", path="SecurityEvent.object.type", description="", type="token" )
public static final String SP_OBJECT_TYPE = "object-type";
/**
* Fluent Client search parameter constant for object-type
*
* Description:
* Type: token
* Path: SecurityEvent.object.type
*
*/
public static final TokenClientParam OBJECT_TYPE = new TokenClientParam(SP_OBJECT_TYPE);
/**
* Search parameter constant for identity
*
* Description:
* Type: token
* Path: SecurityEvent.object.identifier
*
*/
@SearchParamDefinition(name="identity", path="SecurityEvent.object.identifier", description="", type="token" )
public static final String SP_IDENTITY = "identity";
/**
* Fluent Client search parameter constant for identity
*
* Description:
* Type: token
* Path: SecurityEvent.object.identifier
*
*/
public static final TokenClientParam IDENTITY = new TokenClientParam(SP_IDENTITY);
/**
* Search parameter constant for reference
*
* Description:
* Type: reference
* Path: SecurityEvent.object.reference
*
*/
@SearchParamDefinition(name="reference", path="SecurityEvent.object.reference", description="", type="reference" )
public static final String SP_REFERENCE = "reference";
/**
* Fluent Client search parameter constant for reference
*
* Description:
* Type: reference
* Path: SecurityEvent.object.reference
*
*/
public static final ReferenceClientParam REFERENCE = new ReferenceClientParam(SP_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "SecurityEvent.object.reference".
*/
public static final Include INCLUDE_OBJECT_REFERENCE = new Include("SecurityEvent.object.reference");
/**
* Search parameter constant for desc
*
* Description:
* Type: string
* Path: SecurityEvent.object.name
*
*/
@SearchParamDefinition(name="desc", path="SecurityEvent.object.name", description="", type="string" )
public static final String SP_DESC = "desc";
/**
* Fluent Client search parameter constant for desc
*
* Description:
* Type: string
* Path: SecurityEvent.object.name
*
*/
public static final StringClientParam DESC = new StringClientParam(SP_DESC);
/**
* Search parameter constant for patientid
*
* Description: The id of the patient (one of multiple kinds of participations)
* Type: token
* Path:
*
*/
@SearchParamDefinition(name="patientid", path="", description="The id of the patient (one of multiple kinds of participations)", type="token" )
public static final String SP_PATIENTID = "patientid";
/**
* Fluent Client search parameter constant for patientid
*
* Description: The id of the patient (one of multiple kinds of participations)
* Type: token
* Path:
*
*/
public static final TokenClientParam PATIENTID = new TokenClientParam(SP_PATIENTID);
/**
* Search parameter constant for altid
*
* Description:
* Type: token
* Path: SecurityEvent.participant.altId
*
*/
@SearchParamDefinition(name="altid", path="SecurityEvent.participant.altId", description="", type="token" )
public static final String SP_ALTID = "altid";
/**
* Fluent Client search parameter constant for altid
*
* Description:
* Type: token
* Path: SecurityEvent.participant.altId
*
*/
public static final TokenClientParam ALTID = new TokenClientParam(SP_ALTID);
@Child(name="event", order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="What was done",
formalDefinition="Identifies the name, action type, time, and disposition of the audited event"
)
private Event myEvent;
@Child(name="participant", order=1, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="A person, a hardware device or software process",
formalDefinition=""
)
private java.util.List myParticipant;
@Child(name="source", order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Application systems and processes",
formalDefinition=""
)
private Source mySource;
@Child(name="object", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Specific instances of data or objects that have been accessed",
formalDefinition="Specific instances of data or objects that have been accessed"
)
private java.util.List myObject;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myParticipant, mySource, myObject);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myParticipant, mySource, myObject);
}
/**
* Gets the value(s) for event (What was done).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies the name, action type, time, and disposition of the audited event
*
*/
public Event getEvent() {
if (myEvent == null) {
myEvent = new Event();
}
return myEvent;
}
/**
* Gets the value(s) for event (What was done).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies the name, action type, time, and disposition of the audited event
*
*/
public Event getEventElement() {
if (myEvent == null) {
myEvent = new Event();
}
return myEvent;
}
/**
* Sets the value(s) for event (What was done)
*
*
* Definition:
* Identifies the name, action type, time, and disposition of the audited event
*
*/
public SecurityEvent setEvent(Event theValue) {
myEvent = theValue;
return this;
}
/**
* Gets the value(s) for participant (A person, a hardware device or software process).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getParticipant() {
if (myParticipant == null) {
myParticipant = new java.util.ArrayList();
}
return myParticipant;
}
/**
* Gets the value(s) for participant (A person, a hardware device or software process).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getParticipantElement() {
if (myParticipant == null) {
myParticipant = new java.util.ArrayList();
}
return myParticipant;
}
/**
* Sets the value(s) for participant (A person, a hardware device or software process)
*
*
* Definition:
*
*
*/
public SecurityEvent setParticipant(java.util.List theValue) {
myParticipant = theValue;
return this;
}
/**
* Adds and returns a new value for participant (A person, a hardware device or software process)
*
*
* Definition:
*
*
*/
public Participant addParticipant() {
Participant newType = new Participant();
getParticipant().add(newType);
return newType;
}
/**
* Gets the first repetition for participant (A person, a hardware device or software process),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public Participant getParticipantFirstRep() {
if (getParticipant().isEmpty()) {
return addParticipant();
}
return getParticipant().get(0);
}
/**
* Gets the value(s) for source (Application systems and processes).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public Source getSource() {
if (mySource == null) {
mySource = new Source();
}
return mySource;
}
/**
* Gets the value(s) for source (Application systems and processes).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public Source getSourceElement() {
if (mySource == null) {
mySource = new Source();
}
return mySource;
}
/**
* Sets the value(s) for source (Application systems and processes)
*
*
* Definition:
*
*
*/
public SecurityEvent setSource(Source theValue) {
mySource = theValue;
return this;
}
/**
* Gets the value(s) for object (Specific instances of data or objects that have been accessed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specific instances of data or objects that have been accessed
*
*/
public java.util.List getObject() {
if (myObject == null) {
myObject = new java.util.ArrayList();
}
return myObject;
}
/**
* Gets the value(s) for object (Specific instances of data or objects that have been accessed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specific instances of data or objects that have been accessed
*
*/
public java.util.List getObjectElement() {
if (myObject == null) {
myObject = new java.util.ArrayList();
}
return myObject;
}
/**
* Sets the value(s) for object (Specific instances of data or objects that have been accessed)
*
*
* Definition:
* Specific instances of data or objects that have been accessed
*
*/
public SecurityEvent setObject(java.util.List theValue) {
myObject = theValue;
return this;
}
/**
* Adds and returns a new value for object (Specific instances of data or objects that have been accessed)
*
*
* Definition:
* Specific instances of data or objects that have been accessed
*
*/
public ObjectElement addObject() {
ObjectElement newType = new ObjectElement();
getObject().add(newType);
return newType;
}
/**
* Gets the first repetition for object (Specific instances of data or objects that have been accessed),
* creating it if it does not already exist.
*
*
* Definition:
* Specific instances of data or objects that have been accessed
*
*/
public ObjectElement getObjectFirstRep() {
if (getObject().isEmpty()) {
return addObject();
}
return getObject().get(0);
}
/**
* Block class for child element: SecurityEvent.event (What was done)
*
*
* Definition:
* Identifies the name, action type, time, and disposition of the audited event
*
*/
@Block()
public static class Event
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Type/identifier of event",
formalDefinition="Identifier for a family of the event"
)
private CodeableConceptDt myType;
@Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="More specific type/id for the event",
formalDefinition="Identifier for the category of event"
)
private java.util.List mySubtype;
@Child(name="action", type=CodeDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Type of action performed during the event",
formalDefinition="Indicator for type of action performed during the event that generated the audit"
)
private BoundCodeDt myAction;
@Child(name="dateTime", type=InstantDt.class, order=3, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Time when the event occurred on source",
formalDefinition="The time when the event occurred on the source"
)
private InstantDt myDateTime;
@Child(name="outcome", type=CodeDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Whether the event succeeded or failed",
formalDefinition="Indicates whether the event succeeded or failed"
)
private BoundCodeDt myOutcome;
@Child(name="outcomeDesc", type=StringDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Description of the event outcome",
formalDefinition="A free text description of the outcome of the event"
)
private StringDt myOutcomeDesc;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySubtype, myAction, myDateTime, myOutcome, myOutcomeDesc);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySubtype, myAction, myDateTime, myOutcome, myOutcomeDesc);
}
/**
* Gets the value(s) for type (Type/identifier of event).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier for a family of the event
*
*/
public CodeableConceptDt getType() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Gets the value(s) for type (Type/identifier of event).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier for a family of the event
*
*/
public CodeableConceptDt getTypeElement() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Sets the value(s) for type (Type/identifier of event)
*
*
* Definition:
* Identifier for a family of the event
*
*/
public Event setType(CodeableConceptDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for subtype (More specific type/id for the event).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier for the category of event
*
*/
public java.util.List getSubtype() {
if (mySubtype == null) {
mySubtype = new java.util.ArrayList();
}
return mySubtype;
}
/**
* Gets the value(s) for subtype (More specific type/id for the event).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier for the category of event
*
*/
public java.util.List getSubtypeElement() {
if (mySubtype == null) {
mySubtype = new java.util.ArrayList();
}
return mySubtype;
}
/**
* Sets the value(s) for subtype (More specific type/id for the event)
*
*
* Definition:
* Identifier for the category of event
*
*/
public Event setSubtype(java.util.List theValue) {
mySubtype = theValue;
return this;
}
/**
* Adds and returns a new value for subtype (More specific type/id for the event)
*
*
* Definition:
* Identifier for the category of event
*
*/
public CodeableConceptDt addSubtype() {
CodeableConceptDt newType = new CodeableConceptDt();
getSubtype().add(newType);
return newType;
}
/**
* Gets the first repetition for subtype (More specific type/id for the event),
* creating it if it does not already exist.
*
*
* Definition:
* Identifier for the category of event
*
*/
public CodeableConceptDt getSubtypeFirstRep() {
if (getSubtype().isEmpty()) {
return addSubtype();
}
return getSubtype().get(0);
}
/**
* Gets the value(s) for action (Type of action performed during the event).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicator for type of action performed during the event that generated the audit
*
*/
public BoundCodeDt getAction() {
if (myAction == null) {
myAction = new BoundCodeDt(SecurityEventActionEnum.VALUESET_BINDER);
}
return myAction;
}
/**
* Gets the value(s) for action (Type of action performed during the event).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicator for type of action performed during the event that generated the audit
*
*/
public BoundCodeDt getActionElement() {
if (myAction == null) {
myAction = new BoundCodeDt(SecurityEventActionEnum.VALUESET_BINDER);
}
return myAction;
}
/**
* Sets the value(s) for action (Type of action performed during the event)
*
*
* Definition:
* Indicator for type of action performed during the event that generated the audit
*
*/
public Event setAction(BoundCodeDt theValue) {
myAction = theValue;
return this;
}
/**
* Sets the value(s) for action (Type of action performed during the event)
*
*
* Definition:
* Indicator for type of action performed during the event that generated the audit
*
*/
public Event setAction(SecurityEventActionEnum theValue) {
getAction().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for dateTime (Time when the event occurred on source).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The time when the event occurred on the source
*
*/
public InstantDt getDateTime() {
if (myDateTime == null) {
myDateTime = new InstantDt();
}
return myDateTime;
}
/**
* Gets the value(s) for dateTime (Time when the event occurred on source).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The time when the event occurred on the source
*
*/
public InstantDt getDateTimeElement() {
if (myDateTime == null) {
myDateTime = new InstantDt();
}
return myDateTime;
}
/**
* Sets the value(s) for dateTime (Time when the event occurred on source)
*
*
* Definition:
* The time when the event occurred on the source
*
*/
public Event setDateTime(InstantDt theValue) {
myDateTime = theValue;
return this;
}
/**
* Sets the value for dateTime (Time when the event occurred on source)
*
*
* Definition:
* The time when the event occurred on the source
*
*/
public Event setDateTimeWithMillisPrecision( Date theDate) {
myDateTime = new InstantDt(theDate);
return this;
}
/**
* Sets the value for dateTime (Time when the event occurred on source)
*
*
* Definition:
* The time when the event occurred on the source
*
*/
public Event setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
myDateTime = new InstantDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for outcome (Whether the event succeeded or failed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates whether the event succeeded or failed
*
*/
public BoundCodeDt getOutcome() {
if (myOutcome == null) {
myOutcome = new BoundCodeDt(SecurityEventOutcomeEnum.VALUESET_BINDER);
}
return myOutcome;
}
/**
* Gets the value(s) for outcome (Whether the event succeeded or failed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates whether the event succeeded or failed
*
*/
public BoundCodeDt getOutcomeElement() {
if (myOutcome == null) {
myOutcome = new BoundCodeDt(SecurityEventOutcomeEnum.VALUESET_BINDER);
}
return myOutcome;
}
/**
* Sets the value(s) for outcome (Whether the event succeeded or failed)
*
*
* Definition:
* Indicates whether the event succeeded or failed
*
*/
public Event setOutcome(BoundCodeDt theValue) {
myOutcome = theValue;
return this;
}
/**
* Sets the value(s) for outcome (Whether the event succeeded or failed)
*
*
* Definition:
* Indicates whether the event succeeded or failed
*
*/
public Event setOutcome(SecurityEventOutcomeEnum theValue) {
getOutcome().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for outcomeDesc (Description of the event outcome).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A free text description of the outcome of the event
*
*/
public StringDt getOutcomeDesc() {
if (myOutcomeDesc == null) {
myOutcomeDesc = new StringDt();
}
return myOutcomeDesc;
}
/**
* Gets the value(s) for outcomeDesc (Description of the event outcome).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A free text description of the outcome of the event
*
*/
public StringDt getOutcomeDescElement() {
if (myOutcomeDesc == null) {
myOutcomeDesc = new StringDt();
}
return myOutcomeDesc;
}
/**
* Sets the value(s) for outcomeDesc (Description of the event outcome)
*
*
* Definition:
* A free text description of the outcome of the event
*
*/
public Event setOutcomeDesc(StringDt theValue) {
myOutcomeDesc = theValue;
return this;
}
/**
* Sets the value for outcomeDesc (Description of the event outcome)
*
*
* Definition:
* A free text description of the outcome of the event
*
*/
public Event setOutcomeDesc( String theString) {
myOutcomeDesc = new StringDt(theString);
return this;
}
}
/**
* Block class for child element: SecurityEvent.participant (A person, a hardware device or software process)
*
*
* Definition:
*
*
*/
@Block()
public static class Participant
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="role", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="User roles (e.g. local RBAC codes)",
formalDefinition="Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context"
)
private java.util.List myRole;
@Child(name="reference", order=1, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Device.class })
@Description(
shortDefinition="Direct reference to resource",
formalDefinition="Direct reference to a resource that identifies the participant"
)
private ResourceReferenceDt myReference;
@Child(name="userId", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Unique identifier for the user",
formalDefinition="Unique identifier for the user actively participating in the event"
)
private StringDt myUserId;
@Child(name="altId", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Alternative User id e.g. authentication",
formalDefinition="Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available"
)
private StringDt myAltId;
@Child(name="name", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Human-meaningful name for the user",
formalDefinition="Human-meaningful name for the user"
)
private StringDt myName;
@Child(name="requestor", type=BooleanDt.class, order=5, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Whether user is initiator",
formalDefinition="Indicator that the user is or is not the requestor, or initiator, for the event being audited."
)
private BooleanDt myRequestor;
@Child(name="media", type=CodingDt.class, order=6, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Type of media",
formalDefinition="Type of media involved. Used when the event is about exporting/importing onto media"
)
private CodingDt myMedia;
@Child(name="network", order=7, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Logical network location for application activity",
formalDefinition="Logical network location for application activity, if the activity has a network location"
)
private ParticipantNetwork myNetwork;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myReference, myUserId, myAltId, myName, myRequestor, myMedia, myNetwork);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myReference, myUserId, myAltId, myName, myRequestor, myMedia, myNetwork);
}
/**
* Gets the value(s) for role (User roles (e.g. local RBAC codes)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context
*
*/
public java.util.List getRole() {
if (myRole == null) {
myRole = new java.util.ArrayList();
}
return myRole;
}
/**
* Gets the value(s) for role (User roles (e.g. local RBAC codes)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context
*
*/
public java.util.List getRoleElement() {
if (myRole == null) {
myRole = new java.util.ArrayList();
}
return myRole;
}
/**
* Sets the value(s) for role (User roles (e.g. local RBAC codes))
*
*
* Definition:
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context
*
*/
public Participant setRole(java.util.List theValue) {
myRole = theValue;
return this;
}
/**
* Adds and returns a new value for role (User roles (e.g. local RBAC codes))
*
*
* Definition:
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context
*
*/
public CodeableConceptDt addRole() {
CodeableConceptDt newType = new CodeableConceptDt();
getRole().add(newType);
return newType;
}
/**
* Gets the first repetition for role (User roles (e.g. local RBAC codes)),
* creating it if it does not already exist.
*
*
* Definition:
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context
*
*/
public CodeableConceptDt getRoleFirstRep() {
if (getRole().isEmpty()) {
return addRole();
}
return getRole().get(0);
}
/**
* Gets the value(s) for reference (Direct reference to resource).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Direct reference to a resource that identifies the participant
*
*/
public ResourceReferenceDt getReference() {
if (myReference == null) {
myReference = new ResourceReferenceDt();
}
return myReference;
}
/**
* Gets the value(s) for reference (Direct reference to resource).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Direct reference to a resource that identifies the participant
*
*/
public ResourceReferenceDt getReferenceElement() {
if (myReference == null) {
myReference = new ResourceReferenceDt();
}
return myReference;
}
/**
* Sets the value(s) for reference (Direct reference to resource)
*
*
* Definition:
* Direct reference to a resource that identifies the participant
*
*/
public Participant setReference(ResourceReferenceDt theValue) {
myReference = theValue;
return this;
}
/**
* Gets the value(s) for userId (Unique identifier for the user).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Unique identifier for the user actively participating in the event
*
*/
public StringDt getUserId() {
if (myUserId == null) {
myUserId = new StringDt();
}
return myUserId;
}
/**
* Gets the value(s) for userId (Unique identifier for the user).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Unique identifier for the user actively participating in the event
*
*/
public StringDt getUserIdElement() {
if (myUserId == null) {
myUserId = new StringDt();
}
return myUserId;
}
/**
* Sets the value(s) for userId (Unique identifier for the user)
*
*
* Definition:
* Unique identifier for the user actively participating in the event
*
*/
public Participant setUserId(StringDt theValue) {
myUserId = theValue;
return this;
}
/**
* Sets the value for userId (Unique identifier for the user)
*
*
* Definition:
* Unique identifier for the user actively participating in the event
*
*/
public Participant setUserId( String theString) {
myUserId = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for altId (Alternative User id e.g. authentication).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available
*
*/
public StringDt getAltId() {
if (myAltId == null) {
myAltId = new StringDt();
}
return myAltId;
}
/**
* Gets the value(s) for altId (Alternative User id e.g. authentication).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available
*
*/
public StringDt getAltIdElement() {
if (myAltId == null) {
myAltId = new StringDt();
}
return myAltId;
}
/**
* Sets the value(s) for altId (Alternative User id e.g. authentication)
*
*
* Definition:
* Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available
*
*/
public Participant setAltId(StringDt theValue) {
myAltId = theValue;
return this;
}
/**
* Sets the value for altId (Alternative User id e.g. authentication)
*
*
* Definition:
* Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available
*
*/
public Participant setAltId( String theString) {
myAltId = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for name (Human-meaningful name for the user).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Human-meaningful name for the user
*
*/
public StringDt getName() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Gets the value(s) for name (Human-meaningful name for the user).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Human-meaningful name for the user
*
*/
public StringDt getNameElement() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Sets the value(s) for name (Human-meaningful name for the user)
*
*
* Definition:
* Human-meaningful name for the user
*
*/
public Participant setName(StringDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name (Human-meaningful name for the user)
*
*
* Definition:
* Human-meaningful name for the user
*
*/
public Participant setName( String theString) {
myName = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for requestor (Whether user is initiator).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicator that the user is or is not the requestor, or initiator, for the event being audited.
*
*/
public BooleanDt getRequestor() {
if (myRequestor == null) {
myRequestor = new BooleanDt();
}
return myRequestor;
}
/**
* Gets the value(s) for requestor (Whether user is initiator).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicator that the user is or is not the requestor, or initiator, for the event being audited.
*
*/
public BooleanDt getRequestorElement() {
if (myRequestor == null) {
myRequestor = new BooleanDt();
}
return myRequestor;
}
/**
* Sets the value(s) for requestor (Whether user is initiator)
*
*
* Definition:
* Indicator that the user is or is not the requestor, or initiator, for the event being audited.
*
*/
public Participant setRequestor(BooleanDt theValue) {
myRequestor = theValue;
return this;
}
/**
* Sets the value for requestor (Whether user is initiator)
*
*
* Definition:
* Indicator that the user is or is not the requestor, or initiator, for the event being audited.
*
*/
public Participant setRequestor( boolean theBoolean) {
myRequestor = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for media (Type of media).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Type of media involved. Used when the event is about exporting/importing onto media
*
*/
public CodingDt getMedia() {
if (myMedia == null) {
myMedia = new CodingDt();
}
return myMedia;
}
/**
* Gets the value(s) for media (Type of media).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Type of media involved. Used when the event is about exporting/importing onto media
*
*/
public CodingDt getMediaElement() {
if (myMedia == null) {
myMedia = new CodingDt();
}
return myMedia;
}
/**
* Sets the value(s) for media (Type of media)
*
*
* Definition:
* Type of media involved. Used when the event is about exporting/importing onto media
*
*/
public Participant setMedia(CodingDt theValue) {
myMedia = theValue;
return this;
}
/**
* Gets the value(s) for network (Logical network location for application activity).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Logical network location for application activity, if the activity has a network location
*
*/
public ParticipantNetwork getNetwork() {
if (myNetwork == null) {
myNetwork = new ParticipantNetwork();
}
return myNetwork;
}
/**
* Gets the value(s) for network (Logical network location for application activity).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Logical network location for application activity, if the activity has a network location
*
*/
public ParticipantNetwork getNetworkElement() {
if (myNetwork == null) {
myNetwork = new ParticipantNetwork();
}
return myNetwork;
}
/**
* Sets the value(s) for network (Logical network location for application activity)
*
*
* Definition:
* Logical network location for application activity, if the activity has a network location
*
*/
public Participant setNetwork(ParticipantNetwork theValue) {
myNetwork = theValue;
return this;
}
}
/**
* Block class for child element: SecurityEvent.participant.network (Logical network location for application activity)
*
*
* Definition:
* Logical network location for application activity, if the activity has a network location
*
*/
@Block()
public static class ParticipantNetwork
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="identifier", type=StringDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Identifier for the network access point of the user device",
formalDefinition="An identifier for the network access point of the user device for the audit event"
)
private StringDt myIdentifier;
@Child(name="type", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="The type of network access point",
formalDefinition="An identifier for the type of network access point that originated the audit event"
)
private BoundCodeDt myType;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType);
}
/**
* Gets the value(s) for identifier (Identifier for the network access point of the user device).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An identifier for the network access point of the user device for the audit event
*
*/
public StringDt getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new StringDt();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier (Identifier for the network access point of the user device).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An identifier for the network access point of the user device for the audit event
*
*/
public StringDt getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new StringDt();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (Identifier for the network access point of the user device)
*
*
* Definition:
* An identifier for the network access point of the user device for the audit event
*
*/
public ParticipantNetwork setIdentifier(StringDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Sets the value for identifier (Identifier for the network access point of the user device)
*
*
* Definition:
* An identifier for the network access point of the user device for the audit event
*
*/
public ParticipantNetwork setIdentifier( String theString) {
myIdentifier = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for type (The type of network access point).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An identifier for the type of network access point that originated the audit event
*
*/
public BoundCodeDt getType() {
if (myType == null) {
myType = new BoundCodeDt(SecurityEventParticipantNetworkTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Gets the value(s) for type (The type of network access point).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An identifier for the type of network access point that originated the audit event
*
*/
public BoundCodeDt getTypeElement() {
if (myType == null) {
myType = new BoundCodeDt(SecurityEventParticipantNetworkTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Sets the value(s) for type (The type of network access point)
*
*
* Definition:
* An identifier for the type of network access point that originated the audit event
*
*/
public ParticipantNetwork setType(BoundCodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value(s) for type (The type of network access point)
*
*
* Definition:
* An identifier for the type of network access point that originated the audit event
*
*/
public ParticipantNetwork setType(SecurityEventParticipantNetworkTypeEnum theValue) {
getType().setValueAsEnum(theValue);
return this;
}
}
/**
* Block class for child element: SecurityEvent.source (Application systems and processes)
*
*
* Definition:
*
*
*/
@Block()
public static class Source
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="site", type=StringDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Logical source location within the enterprise",
formalDefinition="Logical source location within the healthcare enterprise network"
)
private StringDt mySite;
@Child(name="identifier", type=StringDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="The id of source where event originated",
formalDefinition="Identifier of the source where the event originated"
)
private StringDt myIdentifier;
@Child(name="type", type=CodingDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="The type of source where event originated",
formalDefinition="Code specifying the type of source where event originated"
)
private java.util.List myType;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySite, myIdentifier, myType);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySite, myIdentifier, myType);
}
/**
* Gets the value(s) for site (Logical source location within the enterprise).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Logical source location within the healthcare enterprise network
*
*/
public StringDt getSite() {
if (mySite == null) {
mySite = new StringDt();
}
return mySite;
}
/**
* Gets the value(s) for site (Logical source location within the enterprise).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Logical source location within the healthcare enterprise network
*
*/
public StringDt getSiteElement() {
if (mySite == null) {
mySite = new StringDt();
}
return mySite;
}
/**
* Sets the value(s) for site (Logical source location within the enterprise)
*
*
* Definition:
* Logical source location within the healthcare enterprise network
*
*/
public Source setSite(StringDt theValue) {
mySite = theValue;
return this;
}
/**
* Sets the value for site (Logical source location within the enterprise)
*
*
* Definition:
* Logical source location within the healthcare enterprise network
*
*/
public Source setSite( String theString) {
mySite = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for identifier (The id of source where event originated).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier of the source where the event originated
*
*/
public StringDt getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new StringDt();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier (The id of source where event originated).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier of the source where the event originated
*
*/
public StringDt getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new StringDt();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (The id of source where event originated)
*
*
* Definition:
* Identifier of the source where the event originated
*
*/
public Source setIdentifier(StringDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Sets the value for identifier (The id of source where event originated)
*
*
* Definition:
* Identifier of the source where the event originated
*
*/
public Source setIdentifier( String theString) {
myIdentifier = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for type (The type of source where event originated).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Code specifying the type of source where event originated
*
*/
public java.util.List getType() {
if (myType == null) {
myType = new java.util.ArrayList();
}
return myType;
}
/**
* Gets the value(s) for type (The type of source where event originated).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Code specifying the type of source where event originated
*
*/
public java.util.List getTypeElement() {
if (myType == null) {
myType = new java.util.ArrayList();
}
return myType;
}
/**
* Sets the value(s) for type (The type of source where event originated)
*
*
* Definition:
* Code specifying the type of source where event originated
*
*/
public Source setType(java.util.List theValue) {
myType = theValue;
return this;
}
/**
* Adds and returns a new value for type (The type of source where event originated)
*
*
* Definition:
* Code specifying the type of source where event originated
*
*/
public CodingDt addType() {
CodingDt newType = new CodingDt();
getType().add(newType);
return newType;
}
/**
* Gets the first repetition for type (The type of source where event originated),
* creating it if it does not already exist.
*
*
* Definition:
* Code specifying the type of source where event originated
*
*/
public CodingDt getTypeFirstRep() {
if (getType().isEmpty()) {
return addType();
}
return getType().get(0);
}
}
/**
* Block class for child element: SecurityEvent.object (Specific instances of data or objects that have been accessed)
*
*
* Definition:
* Specific instances of data or objects that have been accessed
*
*/
@Block()
public static class ObjectElement
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Specific instance of object (e.g. versioned)",
formalDefinition="Identifies a specific instance of the participant object. The reference should always be version specific"
)
private IdentifierDt myIdentifier;
@Child(name="reference", order=1, min=0, max=1, summary=false, modifier=false, type={
IResource.class })
@Description(
shortDefinition="Specific instance of resource (e.g. versioned)",
formalDefinition="Identifies a specific instance of the participant object. The reference should always be version specific"
)
private ResourceReferenceDt myReference;
@Child(name="type", type=CodeDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Object type being audited",
formalDefinition="Object type being audited"
)
private BoundCodeDt myType;
@Child(name="role", type=CodeDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Functional application role of Object",
formalDefinition="Code representing the functional application role of Participant Object being audited"
)
private BoundCodeDt myRole;
@Child(name="lifecycle", type=CodeDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Life-cycle stage for the object",
formalDefinition="Identifier for the data life-cycle stage for the participant object"
)
private BoundCodeDt myLifecycle;
@Child(name="sensitivity", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Policy-defined sensitivity for the object",
formalDefinition="Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics"
)
private CodeableConceptDt mySensitivity;
@Child(name="name", type=StringDt.class, order=6, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Instance-specific descriptor for Object",
formalDefinition="An instance-specific descriptor of the Participant Object ID audited, such as a person's name"
)
private StringDt myName;
@Child(name="description", type=StringDt.class, order=7, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Descriptive text",
formalDefinition="Text that describes the object in more detail"
)
private StringDt myDescription;
@Child(name="query", type=Base64BinaryDt.class, order=8, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Actual query for object",
formalDefinition="The actual query for a query-type participant object"
)
private Base64BinaryDt myQuery;
@Child(name="detail", order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Additional Information about the Object",
formalDefinition=""
)
private java.util.List myDetail;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myReference, myType, myRole, myLifecycle, mySensitivity, myName, myDescription, myQuery, myDetail);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myReference, myType, myRole, myLifecycle, mySensitivity, myName, myDescription, myQuery, myDetail);
}
/**
* Gets the value(s) for identifier (Specific instance of object (e.g. versioned)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public IdentifierDt getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new IdentifierDt();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier (Specific instance of object (e.g. versioned)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public IdentifierDt getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new IdentifierDt();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (Specific instance of object (e.g. versioned))
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public ObjectElement setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Sets the value for identifier (Specific instance of object (e.g. versioned))
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public ObjectElement setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel);
return this;
}
/**
* Sets the value for identifier (Specific instance of object (e.g. versioned))
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public ObjectElement setIdentifier( String theSystem, String theValue) {
myIdentifier = new IdentifierDt(theSystem, theValue);
return this;
}
/**
* Gets the value(s) for reference (Specific instance of resource (e.g. versioned)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public ResourceReferenceDt getReference() {
if (myReference == null) {
myReference = new ResourceReferenceDt();
}
return myReference;
}
/**
* Gets the value(s) for reference (Specific instance of resource (e.g. versioned)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public ResourceReferenceDt getReferenceElement() {
if (myReference == null) {
myReference = new ResourceReferenceDt();
}
return myReference;
}
/**
* Sets the value(s) for reference (Specific instance of resource (e.g. versioned))
*
*
* Definition:
* Identifies a specific instance of the participant object. The reference should always be version specific
*
*/
public ObjectElement setReference(ResourceReferenceDt theValue) {
myReference = theValue;
return this;
}
/**
* Gets the value(s) for type (Object type being audited).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Object type being audited
*
*/
public BoundCodeDt getType() {
if (myType == null) {
myType = new BoundCodeDt(SecurityEventObjectTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Gets the value(s) for type (Object type being audited).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Object type being audited
*
*/
public BoundCodeDt getTypeElement() {
if (myType == null) {
myType = new BoundCodeDt(SecurityEventObjectTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Sets the value(s) for type (Object type being audited)
*
*
* Definition:
* Object type being audited
*
*/
public ObjectElement setType(BoundCodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value(s) for type (Object type being audited)
*
*
* Definition:
* Object type being audited
*
*/
public ObjectElement setType(SecurityEventObjectTypeEnum theValue) {
getType().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for role (Functional application role of Object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Code representing the functional application role of Participant Object being audited
*
*/
public BoundCodeDt getRole() {
if (myRole == null) {
myRole = new BoundCodeDt(SecurityEventObjectRoleEnum.VALUESET_BINDER);
}
return myRole;
}
/**
* Gets the value(s) for role (Functional application role of Object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Code representing the functional application role of Participant Object being audited
*
*/
public BoundCodeDt getRoleElement() {
if (myRole == null) {
myRole = new BoundCodeDt(SecurityEventObjectRoleEnum.VALUESET_BINDER);
}
return myRole;
}
/**
* Sets the value(s) for role (Functional application role of Object)
*
*
* Definition:
* Code representing the functional application role of Participant Object being audited
*
*/
public ObjectElement setRole(BoundCodeDt theValue) {
myRole = theValue;
return this;
}
/**
* Sets the value(s) for role (Functional application role of Object)
*
*
* Definition:
* Code representing the functional application role of Participant Object being audited
*
*/
public ObjectElement setRole(SecurityEventObjectRoleEnum theValue) {
getRole().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for lifecycle (Life-cycle stage for the object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier for the data life-cycle stage for the participant object
*
*/
public BoundCodeDt getLifecycle() {
if (myLifecycle == null) {
myLifecycle = new BoundCodeDt(SecurityEventObjectLifecycleEnum.VALUESET_BINDER);
}
return myLifecycle;
}
/**
* Gets the value(s) for lifecycle (Life-cycle stage for the object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier for the data life-cycle stage for the participant object
*
*/
public BoundCodeDt getLifecycleElement() {
if (myLifecycle == null) {
myLifecycle = new BoundCodeDt(SecurityEventObjectLifecycleEnum.VALUESET_BINDER);
}
return myLifecycle;
}
/**
* Sets the value(s) for lifecycle (Life-cycle stage for the object)
*
*
* Definition:
* Identifier for the data life-cycle stage for the participant object
*
*/
public ObjectElement setLifecycle(BoundCodeDt theValue) {
myLifecycle = theValue;
return this;
}
/**
* Sets the value(s) for lifecycle (Life-cycle stage for the object)
*
*
* Definition:
* Identifier for the data life-cycle stage for the participant object
*
*/
public ObjectElement setLifecycle(SecurityEventObjectLifecycleEnum theValue) {
getLifecycle().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for sensitivity (Policy-defined sensitivity for the object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics
*
*/
public CodeableConceptDt getSensitivity() {
if (mySensitivity == null) {
mySensitivity = new CodeableConceptDt();
}
return mySensitivity;
}
/**
* Gets the value(s) for sensitivity (Policy-defined sensitivity for the object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics
*
*/
public CodeableConceptDt getSensitivityElement() {
if (mySensitivity == null) {
mySensitivity = new CodeableConceptDt();
}
return mySensitivity;
}
/**
* Sets the value(s) for sensitivity (Policy-defined sensitivity for the object)
*
*
* Definition:
* Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics
*
*/
public ObjectElement setSensitivity(CodeableConceptDt theValue) {
mySensitivity = theValue;
return this;
}
/**
* Gets the value(s) for name (Instance-specific descriptor for Object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An instance-specific descriptor of the Participant Object ID audited, such as a person's name
*
*/
public StringDt getName() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Gets the value(s) for name (Instance-specific descriptor for Object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An instance-specific descriptor of the Participant Object ID audited, such as a person's name
*
*/
public StringDt getNameElement() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Sets the value(s) for name (Instance-specific descriptor for Object)
*
*
* Definition:
* An instance-specific descriptor of the Participant Object ID audited, such as a person's name
*
*/
public ObjectElement setName(StringDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name (Instance-specific descriptor for Object)
*
*
* Definition:
* An instance-specific descriptor of the Participant Object ID audited, such as a person's name
*
*/
public ObjectElement setName( String theString) {
myName = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for description (Descriptive text).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Text that describes the object in more detail
*
*/
public StringDt getDescription() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Gets the value(s) for description (Descriptive text).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Text that describes the object in more detail
*
*/
public StringDt getDescriptionElement() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Sets the value(s) for description (Descriptive text)
*
*
* Definition:
* Text that describes the object in more detail
*
*/
public ObjectElement setDescription(StringDt theValue) {
myDescription = theValue;
return this;
}
/**
* Sets the value for description (Descriptive text)
*
*
* Definition:
* Text that describes the object in more detail
*
*/
public ObjectElement setDescription( String theString) {
myDescription = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for query (Actual query for object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The actual query for a query-type participant object
*
*/
public Base64BinaryDt getQuery() {
if (myQuery == null) {
myQuery = new Base64BinaryDt();
}
return myQuery;
}
/**
* Gets the value(s) for query (Actual query for object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The actual query for a query-type participant object
*
*/
public Base64BinaryDt getQueryElement() {
if (myQuery == null) {
myQuery = new Base64BinaryDt();
}
return myQuery;
}
/**
* Sets the value(s) for query (Actual query for object)
*
*
* Definition:
* The actual query for a query-type participant object
*
*/
public ObjectElement setQuery(Base64BinaryDt theValue) {
myQuery = theValue;
return this;
}
/**
* Sets the value for query (Actual query for object)
*
*
* Definition:
* The actual query for a query-type participant object
*
*/
public ObjectElement setQuery( byte[] theBytes) {
myQuery = new Base64BinaryDt(theBytes);
return this;
}
/**
* Gets the value(s) for detail (Additional Information about the Object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getDetail() {
if (myDetail == null) {
myDetail = new java.util.ArrayList();
}
return myDetail;
}
/**
* Gets the value(s) for detail (Additional Information about the Object).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getDetailElement() {
if (myDetail == null) {
myDetail = new java.util.ArrayList();
}
return myDetail;
}
/**
* Sets the value(s) for detail (Additional Information about the Object)
*
*
* Definition:
*
*
*/
public ObjectElement setDetail(java.util.List theValue) {
myDetail = theValue;
return this;
}
/**
* Adds and returns a new value for detail (Additional Information about the Object)
*
*
* Definition:
*
*
*/
public ObjectDetail addDetail() {
ObjectDetail newType = new ObjectDetail();
getDetail().add(newType);
return newType;
}
/**
* Gets the first repetition for detail (Additional Information about the Object),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public ObjectDetail getDetailFirstRep() {
if (getDetail().isEmpty()) {
return addDetail();
}
return getDetail().get(0);
}
}
/**
* Block class for child element: SecurityEvent.object.detail (Additional Information about the Object)
*
*
* Definition:
*
*
*/
@Block()
public static class ObjectDetail
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="type", type=StringDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Name of the property",
formalDefinition=""
)
private StringDt myType;
@Child(name="value", type=Base64BinaryDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Property value",
formalDefinition=""
)
private Base64BinaryDt myValue;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myValue);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myValue);
}
/**
* Gets the value(s) for type (Name of the property).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public StringDt getType() {
if (myType == null) {
myType = new StringDt();
}
return myType;
}
/**
* Gets the value(s) for type (Name of the property).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public StringDt getTypeElement() {
if (myType == null) {
myType = new StringDt();
}
return myType;
}
/**
* Sets the value(s) for type (Name of the property)
*
*
* Definition:
*
*
*/
public ObjectDetail setType(StringDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value for type (Name of the property)
*
*
* Definition:
*
*
*/
public ObjectDetail setType( String theString) {
myType = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for value (Property value).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public Base64BinaryDt getValue() {
if (myValue == null) {
myValue = new Base64BinaryDt();
}
return myValue;
}
/**
* Gets the value(s) for value (Property value).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public Base64BinaryDt getValueElement() {
if (myValue == null) {
myValue = new Base64BinaryDt();
}
return myValue;
}
/**
* Sets the value(s) for value (Property value)
*
*
* Definition:
*
*
*/
public ObjectDetail setValue(Base64BinaryDt theValue) {
myValue = theValue;
return this;
}
/**
* Sets the value for value (Property value)
*
*
* Definition:
*
*
*/
public ObjectDetail setValue( byte[] theBytes) {
myValue = new Base64BinaryDt(theBytes);
return this;
}
}
@Override
public String getResourceName() {
return "SecurityEvent";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU1;
}
}