ca.uhn.fhir.model.dstu2.resource.Claim Maven / Gradle / Ivy
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 Claim Resource
* ()
*
*
* Definition:
* A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/Claim
*
*
*/
@ResourceDef(name="Claim", profile="http://hl7.org/fhir/profiles/Claim", id="claim")
public class Claim extends ca.uhn.fhir.model.dstu2.resource.BaseResource
implements IResource
{
/**
* Search parameter constant for identifier
*
* Description: The primary identifier of the financial resource
* Type: token
* Path: Claim.identifier
*
*/
@SearchParamDefinition(name="identifier", path="Claim.identifier", description="The primary identifier of the financial resource", type="token"
)
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description: The primary identifier of the financial resource
* Type: token
* Path: Claim.identifier
*
*/
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter constant for use
*
* Description: The kind of financial resource
* Type: token
* Path: Claim.use
*
*/
@SearchParamDefinition(name="use", path="Claim.use", description="The kind of financial resource", type="token"
)
public static final String SP_USE = "use";
/**
* Fluent Client search parameter constant for use
*
* Description: The kind of financial resource
* Type: token
* Path: Claim.use
*
*/
public static final TokenClientParam USE = new TokenClientParam(SP_USE);
/**
* Search parameter constant for priority
*
* Description: Processing priority requested
* Type: token
* Path: Claim.priority
*
*/
@SearchParamDefinition(name="priority", path="Claim.priority", description="Processing priority requested", type="token"
)
public static final String SP_PRIORITY = "priority";
/**
* Fluent Client search parameter constant for priority
*
* Description: Processing priority requested
* Type: token
* Path: Claim.priority
*
*/
public static final TokenClientParam PRIORITY = new TokenClientParam(SP_PRIORITY);
/**
* Search parameter constant for patient
*
* Description: Patient
* Type: reference
* Path: Claim.patient
*
*/
@SearchParamDefinition(name="patient", path="Claim.patient", description="Patient", type="reference"
, providesMembershipIn={
@Compartment(name="Patient") }
)
public static final String SP_PATIENT = "patient";
/**
* Fluent Client search parameter constant for patient
*
* Description: Patient
* Type: reference
* Path: Claim.patient
*
*/
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
/**
* Search parameter constant for provider
*
* Description: Provider responsible for the claim
* Type: reference
* Path: Claim.provider
*
*/
@SearchParamDefinition(name="provider", path="Claim.provider", description="Provider responsible for the claim", type="reference"
, providesMembershipIn={
@Compartment(name="Encounter") }
)
public static final String SP_PROVIDER = "provider";
/**
* Fluent Client search parameter constant for provider
*
* Description: Provider responsible for the claim
* Type: reference
* Path: Claim.provider
*
*/
public static final ReferenceClientParam PROVIDER = new ReferenceClientParam(SP_PROVIDER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Claim:patient".
*/
public static final Include INCLUDE_PATIENT = new Include("Claim:patient");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Claim:provider".
*/
public static final Include INCLUDE_PROVIDER = new Include("Claim:provider");
@Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The category of claim this is"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/claim-type-link")
private BoundCodeDt myType;
@Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number."
)
private java.util.List myIdentifier;
@Child(name="ruleset", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The version of the specification on which this instance relies."
)
private CodingDt myRuleset;
@Child(name="originalRuleset", type=CodingDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The version of the specification from which the original instance was created."
)
private CodingDt myOriginalRuleset;
@Child(name="created", type=DateTimeDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The date when the enclosed suite of services were performed or completed"
)
private DateTimeDt myCreated;
@Child(name="target", order=5, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Organization.class
})
@Description(
shortDefinition="",
formalDefinition="Insurer Identifier, typical BIN number (6 digit)."
)
private ResourceReferenceDt myTarget;
@Child(name="provider", order=6, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class
})
@Description(
shortDefinition="",
formalDefinition="The provider which is responsible for the bill, claim pre-determination, pre-authorization."
)
private ResourceReferenceDt myProvider;
@Child(name="organization", order=7, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Organization.class
})
@Description(
shortDefinition="",
formalDefinition="The organization which is responsible for the bill, claim pre-determination, pre-authorization."
)
private ResourceReferenceDt myOrganization;
@Child(name="use", type=CodeDt.class, order=8, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)."
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/claim-use-link")
private BoundCodeDt myUse;
@Child(name="priority", type=CodingDt.class, order=9, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Immediate (stat), best effort (normal), deferred (deferred)"
)
private CodingDt myPriority;
@Child(name="fundsReserve", type=CodingDt.class, order=10, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested."
)
private CodingDt myFundsReserve;
@Child(name="enterer", order=11, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class
})
@Description(
shortDefinition="",
formalDefinition="Person who created the invoice/claim/pre-determination or pre-authorization."
)
private ResourceReferenceDt myEnterer;
@Child(name="facility", order=12, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Location.class
})
@Description(
shortDefinition="",
formalDefinition="Facility where the services were provided."
)
private ResourceReferenceDt myFacility;
@Child(name="prescription", order=13, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.MedicationOrder.class,
ca.uhn.fhir.model.dstu2.resource.VisionPrescription.class
})
@Description(
shortDefinition="",
formalDefinition="Prescription to support the dispensing of Pharmacy or Vision products."
)
private ResourceReferenceDt myPrescription;
@Child(name="originalPrescription", order=14, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.MedicationOrder.class
})
@Description(
shortDefinition="",
formalDefinition="Original prescription to support the dispensing of pharmacy services, medications or products."
)
private ResourceReferenceDt myOriginalPrescription;
@Child(name="payee", order=15, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The party to be reimbursed for the services."
)
private Payee myPayee;
@Child(name="referral", order=16, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.ReferralRequest.class
})
@Description(
shortDefinition="",
formalDefinition="The referral resource which lists the date, practitioner, reason and other supporting information."
)
private ResourceReferenceDt myReferral;
@Child(name="diagnosis", order=17, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Ordered list of patient diagnosis for which care is sought."
)
private java.util.List myDiagnosis;
@Child(name="condition", type=CodingDt.class, order=18, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="List of patient conditions for which care is sought."
)
private java.util.List myCondition;
@Child(name="patient", order=19, min=1, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Patient.class
})
@Description(
shortDefinition="",
formalDefinition="Patient Resource"
)
private ResourceReferenceDt myPatient;
@Child(name="coverage", order=20, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Financial instrument by which payment information for health care"
)
private java.util.List myCoverage;
@Child(name="exception", type=CodingDt.class, order=21, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Factors which may influence the applicability of coverage."
)
private java.util.List myException;
@Child(name="school", type=StringDt.class, order=22, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Name of school for over-aged dependents."
)
private StringDt mySchool;
@Child(name="accident", type=DateDt.class, order=23, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Date of an accident which these services are addressing."
)
private DateDt myAccident;
@Child(name="accidentType", type=CodingDt.class, order=24, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Type of accident: work, auto, etc."
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-ActIncidentCode")
private CodingDt myAccidentType;
@Child(name="interventionException", type=CodingDt.class, order=25, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A list of intervention and exception codes which may influence the adjudication of the claim."
)
private java.util.List myInterventionException;
@Child(name="item", order=26, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="First tier of goods and services"
)
private java.util.List- myItem;
@Child(name="additionalMaterials", type=CodingDt.class, order=27, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission."
)
private java.util.List
myAdditionalMaterials;
@Child(name="missingTeeth", order=28, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons."
)
private java.util.List myMissingTeeth;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myIdentifier, myRuleset, myOriginalRuleset, myCreated, myTarget, myProvider, myOrganization, myUse, myPriority, myFundsReserve, myEnterer, myFacility, myPrescription, myOriginalPrescription, myPayee, myReferral, myDiagnosis, myCondition, myPatient, myCoverage, myException, mySchool, myAccident, myAccidentType, myInterventionException, myItem, myAdditionalMaterials, myMissingTeeth);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myIdentifier, myRuleset, myOriginalRuleset, myCreated, myTarget, myProvider, myOrganization, myUse, myPriority, myFundsReserve, myEnterer, myFacility, myPrescription, myOriginalPrescription, myPayee, myReferral, myDiagnosis, myCondition, myPatient, myCoverage, myException, mySchool, myAccident, myAccidentType, myInterventionException, myItem, myAdditionalMaterials, myMissingTeeth);
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The category of claim this is
*
*/
public BoundCodeDt getTypeElement() {
if (myType == null) {
myType = new BoundCodeDt(ClaimTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The category of claim this is
*
*/
public String getType() {
return getTypeElement().getValue();
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The category of claim this is
*
*/
public Claim setType(BoundCodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The category of claim this is
*
*/
public Claim setType(ClaimTypeEnum theValue) {
setType(new BoundCodeDt(ClaimTypeEnum.VALUESET_BINDER, theValue));
/*
getTypeElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for identifier ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.
*
*/
public java.util.List getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier ()
*
*
* Definition:
* The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.
*
*/
public Claim setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier ()
*
*
* Definition:
* The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.
*
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Adds a given new value for identifier ()
*
*
* Definition:
* The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.
*
* @param theValue The identifier to add (must not be null
)
*/
public Claim addIdentifier(IdentifierDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getIdentifier().add(theValue);
return this;
}
/**
* Gets the first repetition for identifier (),
* creating it if it does not already exist.
*
*
* Definition:
* The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.
*
*/
public IdentifierDt getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
return addIdentifier();
}
return getIdentifier().get(0);
}
/**
* Gets the value(s) for ruleset ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The version of the specification on which this instance relies.
*
*/
public CodingDt getRuleset() {
if (myRuleset == null) {
myRuleset = new CodingDt();
}
return myRuleset;
}
/**
* Sets the value(s) for ruleset ()
*
*
* Definition:
* The version of the specification on which this instance relies.
*
*/
public Claim setRuleset(CodingDt theValue) {
myRuleset = theValue;
return this;
}
/**
* Gets the value(s) for originalRuleset ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The version of the specification from which the original instance was created.
*
*/
public CodingDt getOriginalRuleset() {
if (myOriginalRuleset == null) {
myOriginalRuleset = new CodingDt();
}
return myOriginalRuleset;
}
/**
* Sets the value(s) for originalRuleset ()
*
*
* Definition:
* The version of the specification from which the original instance was created.
*
*/
public Claim setOriginalRuleset(CodingDt theValue) {
myOriginalRuleset = theValue;
return this;
}
/**
* Gets the value(s) for created ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public DateTimeDt getCreatedElement() {
if (myCreated == null) {
myCreated = new DateTimeDt();
}
return myCreated;
}
/**
* Gets the value(s) for created ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Date getCreated() {
return getCreatedElement().getValue();
}
/**
* Sets the value(s) for created ()
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Claim setCreated(DateTimeDt theValue) {
myCreated = theValue;
return this;
}
/**
* Sets the value for created ()
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Claim setCreatedWithSecondsPrecision( Date theDate) {
myCreated = new DateTimeDt(theDate);
return this;
}
/**
* Sets the value for created ()
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Claim setCreated( Date theDate, TemporalPrecisionEnum thePrecision) {
myCreated = new DateTimeDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for target ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Insurer Identifier, typical BIN number (6 digit).
*
*/
public ResourceReferenceDt getTarget() {
if (myTarget == null) {
myTarget = new ResourceReferenceDt();
}
return myTarget;
}
/**
* Sets the value(s) for target ()
*
*
* Definition:
* Insurer Identifier, typical BIN number (6 digit).
*
*/
public Claim setTarget(ResourceReferenceDt theValue) {
myTarget = theValue;
return this;
}
/**
* Gets the value(s) for provider ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The provider which is responsible for the bill, claim pre-determination, pre-authorization.
*
*/
public ResourceReferenceDt getProvider() {
if (myProvider == null) {
myProvider = new ResourceReferenceDt();
}
return myProvider;
}
/**
* Sets the value(s) for provider ()
*
*
* Definition:
* The provider which is responsible for the bill, claim pre-determination, pre-authorization.
*
*/
public Claim setProvider(ResourceReferenceDt theValue) {
myProvider = theValue;
return this;
}
/**
* Gets the value(s) for organization ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The organization which is responsible for the bill, claim pre-determination, pre-authorization.
*
*/
public ResourceReferenceDt getOrganization() {
if (myOrganization == null) {
myOrganization = new ResourceReferenceDt();
}
return myOrganization;
}
/**
* Sets the value(s) for organization ()
*
*
* Definition:
* The organization which is responsible for the bill, claim pre-determination, pre-authorization.
*
*/
public Claim setOrganization(ResourceReferenceDt theValue) {
myOrganization = theValue;
return this;
}
/**
* Gets the value(s) for use ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).
*
*/
public BoundCodeDt getUseElement() {
if (myUse == null) {
myUse = new BoundCodeDt(UseEnum.VALUESET_BINDER);
}
return myUse;
}
/**
* Gets the value(s) for use ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).
*
*/
public String getUse() {
return getUseElement().getValue();
}
/**
* Sets the value(s) for use ()
*
*
* Definition:
* Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).
*
*/
public Claim setUse(BoundCodeDt theValue) {
myUse = theValue;
return this;
}
/**
* Sets the value(s) for use ()
*
*
* Definition:
* Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).
*
*/
public Claim setUse(UseEnum theValue) {
setUse(new BoundCodeDt(UseEnum.VALUESET_BINDER, theValue));
/*
getUseElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for priority ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Immediate (stat), best effort (normal), deferred (deferred)
*
*/
public CodingDt getPriority() {
if (myPriority == null) {
myPriority = new CodingDt();
}
return myPriority;
}
/**
* Sets the value(s) for priority ()
*
*
* Definition:
* Immediate (stat), best effort (normal), deferred (deferred)
*
*/
public Claim setPriority(CodingDt theValue) {
myPriority = theValue;
return this;
}
/**
* Gets the value(s) for fundsReserve ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested.
*
*/
public CodingDt getFundsReserve() {
if (myFundsReserve == null) {
myFundsReserve = new CodingDt();
}
return myFundsReserve;
}
/**
* Sets the value(s) for fundsReserve ()
*
*
* Definition:
* In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested.
*
*/
public Claim setFundsReserve(CodingDt theValue) {
myFundsReserve = theValue;
return this;
}
/**
* Gets the value(s) for enterer ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Person who created the invoice/claim/pre-determination or pre-authorization.
*
*/
public ResourceReferenceDt getEnterer() {
if (myEnterer == null) {
myEnterer = new ResourceReferenceDt();
}
return myEnterer;
}
/**
* Sets the value(s) for enterer ()
*
*
* Definition:
* Person who created the invoice/claim/pre-determination or pre-authorization.
*
*/
public Claim setEnterer(ResourceReferenceDt theValue) {
myEnterer = theValue;
return this;
}
/**
* Gets the value(s) for facility ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Facility where the services were provided.
*
*/
public ResourceReferenceDt getFacility() {
if (myFacility == null) {
myFacility = new ResourceReferenceDt();
}
return myFacility;
}
/**
* Sets the value(s) for facility ()
*
*
* Definition:
* Facility where the services were provided.
*
*/
public Claim setFacility(ResourceReferenceDt theValue) {
myFacility = theValue;
return this;
}
/**
* Gets the value(s) for prescription ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Prescription to support the dispensing of Pharmacy or Vision products.
*
*/
public ResourceReferenceDt getPrescription() {
if (myPrescription == null) {
myPrescription = new ResourceReferenceDt();
}
return myPrescription;
}
/**
* Sets the value(s) for prescription ()
*
*
* Definition:
* Prescription to support the dispensing of Pharmacy or Vision products.
*
*/
public Claim setPrescription(ResourceReferenceDt theValue) {
myPrescription = theValue;
return this;
}
/**
* Gets the value(s) for originalPrescription ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Original prescription to support the dispensing of pharmacy services, medications or products.
*
*/
public ResourceReferenceDt getOriginalPrescription() {
if (myOriginalPrescription == null) {
myOriginalPrescription = new ResourceReferenceDt();
}
return myOriginalPrescription;
}
/**
* Sets the value(s) for originalPrescription ()
*
*
* Definition:
* Original prescription to support the dispensing of pharmacy services, medications or products.
*
*/
public Claim setOriginalPrescription(ResourceReferenceDt theValue) {
myOriginalPrescription = theValue;
return this;
}
/**
* Gets the value(s) for payee ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The party to be reimbursed for the services.
*
*/
public Payee getPayee() {
if (myPayee == null) {
myPayee = new Payee();
}
return myPayee;
}
/**
* Sets the value(s) for payee ()
*
*
* Definition:
* The party to be reimbursed for the services.
*
*/
public Claim setPayee(Payee theValue) {
myPayee = theValue;
return this;
}
/**
* Gets the value(s) for referral ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The referral resource which lists the date, practitioner, reason and other supporting information.
*
*/
public ResourceReferenceDt getReferral() {
if (myReferral == null) {
myReferral = new ResourceReferenceDt();
}
return myReferral;
}
/**
* Sets the value(s) for referral ()
*
*
* Definition:
* The referral resource which lists the date, practitioner, reason and other supporting information.
*
*/
public Claim setReferral(ResourceReferenceDt theValue) {
myReferral = theValue;
return this;
}
/**
* Gets the value(s) for diagnosis ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Ordered list of patient diagnosis for which care is sought.
*
*/
public java.util.List getDiagnosis() {
if (myDiagnosis == null) {
myDiagnosis = new java.util.ArrayList();
}
return myDiagnosis;
}
/**
* Sets the value(s) for diagnosis ()
*
*
* Definition:
* Ordered list of patient diagnosis for which care is sought.
*
*/
public Claim setDiagnosis(java.util.List theValue) {
myDiagnosis = theValue;
return this;
}
/**
* Adds and returns a new value for diagnosis ()
*
*
* Definition:
* Ordered list of patient diagnosis for which care is sought.
*
*/
public Diagnosis addDiagnosis() {
Diagnosis newType = new Diagnosis();
getDiagnosis().add(newType);
return newType;
}
/**
* Adds a given new value for diagnosis ()
*
*
* Definition:
* Ordered list of patient diagnosis for which care is sought.
*
* @param theValue The diagnosis to add (must not be null
)
*/
public Claim addDiagnosis(Diagnosis theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDiagnosis().add(theValue);
return this;
}
/**
* Gets the first repetition for diagnosis (),
* creating it if it does not already exist.
*
*
* Definition:
* Ordered list of patient diagnosis for which care is sought.
*
*/
public Diagnosis getDiagnosisFirstRep() {
if (getDiagnosis().isEmpty()) {
return addDiagnosis();
}
return getDiagnosis().get(0);
}
/**
* Gets the value(s) for condition ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of patient conditions for which care is sought.
*
*/
public java.util.List getCondition() {
if (myCondition == null) {
myCondition = new java.util.ArrayList();
}
return myCondition;
}
/**
* Sets the value(s) for condition ()
*
*
* Definition:
* List of patient conditions for which care is sought.
*
*/
public Claim setCondition(java.util.List theValue) {
myCondition = theValue;
return this;
}
/**
* Adds and returns a new value for condition ()
*
*
* Definition:
* List of patient conditions for which care is sought.
*
*/
public CodingDt addCondition() {
CodingDt newType = new CodingDt();
getCondition().add(newType);
return newType;
}
/**
* Adds a given new value for condition ()
*
*
* Definition:
* List of patient conditions for which care is sought.
*
* @param theValue The condition to add (must not be null
)
*/
public Claim addCondition(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getCondition().add(theValue);
return this;
}
/**
* Gets the first repetition for condition (),
* creating it if it does not already exist.
*
*
* Definition:
* List of patient conditions for which care is sought.
*
*/
public CodingDt getConditionFirstRep() {
if (getCondition().isEmpty()) {
return addCondition();
}
return getCondition().get(0);
}
/**
* Gets the value(s) for patient ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Patient Resource
*
*/
public ResourceReferenceDt getPatient() {
if (myPatient == null) {
myPatient = new ResourceReferenceDt();
}
return myPatient;
}
/**
* Sets the value(s) for patient ()
*
*
* Definition:
* Patient Resource
*
*/
public Claim setPatient(ResourceReferenceDt theValue) {
myPatient = theValue;
return this;
}
/**
* Gets the value(s) for coverage ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Financial instrument by which payment information for health care
*
*/
public java.util.List getCoverage() {
if (myCoverage == null) {
myCoverage = new java.util.ArrayList();
}
return myCoverage;
}
/**
* Sets the value(s) for coverage ()
*
*
* Definition:
* Financial instrument by which payment information for health care
*
*/
public Claim setCoverage(java.util.List theValue) {
myCoverage = theValue;
return this;
}
/**
* Adds and returns a new value for coverage ()
*
*
* Definition:
* Financial instrument by which payment information for health care
*
*/
public Coverage addCoverage() {
Coverage newType = new Coverage();
getCoverage().add(newType);
return newType;
}
/**
* Adds a given new value for coverage ()
*
*
* Definition:
* Financial instrument by which payment information for health care
*
* @param theValue The coverage to add (must not be null
)
*/
public Claim addCoverage(Coverage theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getCoverage().add(theValue);
return this;
}
/**
* Gets the first repetition for coverage (),
* creating it if it does not already exist.
*
*
* Definition:
* Financial instrument by which payment information for health care
*
*/
public Coverage getCoverageFirstRep() {
if (getCoverage().isEmpty()) {
return addCoverage();
}
return getCoverage().get(0);
}
/**
* Gets the value(s) for exception ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Factors which may influence the applicability of coverage.
*
*/
public java.util.List getException() {
if (myException == null) {
myException = new java.util.ArrayList();
}
return myException;
}
/**
* Sets the value(s) for exception ()
*
*
* Definition:
* Factors which may influence the applicability of coverage.
*
*/
public Claim setException(java.util.List theValue) {
myException = theValue;
return this;
}
/**
* Adds and returns a new value for exception ()
*
*
* Definition:
* Factors which may influence the applicability of coverage.
*
*/
public CodingDt addException() {
CodingDt newType = new CodingDt();
getException().add(newType);
return newType;
}
/**
* Adds a given new value for exception ()
*
*
* Definition:
* Factors which may influence the applicability of coverage.
*
* @param theValue The exception to add (must not be null
)
*/
public Claim addException(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getException().add(theValue);
return this;
}
/**
* Gets the first repetition for exception (),
* creating it if it does not already exist.
*
*
* Definition:
* Factors which may influence the applicability of coverage.
*
*/
public CodingDt getExceptionFirstRep() {
if (getException().isEmpty()) {
return addException();
}
return getException().get(0);
}
/**
* Gets the value(s) for school ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Name of school for over-aged dependents.
*
*/
public StringDt getSchoolElement() {
if (mySchool == null) {
mySchool = new StringDt();
}
return mySchool;
}
/**
* Gets the value(s) for school ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Name of school for over-aged dependents.
*
*/
public String getSchool() {
return getSchoolElement().getValue();
}
/**
* Sets the value(s) for school ()
*
*
* Definition:
* Name of school for over-aged dependents.
*
*/
public Claim setSchool(StringDt theValue) {
mySchool = theValue;
return this;
}
/**
* Sets the value for school ()
*
*
* Definition:
* Name of school for over-aged dependents.
*
*/
public Claim setSchool( String theString) {
mySchool = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for accident ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Date of an accident which these services are addressing.
*
*/
public DateDt getAccidentElement() {
if (myAccident == null) {
myAccident = new DateDt();
}
return myAccident;
}
/**
* Gets the value(s) for accident ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Date of an accident which these services are addressing.
*
*/
public Date getAccident() {
return getAccidentElement().getValue();
}
/**
* Sets the value(s) for accident ()
*
*
* Definition:
* Date of an accident which these services are addressing.
*
*/
public Claim setAccident(DateDt theValue) {
myAccident = theValue;
return this;
}
/**
* Sets the value for accident ()
*
*
* Definition:
* Date of an accident which these services are addressing.
*
*/
public Claim setAccidentWithDayPrecision( Date theDate) {
myAccident = new DateDt(theDate);
return this;
}
/**
* Sets the value for accident ()
*
*
* Definition:
* Date of an accident which these services are addressing.
*
*/
public Claim setAccident( Date theDate, TemporalPrecisionEnum thePrecision) {
myAccident = new DateDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for accidentType ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Type of accident: work, auto, etc.
*
*/
public CodingDt getAccidentType() {
if (myAccidentType == null) {
myAccidentType = new CodingDt();
}
return myAccidentType;
}
/**
* Sets the value(s) for accidentType ()
*
*
* Definition:
* Type of accident: work, auto, etc.
*
*/
public Claim setAccidentType(CodingDt theValue) {
myAccidentType = theValue;
return this;
}
/**
* Gets the value(s) for interventionException ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A list of intervention and exception codes which may influence the adjudication of the claim.
*
*/
public java.util.List getInterventionException() {
if (myInterventionException == null) {
myInterventionException = new java.util.ArrayList();
}
return myInterventionException;
}
/**
* Sets the value(s) for interventionException ()
*
*
* Definition:
* A list of intervention and exception codes which may influence the adjudication of the claim.
*
*/
public Claim setInterventionException(java.util.List theValue) {
myInterventionException = theValue;
return this;
}
/**
* Adds and returns a new value for interventionException ()
*
*
* Definition:
* A list of intervention and exception codes which may influence the adjudication of the claim.
*
*/
public CodingDt addInterventionException() {
CodingDt newType = new CodingDt();
getInterventionException().add(newType);
return newType;
}
/**
* Adds a given new value for interventionException ()
*
*
* Definition:
* A list of intervention and exception codes which may influence the adjudication of the claim.
*
* @param theValue The interventionException to add (must not be null
)
*/
public Claim addInterventionException(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getInterventionException().add(theValue);
return this;
}
/**
* Gets the first repetition for interventionException (),
* creating it if it does not already exist.
*
*
* Definition:
* A list of intervention and exception codes which may influence the adjudication of the claim.
*
*/
public CodingDt getInterventionExceptionFirstRep() {
if (getInterventionException().isEmpty()) {
return addInterventionException();
}
return getInterventionException().get(0);
}
/**
* Gets the value(s) for item ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* First tier of goods and services
*
*/
public java.util.List- getItem() {
if (myItem == null) {
myItem = new java.util.ArrayList
- ();
}
return myItem;
}
/**
* Sets the value(s) for item ()
*
*
* Definition:
* First tier of goods and services
*
*/
public Claim setItem(java.util.List- theValue) {
myItem = theValue;
return this;
}
/**
* Adds and returns a new value for item ()
*
*
* Definition:
* First tier of goods and services
*
*/
public Item addItem() {
Item newType = new Item();
getItem().add(newType);
return newType;
}
/**
* Adds a given new value for item ()
*
*
* Definition:
* First tier of goods and services
*
* @param theValue The item to add (must not be null
)
*/
public Claim addItem(Item theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getItem().add(theValue);
return this;
}
/**
* Gets the first repetition for item (),
* creating it if it does not already exist.
*
*
* Definition:
* First tier of goods and services
*
*/
public Item getItemFirstRep() {
if (getItem().isEmpty()) {
return addItem();
}
return getItem().get(0);
}
/**
* Gets the value(s) for additionalMaterials ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.
*
*/
public java.util.List getAdditionalMaterials() {
if (myAdditionalMaterials == null) {
myAdditionalMaterials = new java.util.ArrayList();
}
return myAdditionalMaterials;
}
/**
* Sets the value(s) for additionalMaterials ()
*
*
* Definition:
* Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.
*
*/
public Claim setAdditionalMaterials(java.util.List theValue) {
myAdditionalMaterials = theValue;
return this;
}
/**
* Adds and returns a new value for additionalMaterials ()
*
*
* Definition:
* Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.
*
*/
public CodingDt addAdditionalMaterials() {
CodingDt newType = new CodingDt();
getAdditionalMaterials().add(newType);
return newType;
}
/**
* Adds a given new value for additionalMaterials ()
*
*
* Definition:
* Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.
*
* @param theValue The additionalMaterials to add (must not be null
)
*/
public Claim addAdditionalMaterials(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getAdditionalMaterials().add(theValue);
return this;
}
/**
* Gets the first repetition for additionalMaterials (),
* creating it if it does not already exist.
*
*
* Definition:
* Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.
*
*/
public CodingDt getAdditionalMaterialsFirstRep() {
if (getAdditionalMaterials().isEmpty()) {
return addAdditionalMaterials();
}
return getAdditionalMaterials().get(0);
}
/**
* Gets the value(s) for missingTeeth ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons.
*
*/
public java.util.List getMissingTeeth() {
if (myMissingTeeth == null) {
myMissingTeeth = new java.util.ArrayList();
}
return myMissingTeeth;
}
/**
* Sets the value(s) for missingTeeth ()
*
*
* Definition:
* A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons.
*
*/
public Claim setMissingTeeth(java.util.List theValue) {
myMissingTeeth = theValue;
return this;
}
/**
* Adds and returns a new value for missingTeeth ()
*
*
* Definition:
* A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons.
*
*/
public MissingTeeth addMissingTeeth() {
MissingTeeth newType = new MissingTeeth();
getMissingTeeth().add(newType);
return newType;
}
/**
* Adds a given new value for missingTeeth ()
*
*
* Definition:
* A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons.
*
* @param theValue The missingTeeth to add (must not be null
)
*/
public Claim addMissingTeeth(MissingTeeth theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getMissingTeeth().add(theValue);
return this;
}
/**
* Gets the first repetition for missingTeeth (),
* creating it if it does not already exist.
*
*
* Definition:
* A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons.
*
*/
public MissingTeeth getMissingTeethFirstRep() {
if (getMissingTeeth().isEmpty()) {
return addMissingTeeth();
}
return getMissingTeeth().get(0);
}
/**
* Block class for child element: Claim.payee ()
*
*
* Definition:
* The party to be reimbursed for the services.
*
*/
@Block()
public static class Payee
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="type", type=CodingDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Party to be reimbursed: Subscriber, provider, other."
)
private CodingDt myType;
@Child(name="provider", order=1, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class
})
@Description(
shortDefinition="",
formalDefinition="The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned)"
)
private ResourceReferenceDt myProvider;
@Child(name="organization", order=2, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Organization.class
})
@Description(
shortDefinition="",
formalDefinition="The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned)"
)
private ResourceReferenceDt myOrganization;
@Child(name="person", order=3, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Patient.class
})
@Description(
shortDefinition="",
formalDefinition="The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned)"
)
private ResourceReferenceDt myPerson;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myProvider, myOrganization, myPerson);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myProvider, myOrganization, myPerson);
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Party to be reimbursed: Subscriber, provider, other.
*
*/
public CodingDt getType() {
if (myType == null) {
myType = new CodingDt();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* Party to be reimbursed: Subscriber, provider, other.
*
*/
public Payee setType(CodingDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for provider ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned)
*
*/
public ResourceReferenceDt getProvider() {
if (myProvider == null) {
myProvider = new ResourceReferenceDt();
}
return myProvider;
}
/**
* Sets the value(s) for provider ()
*
*
* Definition:
* The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned)
*
*/
public Payee setProvider(ResourceReferenceDt theValue) {
myProvider = theValue;
return this;
}
/**
* Gets the value(s) for organization ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned)
*
*/
public ResourceReferenceDt getOrganization() {
if (myOrganization == null) {
myOrganization = new ResourceReferenceDt();
}
return myOrganization;
}
/**
* Sets the value(s) for organization ()
*
*
* Definition:
* The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned)
*
*/
public Payee setOrganization(ResourceReferenceDt theValue) {
myOrganization = theValue;
return this;
}
/**
* Gets the value(s) for person ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned)
*
*/
public ResourceReferenceDt getPerson() {
if (myPerson == null) {
myPerson = new ResourceReferenceDt();
}
return myPerson;
}
/**
* Sets the value(s) for person ()
*
*
* Definition:
* The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned)
*
*/
public Payee setPerson(ResourceReferenceDt theValue) {
myPerson = theValue;
return this;
}
}
/**
* Block class for child element: Claim.diagnosis ()
*
*
* Definition:
* Ordered list of patient diagnosis for which care is sought.
*
*/
@Block()
public static class Diagnosis
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="sequence", type=PositiveIntDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Sequence of diagnosis which serves to order and provide a link."
)
private PositiveIntDt mySequence;
@Child(name="diagnosis", type=CodingDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The diagnosis."
)
private CodingDt myDiagnosis;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySequence, myDiagnosis);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequence, myDiagnosis);
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Sequence of diagnosis which serves to order and provide a link.
*
*/
public PositiveIntDt getSequenceElement() {
if (mySequence == null) {
mySequence = new PositiveIntDt();
}
return mySequence;
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Sequence of diagnosis which serves to order and provide a link.
*
*/
public Integer getSequence() {
return getSequenceElement().getValue();
}
/**
* Sets the value(s) for sequence ()
*
*
* Definition:
* Sequence of diagnosis which serves to order and provide a link.
*
*/
public Diagnosis setSequence(PositiveIntDt theValue) {
mySequence = theValue;
return this;
}
/**
* Sets the value for sequence ()
*
*
* Definition:
* Sequence of diagnosis which serves to order and provide a link.
*
*/
public Diagnosis setSequence( int theInteger) {
mySequence = new PositiveIntDt(theInteger);
return this;
}
/**
* Gets the value(s) for diagnosis ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The diagnosis.
*
*/
public CodingDt getDiagnosis() {
if (myDiagnosis == null) {
myDiagnosis = new CodingDt();
}
return myDiagnosis;
}
/**
* Sets the value(s) for diagnosis ()
*
*
* Definition:
* The diagnosis.
*
*/
public Diagnosis setDiagnosis(CodingDt theValue) {
myDiagnosis = theValue;
return this;
}
}
/**
* Block class for child element: Claim.coverage ()
*
*
* Definition:
* Financial instrument by which payment information for health care
*
*/
@Block()
public static class Coverage
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="sequence", type=PositiveIntDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A service line item."
)
private PositiveIntDt mySequence;
@Child(name="focal", type=BooleanDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated."
)
private BooleanDt myFocal;
@Child(name="coverage", order=2, min=1, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Coverage.class
})
@Description(
shortDefinition="",
formalDefinition="Reference to the program or plan identification, underwriter or payor."
)
private ResourceReferenceDt myCoverage;
@Child(name="businessArrangement", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The contract number of a business agreement which describes the terms and conditions."
)
private StringDt myBusinessArrangement;
@Child(name="relationship", type=CodingDt.class, order=4, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The relationship of the patient to the subscriber"
)
private CodingDt myRelationship;
@Child(name="preAuthRef", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A list of references from the Insurer to which these services pertain."
)
private java.util.List myPreAuthRef;
@Child(name="claimResponse", order=6, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.ClaimResponse.class
})
@Description(
shortDefinition="",
formalDefinition="The Coverages adjudication details."
)
private ResourceReferenceDt myClaimResponse;
@Child(name="originalRuleset", type=CodingDt.class, order=7, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The style (standard) and version of the original material which was converted into this resource."
)
private CodingDt myOriginalRuleset;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySequence, myFocal, myCoverage, myBusinessArrangement, myRelationship, myPreAuthRef, myClaimResponse, myOriginalRuleset);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequence, myFocal, myCoverage, myBusinessArrangement, myRelationship, myPreAuthRef, myClaimResponse, myOriginalRuleset);
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A service line item.
*
*/
public PositiveIntDt getSequenceElement() {
if (mySequence == null) {
mySequence = new PositiveIntDt();
}
return mySequence;
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A service line item.
*
*/
public Integer getSequence() {
return getSequenceElement().getValue();
}
/**
* Sets the value(s) for sequence ()
*
*
* Definition:
* A service line item.
*
*/
public Coverage setSequence(PositiveIntDt theValue) {
mySequence = theValue;
return this;
}
/**
* Sets the value for sequence ()
*
*
* Definition:
* A service line item.
*
*/
public Coverage setSequence( int theInteger) {
mySequence = new PositiveIntDt(theInteger);
return this;
}
/**
* Gets the value(s) for focal ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.
*
*/
public BooleanDt getFocalElement() {
if (myFocal == null) {
myFocal = new BooleanDt();
}
return myFocal;
}
/**
* Gets the value(s) for focal ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.
*
*/
public Boolean getFocal() {
return getFocalElement().getValue();
}
/**
* Sets the value(s) for focal ()
*
*
* Definition:
* The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.
*
*/
public Coverage setFocal(BooleanDt theValue) {
myFocal = theValue;
return this;
}
/**
* Sets the value for focal ()
*
*
* Definition:
* The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.
*
*/
public Coverage setFocal( boolean theBoolean) {
myFocal = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for coverage ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Reference to the program or plan identification, underwriter or payor.
*
*/
public ResourceReferenceDt getCoverage() {
if (myCoverage == null) {
myCoverage = new ResourceReferenceDt();
}
return myCoverage;
}
/**
* Sets the value(s) for coverage ()
*
*
* Definition:
* Reference to the program or plan identification, underwriter or payor.
*
*/
public Coverage setCoverage(ResourceReferenceDt theValue) {
myCoverage = theValue;
return this;
}
/**
* Gets the value(s) for businessArrangement ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The contract number of a business agreement which describes the terms and conditions.
*
*/
public StringDt getBusinessArrangementElement() {
if (myBusinessArrangement == null) {
myBusinessArrangement = new StringDt();
}
return myBusinessArrangement;
}
/**
* Gets the value(s) for businessArrangement ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The contract number of a business agreement which describes the terms and conditions.
*
*/
public String getBusinessArrangement() {
return getBusinessArrangementElement().getValue();
}
/**
* Sets the value(s) for businessArrangement ()
*
*
* Definition:
* The contract number of a business agreement which describes the terms and conditions.
*
*/
public Coverage setBusinessArrangement(StringDt theValue) {
myBusinessArrangement = theValue;
return this;
}
/**
* Sets the value for businessArrangement ()
*
*
* Definition:
* The contract number of a business agreement which describes the terms and conditions.
*
*/
public Coverage setBusinessArrangement( String theString) {
myBusinessArrangement = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for relationship ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The relationship of the patient to the subscriber
*
*/
public CodingDt getRelationship() {
if (myRelationship == null) {
myRelationship = new CodingDt();
}
return myRelationship;
}
/**
* Sets the value(s) for relationship ()
*
*
* Definition:
* The relationship of the patient to the subscriber
*
*/
public Coverage setRelationship(CodingDt theValue) {
myRelationship = theValue;
return this;
}
/**
* Gets the value(s) for preAuthRef ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A list of references from the Insurer to which these services pertain.
*
*/
public java.util.List getPreAuthRef() {
if (myPreAuthRef == null) {
myPreAuthRef = new java.util.ArrayList();
}
return myPreAuthRef;
}
/**
* Sets the value(s) for preAuthRef ()
*
*
* Definition:
* A list of references from the Insurer to which these services pertain.
*
*/
public Coverage setPreAuthRef(java.util.List theValue) {
myPreAuthRef = theValue;
return this;
}
/**
* Adds and returns a new value for preAuthRef ()
*
*
* Definition:
* A list of references from the Insurer to which these services pertain.
*
*/
public StringDt addPreAuthRef() {
StringDt newType = new StringDt();
getPreAuthRef().add(newType);
return newType;
}
/**
* Adds a given new value for preAuthRef ()
*
*
* Definition:
* A list of references from the Insurer to which these services pertain.
*
* @param theValue The preAuthRef to add (must not be null
)
*/
public Coverage addPreAuthRef(StringDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getPreAuthRef().add(theValue);
return this;
}
/**
* Gets the first repetition for preAuthRef (),
* creating it if it does not already exist.
*
*
* Definition:
* A list of references from the Insurer to which these services pertain.
*
*/
public StringDt getPreAuthRefFirstRep() {
if (getPreAuthRef().isEmpty()) {
return addPreAuthRef();
}
return getPreAuthRef().get(0);
}
/**
* Adds a new value for preAuthRef ()
*
*
* Definition:
* A list of references from the Insurer to which these services pertain.
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Coverage addPreAuthRef( String theString) {
if (myPreAuthRef == null) {
myPreAuthRef = new java.util.ArrayList();
}
myPreAuthRef.add(new StringDt(theString));
return this;
}
/**
* Gets the value(s) for claimResponse ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The Coverages adjudication details.
*
*/
public ResourceReferenceDt getClaimResponse() {
if (myClaimResponse == null) {
myClaimResponse = new ResourceReferenceDt();
}
return myClaimResponse;
}
/**
* Sets the value(s) for claimResponse ()
*
*
* Definition:
* The Coverages adjudication details.
*
*/
public Coverage setClaimResponse(ResourceReferenceDt theValue) {
myClaimResponse = theValue;
return this;
}
/**
* Gets the value(s) for originalRuleset ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The style (standard) and version of the original material which was converted into this resource.
*
*/
public CodingDt getOriginalRuleset() {
if (myOriginalRuleset == null) {
myOriginalRuleset = new CodingDt();
}
return myOriginalRuleset;
}
/**
* Sets the value(s) for originalRuleset ()
*
*
* Definition:
* The style (standard) and version of the original material which was converted into this resource.
*
*/
public Coverage setOriginalRuleset(CodingDt theValue) {
myOriginalRuleset = theValue;
return this;
}
}
/**
* Block class for child element: Claim.item ()
*
*
* Definition:
* First tier of goods and services
*
*/
@Block()
public static class Item
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="sequence", type=PositiveIntDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A service line number."
)
private PositiveIntDt mySequence;
@Child(name="type", type=CodingDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The type of product or service."
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode")
private CodingDt myType;
@Child(name="provider", order=2, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class
})
@Description(
shortDefinition="",
formalDefinition="The practitioner who is responsible for the services rendered to the patient"
)
private ResourceReferenceDt myProvider;
@Child(name="diagnosisLinkId", type=PositiveIntDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Diagnosis applicable for this service or product line."
)
private java.util.List myDiagnosisLinkId;
@Child(name="service", type=CodingDt.class, order=4, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied."
)
private CodingDt myService;
@Child(name="serviceDate", type=DateDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The date when the enclosed suite of services were performed or completed"
)
private DateDt myServiceDate;
@Child(name="quantity", type=SimpleQuantityDt.class, order=6, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The number of repetitions of a service or product."
)
private SimpleQuantityDt myQuantity;
@Child(name="unitPrice", type=MoneyDt.class, order=7, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group."
)
private MoneyDt myUnitPrice;
@Child(name="factor", type=DecimalDt.class, order=8, 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 services delivered and/or goods received. 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=9, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point."
)
private DecimalDt myPoints;
@Child(name="net", type=MoneyDt.class, order=10, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The quantity times the unit price for an additional service or product or charge. 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;
@Child(name="udi", type=CodingDt.class, order=11, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="List of Unique Device Identifiers associated with this line item."
)
private CodingDt myUdi;
@Child(name="bodySite", type=CodingDt.class, order=12, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Physical service site on the patient (limb, tooth, etc.)."
)
private CodingDt myBodySite;
@Child(name="subSite", type=CodingDt.class, order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A region or surface of the site, e.g. limb region or tooth surface(s)."
)
private java.util.List mySubSite;
@Child(name="modifier", type=CodingDt.class, order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Item typification or modifiers codes, e.g. for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen."
)
private java.util.List myModifier;
@Child(name="detail", order=15, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Second tier of goods and services"
)
private java.util.List myDetail;
@Child(name="prosthesis", order=16, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The materials and placement date of prior fixed prosthesis."
)
private ItemProsthesis myProsthesis;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySequence, myType, myProvider, myDiagnosisLinkId, myService, myServiceDate, myQuantity, myUnitPrice, myFactor, myPoints, myNet, myUdi, myBodySite, mySubSite, myModifier, myDetail, myProsthesis);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequence, myType, myProvider, myDiagnosisLinkId, myService, myServiceDate, myQuantity, myUnitPrice, myFactor, myPoints, myNet, myUdi, myBodySite, mySubSite, myModifier, myDetail, myProsthesis);
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A service line number.
*
*/
public PositiveIntDt getSequenceElement() {
if (mySequence == null) {
mySequence = new PositiveIntDt();
}
return mySequence;
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A service line number.
*
*/
public Integer getSequence() {
return getSequenceElement().getValue();
}
/**
* Sets the value(s) for sequence ()
*
*
* Definition:
* A service line number.
*
*/
public Item setSequence(PositiveIntDt theValue) {
mySequence = theValue;
return this;
}
/**
* Sets the value for sequence ()
*
*
* Definition:
* A service line number.
*
*/
public Item setSequence( int theInteger) {
mySequence = new PositiveIntDt(theInteger);
return this;
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The type of product or service.
*
*/
public CodingDt getType() {
if (myType == null) {
myType = new CodingDt();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The type of product or service.
*
*/
public Item setType(CodingDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for provider ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The practitioner who is responsible for the services rendered to the patient
*
*/
public ResourceReferenceDt getProvider() {
if (myProvider == null) {
myProvider = new ResourceReferenceDt();
}
return myProvider;
}
/**
* Sets the value(s) for provider ()
*
*
* Definition:
* The practitioner who is responsible for the services rendered to the patient
*
*/
public Item setProvider(ResourceReferenceDt theValue) {
myProvider = theValue;
return this;
}
/**
* Gets the value(s) for diagnosisLinkId ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Diagnosis applicable for this service or product line.
*
*/
public java.util.List getDiagnosisLinkId() {
if (myDiagnosisLinkId == null) {
myDiagnosisLinkId = new java.util.ArrayList();
}
return myDiagnosisLinkId;
}
/**
* Sets the value(s) for diagnosisLinkId ()
*
*
* Definition:
* Diagnosis applicable for this service or product line.
*
*/
public Item setDiagnosisLinkId(java.util.List theValue) {
myDiagnosisLinkId = theValue;
return this;
}
/**
* Adds and returns a new value for diagnosisLinkId ()
*
*
* Definition:
* Diagnosis applicable for this service or product line.
*
*/
public PositiveIntDt addDiagnosisLinkId() {
PositiveIntDt newType = new PositiveIntDt();
getDiagnosisLinkId().add(newType);
return newType;
}
/**
* Adds a given new value for diagnosisLinkId ()
*
*
* Definition:
* Diagnosis applicable for this service or product line.
*
* @param theValue The diagnosisLinkId to add (must not be null
)
*/
public Item addDiagnosisLinkId(PositiveIntDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDiagnosisLinkId().add(theValue);
return this;
}
/**
* Gets the first repetition for diagnosisLinkId (),
* creating it if it does not already exist.
*
*
* Definition:
* Diagnosis applicable for this service or product line.
*
*/
public PositiveIntDt getDiagnosisLinkIdFirstRep() {
if (getDiagnosisLinkId().isEmpty()) {
return addDiagnosisLinkId();
}
return getDiagnosisLinkId().get(0);
}
/**
* Adds a new value for diagnosisLinkId ()
*
*
* Definition:
* Diagnosis applicable for this service or product line.
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Item addDiagnosisLinkId( int theInteger) {
if (myDiagnosisLinkId == null) {
myDiagnosisLinkId = new java.util.ArrayList();
}
myDiagnosisLinkId.add(new PositiveIntDt(theInteger));
return this;
}
/**
* Gets the value(s) for service ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.
*
*/
public CodingDt getService() {
if (myService == null) {
myService = new CodingDt();
}
return myService;
}
/**
* Sets the value(s) for service ()
*
*
* Definition:
* If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.
*
*/
public Item setService(CodingDt theValue) {
myService = theValue;
return this;
}
/**
* Gets the value(s) for serviceDate ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public DateDt getServiceDateElement() {
if (myServiceDate == null) {
myServiceDate = new DateDt();
}
return myServiceDate;
}
/**
* Gets the value(s) for serviceDate ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Date getServiceDate() {
return getServiceDateElement().getValue();
}
/**
* Sets the value(s) for serviceDate ()
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Item setServiceDate(DateDt theValue) {
myServiceDate = theValue;
return this;
}
/**
* Sets the value for serviceDate ()
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Item setServiceDateWithDayPrecision( Date theDate) {
myServiceDate = new DateDt(theDate);
return this;
}
/**
* Sets the value for serviceDate ()
*
*
* Definition:
* The date when the enclosed suite of services were performed or completed
*
*/
public Item setServiceDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myServiceDate = new DateDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for quantity ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The number of repetitions of a service or product.
*
*/
public SimpleQuantityDt getQuantity() {
if (myQuantity == null) {
myQuantity = new SimpleQuantityDt();
}
return myQuantity;
}
/**
* Sets the value(s) for quantity ()
*
*
* Definition:
* The number of repetitions of a service or product.
*
*/
public Item 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:
* If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.
*
*/
public MoneyDt getUnitPrice() {
if (myUnitPrice == null) {
myUnitPrice = new MoneyDt();
}
return myUnitPrice;
}
/**
* Sets the value(s) for unitPrice ()
*
*
* Definition:
* If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.
*
*/
public Item 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 services delivered and/or goods received. 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 services delivered and/or goods received. 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public Item 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public Item 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public Item 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public Item 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public Item 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public Item 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public Item 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public Item 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:
* The quantity times the unit price for an additional service or product or charge. 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:
* The quantity times the unit price for an additional service or product or charge. 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 Item setNet(MoneyDt theValue) {
myNet = theValue;
return this;
}
/**
* Gets the value(s) for udi ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of Unique Device Identifiers associated with this line item.
*
*/
public CodingDt getUdi() {
if (myUdi == null) {
myUdi = new CodingDt();
}
return myUdi;
}
/**
* Sets the value(s) for udi ()
*
*
* Definition:
* List of Unique Device Identifiers associated with this line item.
*
*/
public Item setUdi(CodingDt theValue) {
myUdi = theValue;
return this;
}
/**
* Gets the value(s) for bodySite ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Physical service site on the patient (limb, tooth, etc.).
*
*/
public CodingDt getBodySite() {
if (myBodySite == null) {
myBodySite = new CodingDt();
}
return myBodySite;
}
/**
* Sets the value(s) for bodySite ()
*
*
* Definition:
* Physical service site on the patient (limb, tooth, etc.).
*
*/
public Item setBodySite(CodingDt theValue) {
myBodySite = theValue;
return this;
}
/**
* Gets the value(s) for subSite ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A region or surface of the site, e.g. limb region or tooth surface(s).
*
*/
public java.util.List getSubSite() {
if (mySubSite == null) {
mySubSite = new java.util.ArrayList();
}
return mySubSite;
}
/**
* Sets the value(s) for subSite ()
*
*
* Definition:
* A region or surface of the site, e.g. limb region or tooth surface(s).
*
*/
public Item setSubSite(java.util.List theValue) {
mySubSite = theValue;
return this;
}
/**
* Adds and returns a new value for subSite ()
*
*
* Definition:
* A region or surface of the site, e.g. limb region or tooth surface(s).
*
*/
public CodingDt addSubSite() {
CodingDt newType = new CodingDt();
getSubSite().add(newType);
return newType;
}
/**
* Adds a given new value for subSite ()
*
*
* Definition:
* A region or surface of the site, e.g. limb region or tooth surface(s).
*
* @param theValue The subSite to add (must not be null
)
*/
public Item addSubSite(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getSubSite().add(theValue);
return this;
}
/**
* Gets the first repetition for subSite (),
* creating it if it does not already exist.
*
*
* Definition:
* A region or surface of the site, e.g. limb region or tooth surface(s).
*
*/
public CodingDt getSubSiteFirstRep() {
if (getSubSite().isEmpty()) {
return addSubSite();
}
return getSubSite().get(0);
}
/**
* Gets the value(s) for modifier ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Item typification or modifiers codes, e.g. for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.
*
*/
public java.util.List getModifier() {
if (myModifier == null) {
myModifier = new java.util.ArrayList();
}
return myModifier;
}
/**
* Sets the value(s) for modifier ()
*
*
* Definition:
* Item typification or modifiers codes, e.g. for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.
*
*/
public Item setModifier(java.util.List theValue) {
myModifier = theValue;
return this;
}
/**
* Adds and returns a new value for modifier ()
*
*
* Definition:
* Item typification or modifiers codes, e.g. for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.
*
*/
public CodingDt addModifier() {
CodingDt newType = new CodingDt();
getModifier().add(newType);
return newType;
}
/**
* Adds a given new value for modifier ()
*
*
* Definition:
* Item typification or modifiers codes, e.g. for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.
*
* @param theValue The modifier to add (must not be null
)
*/
public Item addModifier(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getModifier().add(theValue);
return this;
}
/**
* Gets the first repetition for modifier (),
* creating it if it does not already exist.
*
*
* Definition:
* Item typification or modifiers codes, e.g. for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.
*
*/
public CodingDt getModifierFirstRep() {
if (getModifier().isEmpty()) {
return addModifier();
}
return getModifier().get(0);
}
/**
* Gets the value(s) for detail ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Second tier of goods and services
*
*/
public java.util.List getDetail() {
if (myDetail == null) {
myDetail = new java.util.ArrayList();
}
return myDetail;
}
/**
* Sets the value(s) for detail ()
*
*
* Definition:
* Second tier of goods and services
*
*/
public Item setDetail(java.util.List theValue) {
myDetail = theValue;
return this;
}
/**
* Adds and returns a new value for detail ()
*
*
* Definition:
* Second tier of goods and services
*
*/
public ItemDetail addDetail() {
ItemDetail newType = new ItemDetail();
getDetail().add(newType);
return newType;
}
/**
* Adds a given new value for detail ()
*
*
* Definition:
* Second tier of goods and services
*
* @param theValue The detail to add (must not be null
)
*/
public Item addDetail(ItemDetail theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDetail().add(theValue);
return this;
}
/**
* Gets the first repetition for detail (),
* creating it if it does not already exist.
*
*
* Definition:
* Second tier of goods and services
*
*/
public ItemDetail getDetailFirstRep() {
if (getDetail().isEmpty()) {
return addDetail();
}
return getDetail().get(0);
}
/**
* Gets the value(s) for prosthesis ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The materials and placement date of prior fixed prosthesis.
*
*/
public ItemProsthesis getProsthesis() {
if (myProsthesis == null) {
myProsthesis = new ItemProsthesis();
}
return myProsthesis;
}
/**
* Sets the value(s) for prosthesis ()
*
*
* Definition:
* The materials and placement date of prior fixed prosthesis.
*
*/
public Item setProsthesis(ItemProsthesis theValue) {
myProsthesis = theValue;
return this;
}
}
/**
* Block class for child element: Claim.item.detail ()
*
*
* Definition:
* Second tier of goods and services
*
*/
@Block()
public static class ItemDetail
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="sequence", type=PositiveIntDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A service line number."
)
private PositiveIntDt mySequence;
@Child(name="type", type=CodingDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The type of product or service."
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode")
private CodingDt myType;
@Child(name="service", type=CodingDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied."
)
private CodingDt myService;
@Child(name="quantity", type=SimpleQuantityDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The number of repetitions of a service or product."
)
private SimpleQuantityDt myQuantity;
@Child(name="unitPrice", type=MoneyDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group."
)
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 services delivered and/or goods received. 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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="The quantity times the unit price for an additional service or product or charge. 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;
@Child(name="udi", type=CodingDt.class, order=8, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="List of Unique Device Identifiers associated with this line item."
)
private CodingDt myUdi;
@Child(name="subDetail", order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Third tier of goods and services"
)
private java.util.List mySubDetail;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySequence, myType, myService, myQuantity, myUnitPrice, myFactor, myPoints, myNet, myUdi, mySubDetail);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequence, myType, myService, myQuantity, myUnitPrice, myFactor, myPoints, myNet, myUdi, mySubDetail);
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A service line number.
*
*/
public PositiveIntDt getSequenceElement() {
if (mySequence == null) {
mySequence = new PositiveIntDt();
}
return mySequence;
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A service line number.
*
*/
public Integer getSequence() {
return getSequenceElement().getValue();
}
/**
* Sets the value(s) for sequence ()
*
*
* Definition:
* A service line number.
*
*/
public ItemDetail setSequence(PositiveIntDt theValue) {
mySequence = theValue;
return this;
}
/**
* Sets the value for sequence ()
*
*
* Definition:
* A service line number.
*
*/
public ItemDetail setSequence( int theInteger) {
mySequence = new PositiveIntDt(theInteger);
return this;
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The type of product or service.
*
*/
public CodingDt getType() {
if (myType == null) {
myType = new CodingDt();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The type of product or service.
*
*/
public ItemDetail setType(CodingDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for service ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.
*
*/
public CodingDt getService() {
if (myService == null) {
myService = new CodingDt();
}
return myService;
}
/**
* Sets the value(s) for service ()
*
*
* Definition:
* If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.
*
*/
public ItemDetail setService(CodingDt theValue) {
myService = theValue;
return this;
}
/**
* Gets the value(s) for quantity ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The number of repetitions of a service or product.
*
*/
public SimpleQuantityDt getQuantity() {
if (myQuantity == null) {
myQuantity = new SimpleQuantityDt();
}
return myQuantity;
}
/**
* Sets the value(s) for quantity ()
*
*
* Definition:
* The number of repetitions of a service or product.
*
*/
public ItemDetail 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:
* If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.
*
*/
public MoneyDt getUnitPrice() {
if (myUnitPrice == null) {
myUnitPrice = new MoneyDt();
}
return myUnitPrice;
}
/**
* Sets the value(s) for unitPrice ()
*
*
* Definition:
* If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.
*
*/
public ItemDetail 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 services delivered and/or goods received. 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 services delivered and/or goods received. 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetail 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetail 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetail 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetail 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:
* The quantity times the unit price for an additional service or product or charge. 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:
* The quantity times the unit price for an additional service or product or charge. 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 ItemDetail setNet(MoneyDt theValue) {
myNet = theValue;
return this;
}
/**
* Gets the value(s) for udi ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of Unique Device Identifiers associated with this line item.
*
*/
public CodingDt getUdi() {
if (myUdi == null) {
myUdi = new CodingDt();
}
return myUdi;
}
/**
* Sets the value(s) for udi ()
*
*
* Definition:
* List of Unique Device Identifiers associated with this line item.
*
*/
public ItemDetail setUdi(CodingDt theValue) {
myUdi = theValue;
return this;
}
/**
* Gets the value(s) for subDetail ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Third tier of goods and services
*
*/
public java.util.List getSubDetail() {
if (mySubDetail == null) {
mySubDetail = new java.util.ArrayList();
}
return mySubDetail;
}
/**
* Sets the value(s) for subDetail ()
*
*
* Definition:
* Third tier of goods and services
*
*/
public ItemDetail setSubDetail(java.util.List theValue) {
mySubDetail = theValue;
return this;
}
/**
* Adds and returns a new value for subDetail ()
*
*
* Definition:
* Third tier of goods and services
*
*/
public ItemDetailSubDetail addSubDetail() {
ItemDetailSubDetail newType = new ItemDetailSubDetail();
getSubDetail().add(newType);
return newType;
}
/**
* Adds a given new value for subDetail ()
*
*
* Definition:
* Third tier of goods and services
*
* @param theValue The subDetail to add (must not be null
)
*/
public ItemDetail addSubDetail(ItemDetailSubDetail theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getSubDetail().add(theValue);
return this;
}
/**
* Gets the first repetition for subDetail (),
* creating it if it does not already exist.
*
*
* Definition:
* Third tier of goods and services
*
*/
public ItemDetailSubDetail getSubDetailFirstRep() {
if (getSubDetail().isEmpty()) {
return addSubDetail();
}
return getSubDetail().get(0);
}
}
/**
* Block class for child element: Claim.item.detail.subDetail ()
*
*
* Definition:
* Third tier of goods and services
*
*/
@Block()
public static class ItemDetailSubDetail
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="sequence", type=PositiveIntDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A service line number."
)
private PositiveIntDt mySequence;
@Child(name="type", type=CodingDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The type of product or service."
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode")
private CodingDt myType;
@Child(name="service", type=CodingDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The fee for an additional service or product or charge."
)
private CodingDt myService;
@Child(name="quantity", type=SimpleQuantityDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The number of repetitions of a service or product."
)
private SimpleQuantityDt myQuantity;
@Child(name="unitPrice", type=MoneyDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The fee for an additional service or product or charge."
)
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 services delivered and/or goods received. 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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="The quantity times the unit price for an additional service or product or charge. 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;
@Child(name="udi", type=CodingDt.class, order=8, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="List of Unique Device Identifiers associated with this line item."
)
private CodingDt myUdi;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySequence, myType, myService, myQuantity, myUnitPrice, myFactor, myPoints, myNet, myUdi);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequence, myType, myService, myQuantity, myUnitPrice, myFactor, myPoints, myNet, myUdi);
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A service line number.
*
*/
public PositiveIntDt getSequenceElement() {
if (mySequence == null) {
mySequence = new PositiveIntDt();
}
return mySequence;
}
/**
* Gets the value(s) for sequence ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A service line number.
*
*/
public Integer getSequence() {
return getSequenceElement().getValue();
}
/**
* Sets the value(s) for sequence ()
*
*
* Definition:
* A service line number.
*
*/
public ItemDetailSubDetail setSequence(PositiveIntDt theValue) {
mySequence = theValue;
return this;
}
/**
* Sets the value for sequence ()
*
*
* Definition:
* A service line number.
*
*/
public ItemDetailSubDetail setSequence( int theInteger) {
mySequence = new PositiveIntDt(theInteger);
return this;
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The type of product or service.
*
*/
public CodingDt getType() {
if (myType == null) {
myType = new CodingDt();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The type of product or service.
*
*/
public ItemDetailSubDetail setType(CodingDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for service ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The fee for an additional service or product or charge.
*
*/
public CodingDt getService() {
if (myService == null) {
myService = new CodingDt();
}
return myService;
}
/**
* Sets the value(s) for service ()
*
*
* Definition:
* The fee for an additional service or product or charge.
*
*/
public ItemDetailSubDetail setService(CodingDt theValue) {
myService = theValue;
return this;
}
/**
* Gets the value(s) for quantity ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The number of repetitions of a service or product.
*
*/
public SimpleQuantityDt getQuantity() {
if (myQuantity == null) {
myQuantity = new SimpleQuantityDt();
}
return myQuantity;
}
/**
* Sets the value(s) for quantity ()
*
*
* Definition:
* The number of repetitions of a service or product.
*
*/
public ItemDetailSubDetail 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:
* The fee for an additional service or product or charge.
*
*/
public MoneyDt getUnitPrice() {
if (myUnitPrice == null) {
myUnitPrice = new MoneyDt();
}
return myUnitPrice;
}
/**
* Sets the value(s) for unitPrice ()
*
*
* Definition:
* The fee for an additional service or product or charge.
*
*/
public ItemDetailSubDetail 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 services delivered and/or goods received. 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 services delivered and/or goods received. 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetailSubDetail 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetailSubDetail 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetailSubDetail 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 services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.
*
*/
public ItemDetailSubDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetailSubDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetailSubDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetailSubDetail 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 good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.
*
*/
public ItemDetailSubDetail 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:
* The quantity times the unit price for an additional service or product or charge. 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:
* The quantity times the unit price for an additional service or product or charge. 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 ItemDetailSubDetail setNet(MoneyDt theValue) {
myNet = theValue;
return this;
}
/**
* Gets the value(s) for udi ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of Unique Device Identifiers associated with this line item.
*
*/
public CodingDt getUdi() {
if (myUdi == null) {
myUdi = new CodingDt();
}
return myUdi;
}
/**
* Sets the value(s) for udi ()
*
*
* Definition:
* List of Unique Device Identifiers associated with this line item.
*
*/
public ItemDetailSubDetail setUdi(CodingDt theValue) {
myUdi = theValue;
return this;
}
}
/**
* Block class for child element: Claim.item.prosthesis ()
*
*
* Definition:
* The materials and placement date of prior fixed prosthesis.
*
*/
@Block()
public static class ItemProsthesis
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="initial", type=BooleanDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Indicates whether this is the initial placement of a fixed prosthesis."
)
private BooleanDt myInitial;
@Child(name="priorDate", type=DateDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Date of the initial placement."
)
private DateDt myPriorDate;
@Child(name="priorMaterial", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Material of the prior denture or bridge prosthesis. (Oral)"
)
private CodingDt myPriorMaterial;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myInitial, myPriorDate, myPriorMaterial);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myInitial, myPriorDate, myPriorMaterial);
}
/**
* Gets the value(s) for initial ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates whether this is the initial placement of a fixed prosthesis.
*
*/
public BooleanDt getInitialElement() {
if (myInitial == null) {
myInitial = new BooleanDt();
}
return myInitial;
}
/**
* Gets the value(s) for initial ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Indicates whether this is the initial placement of a fixed prosthesis.
*
*/
public Boolean getInitial() {
return getInitialElement().getValue();
}
/**
* Sets the value(s) for initial ()
*
*
* Definition:
* Indicates whether this is the initial placement of a fixed prosthesis.
*
*/
public ItemProsthesis setInitial(BooleanDt theValue) {
myInitial = theValue;
return this;
}
/**
* Sets the value for initial ()
*
*
* Definition:
* Indicates whether this is the initial placement of a fixed prosthesis.
*
*/
public ItemProsthesis setInitial( boolean theBoolean) {
myInitial = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for priorDate ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Date of the initial placement.
*
*/
public DateDt getPriorDateElement() {
if (myPriorDate == null) {
myPriorDate = new DateDt();
}
return myPriorDate;
}
/**
* Gets the value(s) for priorDate ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Date of the initial placement.
*
*/
public Date getPriorDate() {
return getPriorDateElement().getValue();
}
/**
* Sets the value(s) for priorDate ()
*
*
* Definition:
* Date of the initial placement.
*
*/
public ItemProsthesis setPriorDate(DateDt theValue) {
myPriorDate = theValue;
return this;
}
/**
* Sets the value for priorDate ()
*
*
* Definition:
* Date of the initial placement.
*
*/
public ItemProsthesis setPriorDateWithDayPrecision( Date theDate) {
myPriorDate = new DateDt(theDate);
return this;
}
/**
* Sets the value for priorDate ()
*
*
* Definition:
* Date of the initial placement.
*
*/
public ItemProsthesis setPriorDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myPriorDate = new DateDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for priorMaterial ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Material of the prior denture or bridge prosthesis. (Oral)
*
*/
public CodingDt getPriorMaterial() {
if (myPriorMaterial == null) {
myPriorMaterial = new CodingDt();
}
return myPriorMaterial;
}
/**
* Sets the value(s) for priorMaterial ()
*
*
* Definition:
* Material of the prior denture or bridge prosthesis. (Oral)
*
*/
public ItemProsthesis setPriorMaterial(CodingDt theValue) {
myPriorMaterial = theValue;
return this;
}
}
/**
* Block class for child element: Claim.missingTeeth ()
*
*
* Definition:
* A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons.
*
*/
@Block()
public static class MissingTeeth
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="tooth", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The code identifying which tooth is missing."
)
private CodingDt myTooth;
@Child(name="reason", type=CodingDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Missing reason may be: E-extraction, O-other"
)
private CodingDt myReason;
@Child(name="extractionDate", type=DateDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The date of the extraction either known from records or patient reported estimate."
)
private DateDt myExtractionDate;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTooth, myReason, myExtractionDate);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTooth, myReason, myExtractionDate);
}
/**
* Gets the value(s) for tooth ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The code identifying which tooth is missing.
*
*/
public CodingDt getTooth() {
if (myTooth == null) {
myTooth = new CodingDt();
}
return myTooth;
}
/**
* Sets the value(s) for tooth ()
*
*
* Definition:
* The code identifying which tooth is missing.
*
*/
public MissingTeeth setTooth(CodingDt theValue) {
myTooth = theValue;
return this;
}
/**
* Gets the value(s) for reason ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Missing reason may be: E-extraction, O-other
*
*/
public CodingDt getReason() {
if (myReason == null) {
myReason = new CodingDt();
}
return myReason;
}
/**
* Sets the value(s) for reason ()
*
*
* Definition:
* Missing reason may be: E-extraction, O-other
*
*/
public MissingTeeth setReason(CodingDt theValue) {
myReason = theValue;
return this;
}
/**
* Gets the value(s) for extractionDate ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The date of the extraction either known from records or patient reported estimate.
*
*/
public DateDt getExtractionDateElement() {
if (myExtractionDate == null) {
myExtractionDate = new DateDt();
}
return myExtractionDate;
}
/**
* Gets the value(s) for extractionDate ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The date of the extraction either known from records or patient reported estimate.
*
*/
public Date getExtractionDate() {
return getExtractionDateElement().getValue();
}
/**
* Sets the value(s) for extractionDate ()
*
*
* Definition:
* The date of the extraction either known from records or patient reported estimate.
*
*/
public MissingTeeth setExtractionDate(DateDt theValue) {
myExtractionDate = theValue;
return this;
}
/**
* Sets the value for extractionDate ()
*
*
* Definition:
* The date of the extraction either known from records or patient reported estimate.
*
*/
public MissingTeeth setExtractionDateWithDayPrecision( Date theDate) {
myExtractionDate = new DateDt(theDate);
return this;
}
/**
* Sets the value for extractionDate ()
*
*
* Definition:
* The date of the extraction either known from records or patient reported estimate.
*
*/
public MissingTeeth setExtractionDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myExtractionDate = new DateDt(theDate, thePrecision);
return this;
}
}
@Override
public String getResourceName() {
return "Claim";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
}
}