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

ca.uhn.fhir.model.dstu2.resource.Contract 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 Contract Resource
 * ()
 *
 * 

* Definition: * A formal agreement between parties regarding the conduct of business, exchange of information or other matters. *

* *

* Requirements: * *

* *

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

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

* Description: The identity of the target of the contract
* Type: reference
* Path: Contract.subject
*

*/ @SearchParamDefinition(name="subject", path="Contract.subject", description="The identity of the target of the contract", type="reference" , target={ ca.uhn.fhir.model.dstu2.resource.Patient.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description: The identity of the target of the contract
* Type: reference
* Path: Contract.subject
*

*/ public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); /** * Search parameter constant for patient *

* Description: The identity of the target of the contract (if a patient)
* Type: reference
* Path: Contract.subject
*

*/ @SearchParamDefinition(name="patient", path="Contract.subject", description="The identity of the target of the contract (if a patient)", type="reference" , target={ ca.uhn.fhir.model.dstu2.resource.Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient *

* Description: The identity of the target of the contract (if a patient)
* Type: reference
* Path: Contract.subject
*

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

* Description: The identity of the contract
* Type: token
* Path: Contract.identifier
*

*/ @SearchParamDefinition(name="identifier", path="Contract.identifier", description="The identity of the contract", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description: The identity of the contract
* Type: token
* Path: Contract.identifier
*

*/ public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); /** * Search parameter constant for actor *

* Description:
* Type: reference
* Path: Contract.actor.entity
*

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

* Description:
* Type: reference
* Path: Contract.actor.entity
*

*/ public static final ReferenceClientParam ACTOR = new ReferenceClientParam(SP_ACTOR); /** * Search parameter constant for signer *

* Description:
* Type: reference
* Path: Contract.signer.party
*

*/ @SearchParamDefinition(name="signer", path="Contract.signer.party", description="", type="reference" ) public static final String SP_SIGNER = "signer"; /** * Fluent Client search parameter constant for signer *

* Description:
* Type: reference
* Path: Contract.signer.party
*

*/ public static final ReferenceClientParam SIGNER = new ReferenceClientParam(SP_SIGNER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Contract:actor". */ public static final Include INCLUDE_ACTOR = new Include("Contract:actor"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Contract:patient". */ public static final Include INCLUDE_PATIENT = new Include("Contract:patient"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Contract:signer". */ public static final Include INCLUDE_SIGNER = new Include("Contract:signer"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Contract:subject". */ public static final Include INCLUDE_SUBJECT = new Include("Contract:subject"); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Unique identifier for this Contract." ) private IdentifierDt myIdentifier; @Child(name="issued", type=DateTimeDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="When this Contract was issued." ) private DateTimeDt myIssued; @Child(name="applies", type=PeriodDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Relevant time or time-period when this Contract is applicable" ) private PeriodDt myApplies; @Child(name="subject", order=3, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={ IResource.class }) @Description( shortDefinition="", formalDefinition="Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services." ) private java.util.List mySubject; @Child(name="authority", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Organization.class }) @Description( shortDefinition="", formalDefinition="A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies." ) private java.util.List myAuthority; @Child(name="domain", order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Location.class }) @Description( shortDefinition="", formalDefinition="Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources." ) private java.util.List myDomain; @Child(name="type", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc." ) private CodeableConceptDt myType; @Child(name="subType", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent." ) private java.util.List mySubType; @Child(name="action", type=CodeableConceptDt.class, order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Action stipulated by this Contract." ) private java.util.List myAction; @Child(name="actionReason", type=CodeableConceptDt.class, order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Reason for action stipulated by this Contract." ) private java.util.List myActionReason; @Child(name="actor", order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="List of Contract actors" ) private java.util.List myActor; @Child(name="valuedItem", order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Contract Valued Item List" ) private java.util.List myValuedItem; @Child(name="signer", order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Party signing this Contract." ) private java.util.List mySigner; @Child(name="term", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups." ) private java.util.List myTerm; @Child(name="binding", order=14, min=0, max=1, summary=false, modifier=false, type={ AttachmentDt.class, Composition.class, DocumentReference.class, QuestionnaireResponse.class }) @Description( shortDefinition="", formalDefinition="Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the \"source of truth\" and which would be the basis for legal action related to enforcement of this Contract." ) private IDatatype myBinding; @Child(name="friendly", order=15, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement." ) private java.util.List myFriendly; @Child(name="legal", order=16, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="List of Legal expressions or representations of this Contract." ) private java.util.List myLegal; @Child(name="rule", order=17, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="List of Computable Policy Rule Language Representations of this Contract." ) private java.util.List myRule; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myIssued, myApplies, mySubject, myAuthority, myDomain, myType, mySubType, myAction, myActionReason, myActor, myValuedItem, mySigner, myTerm, myBinding, myFriendly, myLegal, myRule); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myIssued, myApplies, mySubject, myAuthority, myDomain, myType, mySubType, myAction, myActionReason, myActor, myValuedItem, mySigner, myTerm, myBinding, myFriendly, myLegal, myRule); } /** * Gets the value(s) for identifier (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Unique identifier for this Contract. *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier () * *

* Definition: * Unique identifier for this Contract. *

*/ public Contract setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Gets the value(s) for issued (). * creating it if it does * not exist. Will not return null. * *

* Definition: * When this Contract was issued. *

*/ public DateTimeDt getIssuedElement() { if (myIssued == null) { myIssued = new DateTimeDt(); } return myIssued; } /** * Gets the value(s) for issued (). * creating it if it does * not exist. This method may return null. * *

* Definition: * When this Contract was issued. *

*/ public Date getIssued() { return getIssuedElement().getValue(); } /** * Sets the value(s) for issued () * *

* Definition: * When this Contract was issued. *

*/ public Contract setIssued(DateTimeDt theValue) { myIssued = theValue; return this; } /** * Sets the value for issued () * *

* Definition: * When this Contract was issued. *

*/ public Contract setIssuedWithSecondsPrecision( Date theDate) { myIssued = new DateTimeDt(theDate); return this; } /** * Sets the value for issued () * *

* Definition: * When this Contract was issued. *

*/ public Contract setIssued( Date theDate, TemporalPrecisionEnum thePrecision) { myIssued = new DateTimeDt(theDate, thePrecision); return this; } /** * Gets the value(s) for applies (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Relevant time or time-period when this Contract is applicable *

*/ public PeriodDt getApplies() { if (myApplies == null) { myApplies = new PeriodDt(); } return myApplies; } /** * Sets the value(s) for applies () * *

* Definition: * Relevant time or time-period when this Contract is applicable *

*/ public Contract setApplies(PeriodDt theValue) { myApplies = theValue; return this; } /** * Gets the value(s) for subject (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services. *

*/ public java.util.List getSubject() { if (mySubject == null) { mySubject = new java.util.ArrayList(); } return mySubject; } /** * Sets the value(s) for subject () * *

* Definition: * Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services. *

*/ public Contract setSubject(java.util.List theValue) { mySubject = theValue; return this; } /** * Adds and returns a new value for subject () * *

* Definition: * Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services. *

*/ public ResourceReferenceDt addSubject() { ResourceReferenceDt newType = new ResourceReferenceDt(); getSubject().add(newType); return newType; } /** * Gets the value(s) for authority (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies. *

*/ public java.util.List getAuthority() { if (myAuthority == null) { myAuthority = new java.util.ArrayList(); } return myAuthority; } /** * Sets the value(s) for authority () * *

* Definition: * A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies. *

*/ public Contract setAuthority(java.util.List theValue) { myAuthority = theValue; return this; } /** * Adds and returns a new value for authority () * *

* Definition: * A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies. *

*/ public ResourceReferenceDt addAuthority() { ResourceReferenceDt newType = new ResourceReferenceDt(); getAuthority().add(newType); return newType; } /** * Gets the value(s) for domain (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources. *

*/ public java.util.List getDomain() { if (myDomain == null) { myDomain = new java.util.ArrayList(); } return myDomain; } /** * Sets the value(s) for domain () * *

* Definition: * Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources. *

*/ public Contract setDomain(java.util.List theValue) { myDomain = theValue; return this; } /** * Adds and returns a new value for domain () * *

* Definition: * Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources. *

*/ public ResourceReferenceDt addDomain() { ResourceReferenceDt newType = new ResourceReferenceDt(); getDomain().add(newType); return newType; } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc. *

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

* Definition: * Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc. *

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

* Definition: * More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent. *

*/ public java.util.List getSubType() { if (mySubType == null) { mySubType = new java.util.ArrayList(); } return mySubType; } /** * Sets the value(s) for subType () * *

* Definition: * More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent. *

*/ public Contract setSubType(java.util.List theValue) { mySubType = theValue; return this; } /** * Adds and returns a new value for subType () * *

* Definition: * More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent. *

*/ public CodeableConceptDt addSubType() { CodeableConceptDt newType = new CodeableConceptDt(); getSubType().add(newType); return newType; } /** * Adds a given new value for subType () * *

* Definition: * More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent. *

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

* Definition: * More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent. *

*/ public CodeableConceptDt getSubTypeFirstRep() { if (getSubType().isEmpty()) { return addSubType(); } return getSubType().get(0); } /** * Gets the value(s) for action (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Action stipulated by this Contract. *

*/ public java.util.List getAction() { if (myAction == null) { myAction = new java.util.ArrayList(); } return myAction; } /** * Sets the value(s) for action () * *

* Definition: * Action stipulated by this Contract. *

*/ public Contract setAction(java.util.List theValue) { myAction = theValue; return this; } /** * Adds and returns a new value for action () * *

* Definition: * Action stipulated by this Contract. *

*/ public CodeableConceptDt addAction() { CodeableConceptDt newType = new CodeableConceptDt(); getAction().add(newType); return newType; } /** * Adds a given new value for action () * *

* Definition: * Action stipulated by this Contract. *

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

* Definition: * Action stipulated by this Contract. *

*/ public CodeableConceptDt getActionFirstRep() { if (getAction().isEmpty()) { return addAction(); } return getAction().get(0); } /** * Gets the value(s) for actionReason (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reason for action stipulated by this Contract. *

*/ public java.util.List getActionReason() { if (myActionReason == null) { myActionReason = new java.util.ArrayList(); } return myActionReason; } /** * Sets the value(s) for actionReason () * *

* Definition: * Reason for action stipulated by this Contract. *

*/ public Contract setActionReason(java.util.List theValue) { myActionReason = theValue; return this; } /** * Adds and returns a new value for actionReason () * *

* Definition: * Reason for action stipulated by this Contract. *

*/ public CodeableConceptDt addActionReason() { CodeableConceptDt newType = new CodeableConceptDt(); getActionReason().add(newType); return newType; } /** * Adds a given new value for actionReason () * *

* Definition: * Reason for action stipulated by this Contract. *

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

* Definition: * Reason for action stipulated by this Contract. *

*/ public CodeableConceptDt getActionReasonFirstRep() { if (getActionReason().isEmpty()) { return addActionReason(); } return getActionReason().get(0); } /** * Gets the value(s) for actor (). * creating it if it does * not exist. Will not return null. * *

* Definition: * List of Contract actors *

*/ public java.util.List getActor() { if (myActor == null) { myActor = new java.util.ArrayList(); } return myActor; } /** * Sets the value(s) for actor () * *

* Definition: * List of Contract actors *

*/ public Contract setActor(java.util.List theValue) { myActor = theValue; return this; } /** * Adds and returns a new value for actor () * *

* Definition: * List of Contract actors *

*/ public Actor addActor() { Actor newType = new Actor(); getActor().add(newType); return newType; } /** * Adds a given new value for actor () * *

* Definition: * List of Contract actors *

* @param theValue The actor to add (must not be null) */ public Contract addActor(Actor theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getActor().add(theValue); return this; } /** * Gets the first repetition for actor (), * creating it if it does not already exist. * *

* Definition: * List of Contract actors *

*/ public Actor getActorFirstRep() { if (getActor().isEmpty()) { return addActor(); } return getActor().get(0); } /** * Gets the value(s) for valuedItem (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contract Valued Item List *

*/ public java.util.List getValuedItem() { if (myValuedItem == null) { myValuedItem = new java.util.ArrayList(); } return myValuedItem; } /** * Sets the value(s) for valuedItem () * *

* Definition: * Contract Valued Item List *

*/ public Contract setValuedItem(java.util.List theValue) { myValuedItem = theValue; return this; } /** * Adds and returns a new value for valuedItem () * *

* Definition: * Contract Valued Item List *

*/ public ValuedItem addValuedItem() { ValuedItem newType = new ValuedItem(); getValuedItem().add(newType); return newType; } /** * Adds a given new value for valuedItem () * *

* Definition: * Contract Valued Item List *

* @param theValue The valuedItem to add (must not be null) */ public Contract addValuedItem(ValuedItem theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getValuedItem().add(theValue); return this; } /** * Gets the first repetition for valuedItem (), * creating it if it does not already exist. * *

* Definition: * Contract Valued Item List *

*/ public ValuedItem getValuedItemFirstRep() { if (getValuedItem().isEmpty()) { return addValuedItem(); } return getValuedItem().get(0); } /** * Gets the value(s) for signer (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Party signing this Contract. *

*/ public java.util.List getSigner() { if (mySigner == null) { mySigner = new java.util.ArrayList(); } return mySigner; } /** * Sets the value(s) for signer () * *

* Definition: * Party signing this Contract. *

*/ public Contract setSigner(java.util.List theValue) { mySigner = theValue; return this; } /** * Adds and returns a new value for signer () * *

* Definition: * Party signing this Contract. *

*/ public Signer addSigner() { Signer newType = new Signer(); getSigner().add(newType); return newType; } /** * Adds a given new value for signer () * *

* Definition: * Party signing this Contract. *

* @param theValue The signer to add (must not be null) */ public Contract addSigner(Signer theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getSigner().add(theValue); return this; } /** * Gets the first repetition for signer (), * creating it if it does not already exist. * *

* Definition: * Party signing this Contract. *

*/ public Signer getSignerFirstRep() { if (getSigner().isEmpty()) { return addSigner(); } return getSigner().get(0); } /** * Gets the value(s) for term (). * creating it if it does * not exist. Will not return null. * *

* Definition: * One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups. *

*/ public java.util.List getTerm() { if (myTerm == null) { myTerm = new java.util.ArrayList(); } return myTerm; } /** * Sets the value(s) for term () * *

* Definition: * One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups. *

*/ public Contract setTerm(java.util.List theValue) { myTerm = theValue; return this; } /** * Adds and returns a new value for term () * *

* Definition: * One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups. *

*/ public Term addTerm() { Term newType = new Term(); getTerm().add(newType); return newType; } /** * Adds a given new value for term () * *

* Definition: * One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups. *

* @param theValue The term to add (must not be null) */ public Contract addTerm(Term theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getTerm().add(theValue); return this; } /** * Gets the first repetition for term (), * creating it if it does not already exist. * *

* Definition: * One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups. *

*/ public Term getTermFirstRep() { if (getTerm().isEmpty()) { return addTerm(); } return getTerm().get(0); } /** * Gets the value(s) for binding[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the \"source of truth\" and which would be the basis for legal action related to enforcement of this Contract. *

*/ public IDatatype getBinding() { return myBinding; } /** * Sets the value(s) for binding[x] () * *

* Definition: * Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the \"source of truth\" and which would be the basis for legal action related to enforcement of this Contract. *

*/ public Contract setBinding(IDatatype theValue) { myBinding = theValue; return this; } /** * Gets the value(s) for friendly (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement. *

*/ public java.util.List getFriendly() { if (myFriendly == null) { myFriendly = new java.util.ArrayList(); } return myFriendly; } /** * Sets the value(s) for friendly () * *

* Definition: * The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement. *

*/ public Contract setFriendly(java.util.List theValue) { myFriendly = theValue; return this; } /** * Adds and returns a new value for friendly () * *

* Definition: * The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement. *

*/ public Friendly addFriendly() { Friendly newType = new Friendly(); getFriendly().add(newType); return newType; } /** * Adds a given new value for friendly () * *

* Definition: * The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement. *

* @param theValue The friendly to add (must not be null) */ public Contract addFriendly(Friendly theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getFriendly().add(theValue); return this; } /** * Gets the first repetition for friendly (), * creating it if it does not already exist. * *

* Definition: * The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement. *

*/ public Friendly getFriendlyFirstRep() { if (getFriendly().isEmpty()) { return addFriendly(); } return getFriendly().get(0); } /** * Gets the value(s) for legal (). * creating it if it does * not exist. Will not return null. * *

* Definition: * List of Legal expressions or representations of this Contract. *

*/ public java.util.List getLegal() { if (myLegal == null) { myLegal = new java.util.ArrayList(); } return myLegal; } /** * Sets the value(s) for legal () * *

* Definition: * List of Legal expressions or representations of this Contract. *

*/ public Contract setLegal(java.util.List theValue) { myLegal = theValue; return this; } /** * Adds and returns a new value for legal () * *

* Definition: * List of Legal expressions or representations of this Contract. *

*/ public Legal addLegal() { Legal newType = new Legal(); getLegal().add(newType); return newType; } /** * Adds a given new value for legal () * *

* Definition: * List of Legal expressions or representations of this Contract. *

* @param theValue The legal to add (must not be null) */ public Contract addLegal(Legal theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getLegal().add(theValue); return this; } /** * Gets the first repetition for legal (), * creating it if it does not already exist. * *

* Definition: * List of Legal expressions or representations of this Contract. *

*/ public Legal getLegalFirstRep() { if (getLegal().isEmpty()) { return addLegal(); } return getLegal().get(0); } /** * Gets the value(s) for rule (). * creating it if it does * not exist. Will not return null. * *

* Definition: * List of Computable Policy Rule Language Representations of this Contract. *

*/ public java.util.List getRule() { if (myRule == null) { myRule = new java.util.ArrayList(); } return myRule; } /** * Sets the value(s) for rule () * *

* Definition: * List of Computable Policy Rule Language Representations of this Contract. *

*/ public Contract setRule(java.util.List theValue) { myRule = theValue; return this; } /** * Adds and returns a new value for rule () * *

* Definition: * List of Computable Policy Rule Language Representations of this Contract. *

*/ public Rule addRule() { Rule newType = new Rule(); getRule().add(newType); return newType; } /** * Adds a given new value for rule () * *

* Definition: * List of Computable Policy Rule Language Representations of this Contract. *

* @param theValue The rule to add (must not be null) */ public Contract addRule(Rule theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getRule().add(theValue); return this; } /** * Gets the first repetition for rule (), * creating it if it does not already exist. * *

* Definition: * List of Computable Policy Rule Language Representations of this Contract. *

*/ public Rule getRuleFirstRep() { if (getRule().isEmpty()) { return addRule(); } return getRule().get(0); } /** * Block class for child element: Contract.actor () * *

* Definition: * List of Contract actors *

*/ @Block() public static class Actor extends BaseIdentifiableElement implements IResourceBlock { @Child(name="entity", order=0, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Contract.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Group.class, ca.uhn.fhir.model.dstu2.resource.Location.class, ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu2.resource.Substance.class }) @Description( shortDefinition="", formalDefinition="Who or what actors are assigned roles in this Contract." ) private ResourceReferenceDt myEntity; @Child(name="role", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Role type of actors assigned roles in this Contract." ) private java.util.List myRole; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEntity, myRole); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEntity, myRole); } /** * Gets the value(s) for entity (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who or what actors are assigned roles in this Contract. *

*/ public ResourceReferenceDt getEntity() { if (myEntity == null) { myEntity = new ResourceReferenceDt(); } return myEntity; } /** * Sets the value(s) for entity () * *

* Definition: * Who or what actors are assigned roles in this Contract. *

*/ public Actor setEntity(ResourceReferenceDt theValue) { myEntity = theValue; return this; } /** * Gets the value(s) for role (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Role type of actors assigned roles in this Contract. *

*/ public java.util.List getRole() { if (myRole == null) { myRole = new java.util.ArrayList(); } return myRole; } /** * Sets the value(s) for role () * *

* Definition: * Role type of actors assigned roles in this Contract. *

*/ public Actor setRole(java.util.List theValue) { myRole = theValue; return this; } /** * Adds and returns a new value for role () * *

* Definition: * Role type of actors assigned roles in this Contract. *

*/ public CodeableConceptDt addRole() { CodeableConceptDt newType = new CodeableConceptDt(); getRole().add(newType); return newType; } /** * Adds a given new value for role () * *

* Definition: * Role type of actors assigned roles in this Contract. *

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

* Definition: * Role type of actors assigned roles in this Contract. *

*/ public CodeableConceptDt getRoleFirstRep() { if (getRole().isEmpty()) { return addRole(); } return getRole().get(0); } } /** * Block class for child element: Contract.valuedItem () * *

* Definition: * Contract Valued Item List *

*/ @Block() public static class ValuedItem extends BaseIdentifiableElement implements IResourceBlock { @Child(name="entity", order=0, min=0, max=1, summary=false, modifier=false, type={ CodeableConceptDt.class, IResource.class }) @Description( shortDefinition="", formalDefinition="Specific type of Contract Valued Item that may be priced." ) private IDatatype myEntity; @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies a Contract Valued Item instance." ) private IdentifierDt myIdentifier; @Child(name="effectiveTime", type=DateTimeDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the time during which this Contract ValuedItem information is effective." ) private DateTimeDt myEffectiveTime; @Child(name="quantity", type=SimpleQuantityDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances." ) private SimpleQuantityDt myQuantity; @Child(name="unitPrice", type=MoneyDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A Contract Valued Item unit valuation measure." ) private MoneyDt myUnitPrice; @Child(name="factor", type=DecimalDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." ) private DecimalDt myFactor; @Child(name="points", type=DecimalDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point." ) private DecimalDt myPoints; @Child(name="net", type=MoneyDt.class, order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." ) private MoneyDt myNet; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEntity, myIdentifier, myEffectiveTime, myQuantity, myUnitPrice, myFactor, myPoints, myNet); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEntity, myIdentifier, myEffectiveTime, myQuantity, myUnitPrice, myFactor, myPoints, myNet); } /** * Gets the value(s) for entity[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Specific type of Contract Valued Item that may be priced. *

*/ public IDatatype getEntity() { return myEntity; } /** * Sets the value(s) for entity[x] () * *

* Definition: * Specific type of Contract Valued Item that may be priced. *

*/ public ValuedItem setEntity(IDatatype theValue) { myEntity = theValue; return this; } /** * Gets the value(s) for identifier (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a Contract Valued Item instance. *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier () * *

* Definition: * Identifies a Contract Valued Item instance. *

*/ public ValuedItem setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Gets the value(s) for effectiveTime (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the time during which this Contract ValuedItem information is effective. *

*/ public DateTimeDt getEffectiveTimeElement() { if (myEffectiveTime == null) { myEffectiveTime = new DateTimeDt(); } return myEffectiveTime; } /** * Gets the value(s) for effectiveTime (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Indicates the time during which this Contract ValuedItem information is effective. *

*/ public Date getEffectiveTime() { return getEffectiveTimeElement().getValue(); } /** * Sets the value(s) for effectiveTime () * *

* Definition: * Indicates the time during which this Contract ValuedItem information is effective. *

*/ public ValuedItem setEffectiveTime(DateTimeDt theValue) { myEffectiveTime = theValue; return this; } /** * Sets the value for effectiveTime () * *

* Definition: * Indicates the time during which this Contract ValuedItem information is effective. *

*/ public ValuedItem setEffectiveTimeWithSecondsPrecision( Date theDate) { myEffectiveTime = new DateTimeDt(theDate); return this; } /** * Sets the value for effectiveTime () * *

* Definition: * Indicates the time during which this Contract ValuedItem information is effective. *

*/ public ValuedItem setEffectiveTime( Date theDate, TemporalPrecisionEnum thePrecision) { myEffectiveTime = new DateTimeDt(theDate, thePrecision); return this; } /** * Gets the value(s) for quantity (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances. *

*/ public SimpleQuantityDt getQuantity() { if (myQuantity == null) { myQuantity = new SimpleQuantityDt(); } return myQuantity; } /** * Sets the value(s) for quantity () * *

* Definition: * Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances. *

*/ public ValuedItem setQuantity(SimpleQuantityDt theValue) { myQuantity = theValue; return this; } /** * Gets the value(s) for unitPrice (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A Contract Valued Item unit valuation measure. *

*/ public MoneyDt getUnitPrice() { if (myUnitPrice == null) { myUnitPrice = new MoneyDt(); } return myUnitPrice; } /** * Sets the value(s) for unitPrice () * *

* Definition: * A Contract Valued Item unit valuation measure. *

*/ public ValuedItem setUnitPrice(MoneyDt theValue) { myUnitPrice = theValue; return this; } /** * Gets the value(s) for factor (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public DecimalDt getFactorElement() { if (myFactor == null) { myFactor = new DecimalDt(); } return myFactor; } /** * Gets the value(s) for factor (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public BigDecimal getFactor() { return getFactorElement().getValue(); } /** * Sets the value(s) for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public ValuedItem setFactor(DecimalDt theValue) { myFactor = theValue; return this; } /** * Sets the value for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public ValuedItem setFactor( double theValue) { myFactor = new DecimalDt(theValue); return this; } /** * Sets the value for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public ValuedItem setFactor( long theValue) { myFactor = new DecimalDt(theValue); return this; } /** * Sets the value for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public ValuedItem setFactor( java.math.BigDecimal theValue) { myFactor = new DecimalDt(theValue); return this; } /** * Gets the value(s) for points (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. *

*/ public DecimalDt getPointsElement() { if (myPoints == null) { myPoints = new DecimalDt(); } return myPoints; } /** * Gets the value(s) for points (). * creating it if it does * not exist. This method may return null. * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. *

*/ public BigDecimal getPoints() { return getPointsElement().getValue(); } /** * Sets the value(s) for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. *

*/ public ValuedItem setPoints(DecimalDt theValue) { myPoints = theValue; return this; } /** * Sets the value for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. *

*/ public ValuedItem setPoints( double theValue) { myPoints = new DecimalDt(theValue); return this; } /** * Sets the value for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. *

*/ public ValuedItem setPoints( long theValue) { myPoints = new DecimalDt(theValue); return this; } /** * Sets the value for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. *

*/ public ValuedItem setPoints( java.math.BigDecimal theValue) { myPoints = new DecimalDt(theValue); return this; } /** * Gets the value(s) for net (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied. *

*/ public MoneyDt getNet() { if (myNet == null) { myNet = new MoneyDt(); } return myNet; } /** * Sets the value(s) for net () * *

* Definition: * Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied. *

*/ public ValuedItem setNet(MoneyDt theValue) { myNet = theValue; return this; } } /** * Block class for child element: Contract.signer () * *

* Definition: * Party signing this Contract. *

*/ @Block() public static class Signer extends BaseIdentifiableElement implements IResourceBlock { @Child(name="type", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Role of this Contract signer, e.g. notary, grantee." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-contract-signer-type") private CodingDt myType; @Child(name="party", order=1, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class }) @Description( shortDefinition="", formalDefinition="Party which is a signator to this Contract." ) private ResourceReferenceDt myParty; @Child(name="signature", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Legally binding Contract DSIG signature contents in Base64." ) private StringDt mySignature; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myParty, mySignature); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myParty, mySignature); } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Role of this Contract signer, e.g. notary, grantee. *

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

* Definition: * Role of this Contract signer, e.g. notary, grantee. *

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

* Definition: * Party which is a signator to this Contract. *

*/ public ResourceReferenceDt getParty() { if (myParty == null) { myParty = new ResourceReferenceDt(); } return myParty; } /** * Sets the value(s) for party () * *

* Definition: * Party which is a signator to this Contract. *

*/ public Signer setParty(ResourceReferenceDt theValue) { myParty = theValue; return this; } /** * Gets the value(s) for signature (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Legally binding Contract DSIG signature contents in Base64. *

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

* Definition: * Legally binding Contract DSIG signature contents in Base64. *

*/ public String getSignature() { return getSignatureElement().getValue(); } /** * Sets the value(s) for signature () * *

* Definition: * Legally binding Contract DSIG signature contents in Base64. *

*/ public Signer setSignature(StringDt theValue) { mySignature = theValue; return this; } /** * Sets the value for signature () * *

* Definition: * Legally binding Contract DSIG signature contents in Base64. *

*/ public Signer setSignature( String theString) { mySignature = new StringDt(theString); return this; } } /** * Block class for child element: Contract.term () * *

* Definition: * One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups. *

*/ @Block() public static class Term extends BaseIdentifiableElement implements IResourceBlock { @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Unique identifier for this particular Contract Provision." ) private IdentifierDt myIdentifier; @Child(name="issued", type=DateTimeDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="When this Contract Provision was issued." ) private DateTimeDt myIssued; @Child(name="applies", type=PeriodDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Relevant time or time-period when this Contract Provision is applicable." ) private PeriodDt myApplies; @Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit." ) private CodeableConceptDt myType; @Child(name="subType", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Subtype of this Contract Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment." ) private CodeableConceptDt mySubType; @Child(name="subject", order=5, min=0, max=1, summary=false, modifier=false, type={ IResource.class }) @Description( shortDefinition="", formalDefinition="Who or what this Contract Provision is about." ) private ResourceReferenceDt mySubject; @Child(name="action", type=CodeableConceptDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Action stipulated by this Contract Provision." ) private java.util.List myAction; @Child(name="actionReason", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Reason or purpose for the action stipulated by this Contract Provision." ) private java.util.List myActionReason; @Child(name="actor", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="List of actors participating in this Contract Provision." ) private java.util.List myActor; @Child(name="text", type=StringDt.class, order=9, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Human readable form of this Contract Provision." ) private StringDt myText; @Child(name="valuedItem", order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Contract Provision Valued Item List" ) private java.util.List myValuedItem; @Child(name="group", type=Term.class, order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Nested group of Contract Provisions." ) private java.util.List myGroup; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myIssued, myApplies, myType, mySubType, mySubject, myAction, myActionReason, myActor, myText, myValuedItem, myGroup); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myIssued, myApplies, myType, mySubType, mySubject, myAction, myActionReason, myActor, myText, myValuedItem, myGroup); } /** * Gets the value(s) for identifier (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Unique identifier for this particular Contract Provision. *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier () * *

* Definition: * Unique identifier for this particular Contract Provision. *

*/ public Term setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Gets the value(s) for issued (). * creating it if it does * not exist. Will not return null. * *

* Definition: * When this Contract Provision was issued. *

*/ public DateTimeDt getIssuedElement() { if (myIssued == null) { myIssued = new DateTimeDt(); } return myIssued; } /** * Gets the value(s) for issued (). * creating it if it does * not exist. This method may return null. * *

* Definition: * When this Contract Provision was issued. *

*/ public Date getIssued() { return getIssuedElement().getValue(); } /** * Sets the value(s) for issued () * *

* Definition: * When this Contract Provision was issued. *

*/ public Term setIssued(DateTimeDt theValue) { myIssued = theValue; return this; } /** * Sets the value for issued () * *

* Definition: * When this Contract Provision was issued. *

*/ public Term setIssuedWithSecondsPrecision( Date theDate) { myIssued = new DateTimeDt(theDate); return this; } /** * Sets the value for issued () * *

* Definition: * When this Contract Provision was issued. *

*/ public Term setIssued( Date theDate, TemporalPrecisionEnum thePrecision) { myIssued = new DateTimeDt(theDate, thePrecision); return this; } /** * Gets the value(s) for applies (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Relevant time or time-period when this Contract Provision is applicable. *

*/ public PeriodDt getApplies() { if (myApplies == null) { myApplies = new PeriodDt(); } return myApplies; } /** * Sets the value(s) for applies () * *

* Definition: * Relevant time or time-period when this Contract Provision is applicable. *

*/ public Term setApplies(PeriodDt theValue) { myApplies = theValue; return this; } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit. *

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

* Definition: * Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit. *

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

* Definition: * Subtype of this Contract Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment. *

*/ public CodeableConceptDt getSubType() { if (mySubType == null) { mySubType = new CodeableConceptDt(); } return mySubType; } /** * Sets the value(s) for subType () * *

* Definition: * Subtype of this Contract Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment. *

*/ public Term setSubType(CodeableConceptDt theValue) { mySubType = theValue; return this; } /** * Gets the value(s) for subject (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who or what this Contract Provision is about. *

*/ public ResourceReferenceDt getSubject() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Sets the value(s) for subject () * *

* Definition: * Who or what this Contract Provision is about. *

*/ public Term setSubject(ResourceReferenceDt theValue) { mySubject = theValue; return this; } /** * Gets the value(s) for action (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Action stipulated by this Contract Provision. *

*/ public java.util.List getAction() { if (myAction == null) { myAction = new java.util.ArrayList(); } return myAction; } /** * Sets the value(s) for action () * *

* Definition: * Action stipulated by this Contract Provision. *

*/ public Term setAction(java.util.List theValue) { myAction = theValue; return this; } /** * Adds and returns a new value for action () * *

* Definition: * Action stipulated by this Contract Provision. *

*/ public CodeableConceptDt addAction() { CodeableConceptDt newType = new CodeableConceptDt(); getAction().add(newType); return newType; } /** * Adds a given new value for action () * *

* Definition: * Action stipulated by this Contract Provision. *

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

* Definition: * Action stipulated by this Contract Provision. *

*/ public CodeableConceptDt getActionFirstRep() { if (getAction().isEmpty()) { return addAction(); } return getAction().get(0); } /** * Gets the value(s) for actionReason (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reason or purpose for the action stipulated by this Contract Provision. *

*/ public java.util.List getActionReason() { if (myActionReason == null) { myActionReason = new java.util.ArrayList(); } return myActionReason; } /** * Sets the value(s) for actionReason () * *

* Definition: * Reason or purpose for the action stipulated by this Contract Provision. *

*/ public Term setActionReason(java.util.List theValue) { myActionReason = theValue; return this; } /** * Adds and returns a new value for actionReason () * *

* Definition: * Reason or purpose for the action stipulated by this Contract Provision. *

*/ public CodeableConceptDt addActionReason() { CodeableConceptDt newType = new CodeableConceptDt(); getActionReason().add(newType); return newType; } /** * Adds a given new value for actionReason () * *

* Definition: * Reason or purpose for the action stipulated by this Contract Provision. *

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

* Definition: * Reason or purpose for the action stipulated by this Contract Provision. *

*/ public CodeableConceptDt getActionReasonFirstRep() { if (getActionReason().isEmpty()) { return addActionReason(); } return getActionReason().get(0); } /** * Gets the value(s) for actor (). * creating it if it does * not exist. Will not return null. * *

* Definition: * List of actors participating in this Contract Provision. *

*/ public java.util.List getActor() { if (myActor == null) { myActor = new java.util.ArrayList(); } return myActor; } /** * Sets the value(s) for actor () * *

* Definition: * List of actors participating in this Contract Provision. *

*/ public Term setActor(java.util.List theValue) { myActor = theValue; return this; } /** * Adds and returns a new value for actor () * *

* Definition: * List of actors participating in this Contract Provision. *

*/ public TermActor addActor() { TermActor newType = new TermActor(); getActor().add(newType); return newType; } /** * Adds a given new value for actor () * *

* Definition: * List of actors participating in this Contract Provision. *

* @param theValue The actor to add (must not be null) */ public Term addActor(TermActor theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getActor().add(theValue); return this; } /** * Gets the first repetition for actor (), * creating it if it does not already exist. * *

* Definition: * List of actors participating in this Contract Provision. *

*/ public TermActor getActorFirstRep() { if (getActor().isEmpty()) { return addActor(); } return getActor().get(0); } /** * Gets the value(s) for text (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Human readable form of this Contract Provision. *

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

* Definition: * Human readable form of this Contract Provision. *

*/ public String getText() { return getTextElement().getValue(); } /** * Sets the value(s) for text () * *

* Definition: * Human readable form of this Contract Provision. *

*/ public Term setText(StringDt theValue) { myText = theValue; return this; } /** * Sets the value for text () * *

* Definition: * Human readable form of this Contract Provision. *

*/ public Term setText( String theString) { myText = new StringDt(theString); return this; } /** * Gets the value(s) for valuedItem (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contract Provision Valued Item List *

*/ public java.util.List getValuedItem() { if (myValuedItem == null) { myValuedItem = new java.util.ArrayList(); } return myValuedItem; } /** * Sets the value(s) for valuedItem () * *

* Definition: * Contract Provision Valued Item List *

*/ public Term setValuedItem(java.util.List theValue) { myValuedItem = theValue; return this; } /** * Adds and returns a new value for valuedItem () * *

* Definition: * Contract Provision Valued Item List *

*/ public TermValuedItem addValuedItem() { TermValuedItem newType = new TermValuedItem(); getValuedItem().add(newType); return newType; } /** * Adds a given new value for valuedItem () * *

* Definition: * Contract Provision Valued Item List *

* @param theValue The valuedItem to add (must not be null) */ public Term addValuedItem(TermValuedItem theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getValuedItem().add(theValue); return this; } /** * Gets the first repetition for valuedItem (), * creating it if it does not already exist. * *

* Definition: * Contract Provision Valued Item List *

*/ public TermValuedItem getValuedItemFirstRep() { if (getValuedItem().isEmpty()) { return addValuedItem(); } return getValuedItem().get(0); } /** * Gets the value(s) for group (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Nested group of Contract Provisions. *

*/ public java.util.List getGroup() { if (myGroup == null) { myGroup = new java.util.ArrayList(); } return myGroup; } /** * Sets the value(s) for group () * *

* Definition: * Nested group of Contract Provisions. *

*/ public Term setGroup(java.util.List theValue) { myGroup = theValue; return this; } /** * Adds and returns a new value for group () * *

* Definition: * Nested group of Contract Provisions. *

*/ public Term addGroup() { Term newType = new Term(); getGroup().add(newType); return newType; } /** * Adds a given new value for group () * *

* Definition: * Nested group of Contract Provisions. *

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

* Definition: * Nested group of Contract Provisions. *

*/ public Term getGroupFirstRep() { if (getGroup().isEmpty()) { return addGroup(); } return getGroup().get(0); } } /** * Block class for child element: Contract.term.actor () * *

* Definition: * List of actors participating in this Contract Provision. *

*/ @Block() public static class TermActor extends BaseIdentifiableElement implements IResourceBlock { @Child(name="entity", order=0, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Contract.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Group.class, ca.uhn.fhir.model.dstu2.resource.Location.class, ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu2.resource.Substance.class }) @Description( shortDefinition="", formalDefinition="The actor assigned a role in this Contract Provision." ) private ResourceReferenceDt myEntity; @Child(name="role", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Role played by the actor assigned this role in this Contract Provision." ) private java.util.List myRole; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEntity, myRole); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEntity, myRole); } /** * Gets the value(s) for entity (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The actor assigned a role in this Contract Provision. *

*/ public ResourceReferenceDt getEntity() { if (myEntity == null) { myEntity = new ResourceReferenceDt(); } return myEntity; } /** * Sets the value(s) for entity () * *

* Definition: * The actor assigned a role in this Contract Provision. *

*/ public TermActor setEntity(ResourceReferenceDt theValue) { myEntity = theValue; return this; } /** * Gets the value(s) for role (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Role played by the actor assigned this role in this Contract Provision. *

*/ public java.util.List getRole() { if (myRole == null) { myRole = new java.util.ArrayList(); } return myRole; } /** * Sets the value(s) for role () * *

* Definition: * Role played by the actor assigned this role in this Contract Provision. *

*/ public TermActor setRole(java.util.List theValue) { myRole = theValue; return this; } /** * Adds and returns a new value for role () * *

* Definition: * Role played by the actor assigned this role in this Contract Provision. *

*/ public CodeableConceptDt addRole() { CodeableConceptDt newType = new CodeableConceptDt(); getRole().add(newType); return newType; } /** * Adds a given new value for role () * *

* Definition: * Role played by the actor assigned this role in this Contract Provision. *

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

* Definition: * Role played by the actor assigned this role in this Contract Provision. *

*/ public CodeableConceptDt getRoleFirstRep() { if (getRole().isEmpty()) { return addRole(); } return getRole().get(0); } } /** * Block class for child element: Contract.term.valuedItem () * *

* Definition: * Contract Provision Valued Item List *

*/ @Block() public static class TermValuedItem extends BaseIdentifiableElement implements IResourceBlock { @Child(name="entity", order=0, min=0, max=1, summary=false, modifier=false, type={ CodeableConceptDt.class, IResource.class }) @Description( shortDefinition="", formalDefinition="Specific type of Contract Provision Valued Item that may be priced." ) private IDatatype myEntity; @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies a Contract Provision Valued Item instance." ) private IdentifierDt myIdentifier; @Child(name="effectiveTime", type=DateTimeDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the time during which this Contract Term ValuedItem information is effective." ) private DateTimeDt myEffectiveTime; @Child(name="quantity", type=SimpleQuantityDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances." ) private SimpleQuantityDt myQuantity; @Child(name="unitPrice", type=MoneyDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A Contract Provision Valued Item unit valuation measure." ) private MoneyDt myUnitPrice; @Child(name="factor", type=DecimalDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." ) private DecimalDt myFactor; @Child(name="points", type=DecimalDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point." ) private DecimalDt myPoints; @Child(name="net", type=MoneyDt.class, order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." ) private MoneyDt myNet; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEntity, myIdentifier, myEffectiveTime, myQuantity, myUnitPrice, myFactor, myPoints, myNet); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEntity, myIdentifier, myEffectiveTime, myQuantity, myUnitPrice, myFactor, myPoints, myNet); } /** * Gets the value(s) for entity[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Specific type of Contract Provision Valued Item that may be priced. *

*/ public IDatatype getEntity() { return myEntity; } /** * Sets the value(s) for entity[x] () * *

* Definition: * Specific type of Contract Provision Valued Item that may be priced. *

*/ public TermValuedItem setEntity(IDatatype theValue) { myEntity = theValue; return this; } /** * Gets the value(s) for identifier (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a Contract Provision Valued Item instance. *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier () * *

* Definition: * Identifies a Contract Provision Valued Item instance. *

*/ public TermValuedItem setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Gets the value(s) for effectiveTime (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the time during which this Contract Term ValuedItem information is effective. *

*/ public DateTimeDt getEffectiveTimeElement() { if (myEffectiveTime == null) { myEffectiveTime = new DateTimeDt(); } return myEffectiveTime; } /** * Gets the value(s) for effectiveTime (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Indicates the time during which this Contract Term ValuedItem information is effective. *

*/ public Date getEffectiveTime() { return getEffectiveTimeElement().getValue(); } /** * Sets the value(s) for effectiveTime () * *

* Definition: * Indicates the time during which this Contract Term ValuedItem information is effective. *

*/ public TermValuedItem setEffectiveTime(DateTimeDt theValue) { myEffectiveTime = theValue; return this; } /** * Sets the value for effectiveTime () * *

* Definition: * Indicates the time during which this Contract Term ValuedItem information is effective. *

*/ public TermValuedItem setEffectiveTimeWithSecondsPrecision( Date theDate) { myEffectiveTime = new DateTimeDt(theDate); return this; } /** * Sets the value for effectiveTime () * *

* Definition: * Indicates the time during which this Contract Term ValuedItem information is effective. *

*/ public TermValuedItem setEffectiveTime( Date theDate, TemporalPrecisionEnum thePrecision) { myEffectiveTime = new DateTimeDt(theDate, thePrecision); return this; } /** * Gets the value(s) for quantity (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances. *

*/ public SimpleQuantityDt getQuantity() { if (myQuantity == null) { myQuantity = new SimpleQuantityDt(); } return myQuantity; } /** * Sets the value(s) for quantity () * *

* Definition: * Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances. *

*/ public TermValuedItem setQuantity(SimpleQuantityDt theValue) { myQuantity = theValue; return this; } /** * Gets the value(s) for unitPrice (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A Contract Provision Valued Item unit valuation measure. *

*/ public MoneyDt getUnitPrice() { if (myUnitPrice == null) { myUnitPrice = new MoneyDt(); } return myUnitPrice; } /** * Sets the value(s) for unitPrice () * *

* Definition: * A Contract Provision Valued Item unit valuation measure. *

*/ public TermValuedItem setUnitPrice(MoneyDt theValue) { myUnitPrice = theValue; return this; } /** * Gets the value(s) for factor (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public DecimalDt getFactorElement() { if (myFactor == null) { myFactor = new DecimalDt(); } return myFactor; } /** * Gets the value(s) for factor (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public BigDecimal getFactor() { return getFactorElement().getValue(); } /** * Sets the value(s) for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public TermValuedItem setFactor(DecimalDt theValue) { myFactor = theValue; return this; } /** * Sets the value for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public TermValuedItem setFactor( double theValue) { myFactor = new DecimalDt(theValue); return this; } /** * Sets the value for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public TermValuedItem setFactor( long theValue) { myFactor = new DecimalDt(theValue); return this; } /** * Sets the value for factor () * *

* Definition: * A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. *

*/ public TermValuedItem setFactor( java.math.BigDecimal theValue) { myFactor = new DecimalDt(theValue); return this; } /** * Gets the value(s) for points (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. *

*/ public DecimalDt getPointsElement() { if (myPoints == null) { myPoints = new DecimalDt(); } return myPoints; } /** * Gets the value(s) for points (). * creating it if it does * not exist. This method may return null. * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. *

*/ public BigDecimal getPoints() { return getPointsElement().getValue(); } /** * Sets the value(s) for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. *

*/ public TermValuedItem setPoints(DecimalDt theValue) { myPoints = theValue; return this; } /** * Sets the value for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. *

*/ public TermValuedItem setPoints( double theValue) { myPoints = new DecimalDt(theValue); return this; } /** * Sets the value for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. *

*/ public TermValuedItem setPoints( long theValue) { myPoints = new DecimalDt(theValue); return this; } /** * Sets the value for points () * *

* Definition: * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. *

*/ public TermValuedItem setPoints( java.math.BigDecimal theValue) { myPoints = new DecimalDt(theValue); return this; } /** * Gets the value(s) for net (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied. *

*/ public MoneyDt getNet() { if (myNet == null) { myNet = new MoneyDt(); } return myNet; } /** * Sets the value(s) for net () * *

* Definition: * Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied. *

*/ public TermValuedItem setNet(MoneyDt theValue) { myNet = theValue; return this; } } /** * Block class for child element: Contract.friendly () * *

* Definition: * The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement. *

*/ @Block() public static class Friendly extends BaseIdentifiableElement implements IResourceBlock { @Child(name="content", order=0, min=1, max=1, summary=false, modifier=false, type={ AttachmentDt.class, Composition.class, DocumentReference.class, QuestionnaireResponse.class }) @Description( shortDefinition="", formalDefinition="Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability." ) private IDatatype myContent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContent); } /** * Gets the value(s) for content[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability. *

*/ public IDatatype getContent() { return myContent; } /** * Sets the value(s) for content[x] () * *

* Definition: * Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability. *

*/ public Friendly setContent(IDatatype theValue) { myContent = theValue; return this; } } /** * Block class for child element: Contract.legal () * *

* Definition: * List of Legal expressions or representations of this Contract. *

*/ @Block() public static class Legal extends BaseIdentifiableElement implements IResourceBlock { @Child(name="content", order=0, min=1, max=1, summary=false, modifier=false, type={ AttachmentDt.class, Composition.class, DocumentReference.class, QuestionnaireResponse.class }) @Description( shortDefinition="", formalDefinition="Contract legal text in human renderable form." ) private IDatatype myContent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContent); } /** * Gets the value(s) for content[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contract legal text in human renderable form. *

*/ public IDatatype getContent() { return myContent; } /** * Sets the value(s) for content[x] () * *

* Definition: * Contract legal text in human renderable form. *

*/ public Legal setContent(IDatatype theValue) { myContent = theValue; return this; } } /** * Block class for child element: Contract.rule () * *

* Definition: * List of Computable Policy Rule Language Representations of this Contract. *

*/ @Block() public static class Rule extends BaseIdentifiableElement implements IResourceBlock { @Child(name="content", order=0, min=1, max=1, summary=false, modifier=false, type={ AttachmentDt.class, DocumentReference.class }) @Description( shortDefinition="", formalDefinition="Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal)." ) private IDatatype myContent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContent); } /** * Gets the value(s) for content[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal). *

*/ public IDatatype getContent() { return myContent; } /** * Sets the value(s) for content[x] () * *

* Definition: * Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal). *

*/ public Rule setContent(IDatatype theValue) { myContent = theValue; return this; } } @Override public String getResourceName() { return "Contract"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy