All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.fhir.model.dstu2.resource.Provenance Maven / Gradle / Ivy

The newest version!
















package ca.uhn.fhir.model.dstu2.resource;

import java.math.BigDecimal;
import java.net.URI;
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.dstu2.valueset.AccountStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
import ca.uhn.fhir.model.dstu2.composite.AddressDt;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
import ca.uhn.fhir.model.dstu2.resource.Appointment;
import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.resource.BodySite;
import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.CarePlan;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Claim;
import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Composition;
import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu2.resource.Condition;
import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.Contract;
import ca.uhn.fhir.model.dstu2.resource.Coverage;
import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
import ca.uhn.fhir.model.dstu2.resource.Encounter;
import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Goal;
import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Group;
import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu2.resource.Immunization;
import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Location;
import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
import ca.uhn.fhir.model.dstu2.resource.Media;
import ca.uhn.fhir.model.dstu2.resource.Medication;
import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Order;
import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Person;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.resource.Procedure;
import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.composite.RatioDt;
import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu2.resource.Schedule;
import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
import ca.uhn.fhir.model.dstu2.resource.Slot;
import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Specimen;
import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Substance;
import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.composite.TimingDt;
import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.AgeDt;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
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.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.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.TimeDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR Provenance Resource
 * (infrastructure.information)
 *
 * 

* Definition: * Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies. *

* *

* Requirements: * *

* *

* Profile Definition: * http://hl7.org/fhir/profiles/Provenance *

* */ @ResourceDef(name="Provenance", profile="http://hl7.org/fhir/profiles/Provenance", id="provenance") public class Provenance extends ca.uhn.fhir.model.dstu2.resource.BaseResource implements IResource { /** * Search parameter constant for target *

* Description:
* Type: reference
* Path: Provenance.target
*

*/ @SearchParamDefinition(name="target", path="Provenance.target", description="", type="reference" , providesMembershipIn={ @Compartment(name="Patient") , @Compartment(name="Patient") } ) public static final String SP_TARGET = "target"; /** * Fluent Client search parameter constant for target *

* Description:
* Type: reference
* Path: Provenance.target
*

*/ public static final ReferenceClientParam TARGET = new ReferenceClientParam(SP_TARGET); /** * Search parameter constant for start *

* Description:
* Type: date
* Path: Provenance.period.start
*

*/ @SearchParamDefinition(name="start", path="Provenance.period.start", description="", type="date" ) public static final String SP_START = "start"; /** * Fluent Client search parameter constant for start *

* Description:
* Type: date
* Path: Provenance.period.start
*

*/ public static final DateClientParam START = new DateClientParam(SP_START); /** * Search parameter constant for end *

* Description:
* Type: date
* Path: Provenance.period.end
*

*/ @SearchParamDefinition(name="end", path="Provenance.period.end", description="", type="date" ) public static final String SP_END = "end"; /** * Fluent Client search parameter constant for end *

* Description:
* Type: date
* Path: Provenance.period.end
*

*/ public static final DateClientParam END = new DateClientParam(SP_END); /** * Search parameter constant for location *

* Description:
* Type: reference
* Path: Provenance.location
*

*/ @SearchParamDefinition(name="location", path="Provenance.location", description="", type="reference" ) public static final String SP_LOCATION = "location"; /** * Fluent Client search parameter constant for location *

* Description:
* Type: reference
* Path: Provenance.location
*

*/ public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); /** * Search parameter constant for agent *

* Description:
* Type: reference
* Path: Provenance.agent.actor
*

*/ @SearchParamDefinition(name="agent", path="Provenance.agent.actor", description="", type="reference" , providesMembershipIn={ @Compartment(name="Encounter") , @Compartment(name="RelatedPerson") , @Compartment(name="Practitioner") } ) public static final String SP_AGENT = "agent"; /** * Fluent Client search parameter constant for agent *

* Description:
* Type: reference
* Path: Provenance.agent.actor
*

*/ public static final ReferenceClientParam AGENT = new ReferenceClientParam(SP_AGENT); /** * Search parameter constant for userid *

* Description:
* Type: token
* Path: Provenance.agent.userId
*

*/ @SearchParamDefinition(name="userid", path="Provenance.agent.userId", description="", type="token" ) public static final String SP_USERID = "userid"; /** * Fluent Client search parameter constant for userid *

* Description:
* Type: token
* Path: Provenance.agent.userId
*

*/ public static final TokenClientParam USERID = new TokenClientParam(SP_USERID); /** * Search parameter constant for patient *

* Description:
* Type: reference
* Path: Provenance.target
*

*/ @SearchParamDefinition(name="patient", path="Provenance.target", description="", type="reference" , providesMembershipIn={ @Compartment(name="Patient") } , target={ ca.uhn.fhir.model.dstu2.resource.Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient *

* Description:
* Type: reference
* Path: Provenance.target
*

*/ public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); /** * Search parameter constant for sigtype *

* Description:
* Type: token
* Path: Provenance.signature.type
*

*/ @SearchParamDefinition(name="sigtype", path="Provenance.signature.type", description="", type="token" ) public static final String SP_SIGTYPE = "sigtype"; /** * Fluent Client search parameter constant for sigtype *

* Description:
* Type: token
* Path: Provenance.signature.type
*

*/ public static final TokenClientParam SIGTYPE = new TokenClientParam(SP_SIGTYPE); /** * Search parameter constant for entitytype *

* Description:
* Type: token
* Path: Provenance.entity.type
*

*/ @SearchParamDefinition(name="entitytype", path="Provenance.entity.type", description="", type="token" ) public static final String SP_ENTITYTYPE = "entitytype"; /** * Fluent Client search parameter constant for entitytype *

* Description:
* Type: token
* Path: Provenance.entity.type
*

*/ public static final TokenClientParam ENTITYTYPE = new TokenClientParam(SP_ENTITYTYPE); /** * Search parameter constant for entity *

* Description:
* Type: uri
* Path: Provenance.entity.reference
*

*/ @SearchParamDefinition(name="entity", path="Provenance.entity.reference", description="", type="uri" ) public static final String SP_ENTITY = "entity"; /** * Fluent Client search parameter constant for entity *

* Description:
* Type: uri
* Path: Provenance.entity.reference
*

*/ public static final UriClientParam ENTITY = new UriClientParam(SP_ENTITY); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Provenance:agent". */ public static final Include INCLUDE_AGENT = new Include("Provenance:agent"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Provenance:location". */ public static final Include INCLUDE_LOCATION = new Include("Provenance:location"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Provenance:patient". */ public static final Include INCLUDE_PATIENT = new Include("Provenance:patient"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Provenance:target". */ public static final Include INCLUDE_TARGET = new Include("Provenance:target"); @Child(name="target", order=0, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ IResource.class }) @Description( shortDefinition="what", formalDefinition="The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity" ) private java.util.List myTarget; @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="when.done", formalDefinition="The period during which the activity occurred" ) private PeriodDt myPeriod; @Child(name="recorded", type=InstantDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="when.recorded", formalDefinition="The instant of time at which the activity was recorded" ) private InstantDt myRecorded; @Child(name="reason", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="why", formalDefinition="The reason that the activity was taking place" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse") private java.util.List myReason; @Child(name="activity", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="why", formalDefinition="An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState") private CodeableConceptDt myActivity; @Child(name="location", order=5, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Location.class }) @Description( shortDefinition="where", formalDefinition="Where the activity occurred, if relevant" ) private ResourceReferenceDt myLocation; @Child(name="policy", type=UriDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc." ) private java.util.List myPolicy; @Child(name="agent", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="who", formalDefinition="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" ) private java.util.List myAgent; @Child(name="entity", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An entity used in this activity" ) private java.util.List myEntity; @Child(name="signature", type=SignatureDt.class, order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated." ) private java.util.List mySignature; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTarget, myPeriod, myRecorded, myReason, myActivity, myLocation, myPolicy, myAgent, myEntity, mySignature); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTarget, myPeriod, myRecorded, myReason, myActivity, myLocation, myPolicy, myAgent, myEntity, mySignature); } /** * Gets the value(s) for target (what). * creating it if it does * not exist. Will not return null. * *

* Definition: * The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity *

*/ public java.util.List getTarget() { if (myTarget == null) { myTarget = new java.util.ArrayList(); } return myTarget; } /** * Sets the value(s) for target (what) * *

* Definition: * The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity *

*/ public Provenance setTarget(java.util.List theValue) { myTarget = theValue; return this; } /** * Adds and returns a new value for target (what) * *

* Definition: * The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity *

*/ public ResourceReferenceDt addTarget() { ResourceReferenceDt newType = new ResourceReferenceDt(); getTarget().add(newType); return newType; } /** * Gets the value(s) for period (when.done). * creating it if it does * not exist. Will not return null. * *

* Definition: * The period during which the activity occurred *

*/ public PeriodDt getPeriod() { if (myPeriod == null) { myPeriod = new PeriodDt(); } return myPeriod; } /** * Sets the value(s) for period (when.done) * *

* Definition: * The period during which the activity occurred *

*/ public Provenance setPeriod(PeriodDt theValue) { myPeriod = theValue; return this; } /** * Gets the value(s) for recorded (when.recorded). * creating it if it does * not exist. Will not return null. * *

* Definition: * The instant of time at which the activity was recorded *

*/ public InstantDt getRecordedElement() { if (myRecorded == null) { myRecorded = new InstantDt(); } return myRecorded; } /** * Gets the value(s) for recorded (when.recorded). * creating it if it does * not exist. This method may return null. * *

* Definition: * The instant of time at which the activity was recorded *

*/ public Date getRecorded() { return getRecordedElement().getValue(); } /** * Sets the value(s) for recorded (when.recorded) * *

* Definition: * The instant of time at which the activity was recorded *

*/ public Provenance setRecorded(InstantDt theValue) { myRecorded = theValue; return this; } /** * Sets the value for recorded (when.recorded) * *

* Definition: * The instant of time at which the activity was recorded *

*/ public Provenance setRecordedWithMillisPrecision( Date theDate) { myRecorded = new InstantDt(theDate); return this; } /** * Sets the value for recorded (when.recorded) * *

* Definition: * The instant of time at which the activity was recorded *

*/ public Provenance setRecorded( Date theDate, TemporalPrecisionEnum thePrecision) { myRecorded = new InstantDt(theDate, thePrecision); return this; } /** * Gets the value(s) for reason (why). * creating it if it does * not exist. Will not return null. * *

* Definition: * The reason that the activity was taking place *

*/ public java.util.List getReason() { if (myReason == null) { myReason = new java.util.ArrayList(); } return myReason; } /** * Sets the value(s) for reason (why) * *

* Definition: * The reason that the activity was taking place *

*/ public Provenance setReason(java.util.List theValue) { myReason = theValue; return this; } /** * Adds and returns a new value for reason (why) * *

* Definition: * The reason that the activity was taking place *

*/ public CodeableConceptDt addReason() { CodeableConceptDt newType = new CodeableConceptDt(); getReason().add(newType); return newType; } /** * Adds a given new value for reason (why) * *

* Definition: * The reason that the activity was taking place *

* @param theValue The reason to add (must not be null) */ public Provenance addReason(CodeableConceptDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getReason().add(theValue); return this; } /** * Gets the first repetition for reason (why), * creating it if it does not already exist. * *

* Definition: * The reason that the activity was taking place *

*/ public CodeableConceptDt getReasonFirstRep() { if (getReason().isEmpty()) { return addReason(); } return getReason().get(0); } /** * Gets the value(s) for activity (why). * creating it if it does * not exist. Will not return null. * *

* Definition: * An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities *

*/ public CodeableConceptDt getActivity() { if (myActivity == null) { myActivity = new CodeableConceptDt(); } return myActivity; } /** * Sets the value(s) for activity (why) * *

* Definition: * An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities *

*/ public Provenance setActivity(CodeableConceptDt theValue) { myActivity = theValue; return this; } /** * Gets the value(s) for location (where). * creating it if it does * not exist. Will not return null. * *

* Definition: * Where the activity occurred, if relevant *

*/ public ResourceReferenceDt getLocation() { if (myLocation == null) { myLocation = new ResourceReferenceDt(); } return myLocation; } /** * Sets the value(s) for location (where) * *

* Definition: * Where the activity occurred, if relevant *

*/ public Provenance setLocation(ResourceReferenceDt theValue) { myLocation = theValue; return this; } /** * Gets the value(s) for policy (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. *

*/ public java.util.List getPolicy() { if (myPolicy == null) { myPolicy = new java.util.ArrayList(); } return myPolicy; } /** * Sets the value(s) for policy () * *

* Definition: * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. *

*/ public Provenance setPolicy(java.util.List theValue) { myPolicy = theValue; return this; } /** * Adds and returns a new value for policy () * *

* Definition: * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. *

*/ public UriDt addPolicy() { UriDt newType = new UriDt(); getPolicy().add(newType); return newType; } /** * Adds a given new value for policy () * *

* Definition: * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. *

* @param theValue The policy to add (must not be null) */ public Provenance addPolicy(UriDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getPolicy().add(theValue); return this; } /** * Gets the first repetition for policy (), * creating it if it does not already exist. * *

* Definition: * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. *

*/ public UriDt getPolicyFirstRep() { if (getPolicy().isEmpty()) { return addPolicy(); } return getPolicy().get(0); } /** * Adds a new value for policy () * *

* Definition: * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Provenance addPolicy( String theUri) { if (myPolicy == null) { myPolicy = new java.util.ArrayList(); } myPolicy.add(new UriDt(theUri)); return this; } /** * Gets the value(s) for agent (who). * creating it if it does * not exist. Will not return null. * *

* 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 *

*/ public java.util.List getAgent() { if (myAgent == null) { myAgent = new java.util.ArrayList(); } return myAgent; } /** * Sets the value(s) for 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 *

*/ public Provenance setAgent(java.util.List theValue) { myAgent = theValue; return this; } /** * Adds and returns a new value for 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 *

*/ public Agent addAgent() { Agent newType = new Agent(); getAgent().add(newType); return newType; } /** * Adds a given new value for 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 *

* @param theValue The agent to add (must not be null) */ public Provenance addAgent(Agent theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getAgent().add(theValue); return this; } /** * Gets the first repetition for agent (who), * creating it if it does not already exist. * *

* 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 *

*/ public Agent getAgentFirstRep() { if (getAgent().isEmpty()) { return addAgent(); } return getAgent().get(0); } /** * Gets the value(s) for entity (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An entity used in this activity *

*/ public java.util.List getEntity() { if (myEntity == null) { myEntity = new java.util.ArrayList(); } return myEntity; } /** * Sets the value(s) for entity () * *

* Definition: * An entity used in this activity *

*/ public Provenance setEntity(java.util.List theValue) { myEntity = theValue; return this; } /** * Adds and returns a new value for entity () * *

* Definition: * An entity used in this activity *

*/ public Entity addEntity() { Entity newType = new Entity(); getEntity().add(newType); return newType; } /** * Adds a given new value for entity () * *

* Definition: * An entity used in this activity *

* @param theValue The entity to add (must not be null) */ public Provenance addEntity(Entity theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getEntity().add(theValue); return this; } /** * Gets the first repetition for entity (), * creating it if it does not already exist. * *

* Definition: * An entity used in this activity *

*/ public Entity getEntityFirstRep() { if (getEntity().isEmpty()) { return addEntity(); } return getEntity().get(0); } /** * Gets the value(s) for signature (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated. *

*/ public java.util.List getSignature() { if (mySignature == null) { mySignature = new java.util.ArrayList(); } return mySignature; } /** * Sets the value(s) for signature () * *

* Definition: * A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated. *

*/ public Provenance setSignature(java.util.List theValue) { mySignature = theValue; return this; } /** * Adds and returns a new value for signature () * *

* Definition: * A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated. *

*/ public SignatureDt addSignature() { SignatureDt newType = new SignatureDt(); getSignature().add(newType); return newType; } /** * Adds a given new value for signature () * *

* Definition: * A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated. *

* @param theValue The signature to add (must not be null) */ public Provenance addSignature(SignatureDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getSignature().add(theValue); return this; } /** * Gets the first repetition for signature (), * creating it if it does not already exist. * *

* Definition: * A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated. *

*/ public SignatureDt getSignatureFirstRep() { if (getSignature().isEmpty()) { return addSignature(); } return getSignature().get(0); } /** * 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 *

*/ @Block() public static class Agent extends BaseIdentifiableElement implements IResourceBlock { @Child(name="role", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The function of the agent with respect to the activity." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-provenance-agent-role") private CodingDt myRole; @Child(name="actor", order=1, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Organization.class }) @Description( shortDefinition="who.actor", formalDefinition="The individual, device or organization that participated in the event" ) private ResourceReferenceDt myActor; @Child(name="userId", type=IdentifierDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="who.actor", formalDefinition="The identity of the agent as known by the authorization system" ) private IdentifierDt myUserId; @Child(name="relatedAgent", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="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" ) private java.util.List myRelatedAgent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myActor, myUserId, myRelatedAgent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myActor, myUserId, myRelatedAgent); } /** * 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. *

*/ public CodingDt getRole() { if (myRole == null) { myRole = new CodingDt(); } return myRole; } /** * Sets the value(s) for role () * *

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

*/ public Agent setRole(CodingDt theValue) { myRole = theValue; return this; } /** * 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 *

*/ public ResourceReferenceDt getActor() { if (myActor == null) { myActor = new ResourceReferenceDt(); } return myActor; } /** * Sets the value(s) for actor (who.actor) * *

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

*/ public Agent setActor(ResourceReferenceDt theValue) { myActor = theValue; return this; } /** * 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 *

*/ public IdentifierDt getUserId() { if (myUserId == null) { myUserId = new IdentifierDt(); } return myUserId; } /** * Sets the value(s) for userId (who.actor) * *

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

*/ public Agent setUserId(IdentifierDt theValue) { myUserId = theValue; return this; } /** * 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 *

*/ public java.util.List getRelatedAgent() { if (myRelatedAgent == null) { myRelatedAgent = new java.util.ArrayList(); } return myRelatedAgent; } /** * 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 *

*/ public Agent setRelatedAgent(java.util.List theValue) { myRelatedAgent = theValue; return this; } /** * 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 *

*/ public AgentRelatedAgent addRelatedAgent() { AgentRelatedAgent newType = new AgentRelatedAgent(); getRelatedAgent().add(newType); return newType; } /** * 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 *

* @param theValue The relatedAgent to add (must not be null) */ public Agent addRelatedAgent(AgentRelatedAgent theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getRelatedAgent().add(theValue); return this; } /** * 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 *

*/ public AgentRelatedAgent getRelatedAgentFirstRep() { if (getRelatedAgent().isEmpty()) { return addRelatedAgent(); } return getRelatedAgent().get(0); } } /** * Block class for child element: Provenance.agent.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 *

*/ @Block() public static class AgentRelatedAgent extends BaseIdentifiableElement implements IResourceBlock { @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The type of relationship between agents" ) private CodeableConceptDt myType; @Child(name="target", type=UriDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An internal reference to another agent listed in this provenance by its identifier" ) private UriDt myTarget; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myTarget); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myTarget); } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of relationship between agents *

*/ public CodeableConceptDt getType() { if (myType == null) { myType = new CodeableConceptDt(); } return myType; } /** * Sets the value(s) for type () * *

* Definition: * The type of relationship between agents *

*/ public AgentRelatedAgent setType(CodeableConceptDt theValue) { myType = theValue; return this; } /** * Gets the value(s) for target (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An internal reference to another agent listed in this provenance by its identifier *

*/ public UriDt getTargetElement() { if (myTarget == null) { myTarget = new UriDt(); } return myTarget; } /** * Gets the value(s) for target (). * creating it if it does * not exist. This method may return null. * *

* Definition: * An internal reference to another agent listed in this provenance by its identifier *

*/ public String getTarget() { return getTargetElement().getValue(); } /** * Sets the value(s) for target () * *

* Definition: * An internal reference to another agent listed in this provenance by its identifier *

*/ public AgentRelatedAgent setTarget(UriDt theValue) { myTarget = theValue; return this; } /** * Sets the value for target () * *

* Definition: * An internal reference to another agent listed in this provenance by its identifier *

*/ public AgentRelatedAgent setTarget( String theUri) { myTarget = new UriDt(theUri); return this; } } /** * Block class for child element: Provenance.entity () * *

* Definition: * An entity used in this activity *

*/ @Block() public static class Entity extends BaseIdentifiableElement implements IResourceBlock { @Child(name="role", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="How the entity was used during the activity" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/provenance-entity-role") private BoundCodeDt myRole; @Child(name="type", type=CodingDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The type of the entity. If the entity is a resource, then this is a resource type" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/resource-types") private CodingDt myType; @Child(name="reference", type=UriDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative" ) private UriDt myReference; @Child(name="display", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Human-readable description of the entity" ) private StringDt myDisplay; @Child(name="agent", type=Agent.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity" ) private Agent myAgent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myType, myReference, myDisplay, myAgent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myType, myReference, myDisplay, myAgent); } /** * Gets the value(s) for role (). * creating it if it does * not exist. Will not return null. * *

* Definition: * How the entity was used during the activity *

*/ public BoundCodeDt getRoleElement() { if (myRole == null) { myRole = new BoundCodeDt(ProvenanceEntityRoleEnum.VALUESET_BINDER); } return myRole; } /** * Gets the value(s) for role (). * creating it if it does * not exist. This method may return null. * *

* Definition: * How the entity was used during the activity *

*/ public String getRole() { return getRoleElement().getValue(); } /** * Sets the value(s) for role () * *

* Definition: * How the entity was used during the activity *

*/ public Entity setRole(BoundCodeDt theValue) { myRole = theValue; return this; } /** * Sets the value(s) for role () * *

* Definition: * How the entity was used during the activity *

*/ public Entity setRole(ProvenanceEntityRoleEnum theValue) { setRole(new BoundCodeDt(ProvenanceEntityRoleEnum.VALUESET_BINDER, theValue)); /* getRoleElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of the entity. If the entity is a resource, then this is a resource type *

*/ public CodingDt getType() { if (myType == null) { myType = new CodingDt(); } return myType; } /** * Sets the value(s) for type () * *

* Definition: * The type of the entity. If the entity is a resource, then this is a resource type *

*/ public Entity setType(CodingDt theValue) { myType = theValue; return this; } /** * Gets the value(s) for reference (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative *

*/ public UriDt getReferenceElement() { if (myReference == null) { myReference = new UriDt(); } return myReference; } /** * Gets the value(s) for reference (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative *

*/ public String getReference() { return getReferenceElement().getValue(); } /** * Sets the value(s) for reference () * *

* Definition: * Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative *

*/ public Entity setReference(UriDt theValue) { myReference = theValue; return this; } /** * Sets the value for reference () * *

* Definition: * Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative *

*/ public Entity setReference( String theUri) { myReference = new UriDt(theUri); return this; } /** * Gets the value(s) for display (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Human-readable description of the entity *

*/ public StringDt getDisplayElement() { if (myDisplay == null) { myDisplay = new StringDt(); } return myDisplay; } /** * Gets the value(s) for display (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Human-readable description of the entity *

*/ public String getDisplay() { return getDisplayElement().getValue(); } /** * Sets the value(s) for display () * *

* Definition: * Human-readable description of the entity *

*/ public Entity setDisplay(StringDt theValue) { myDisplay = theValue; return this; } /** * Sets the value for display () * *

* Definition: * Human-readable description of the entity *

*/ public Entity setDisplay( String theString) { myDisplay = new StringDt(theString); return this; } /** * Gets the value(s) for agent (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity *

*/ public Agent getAgent() { if (myAgent == null) { myAgent = new Agent(); } return myAgent; } /** * Sets the value(s) for agent () * *

* Definition: * The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity *

*/ public Entity setAgent(Agent theValue) { myAgent = theValue; return this; } } @Override public String getResourceName() { return "Provenance"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy