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

ca.uhn.fhir.model.dstu.resource.Claim Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
















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


import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR Claim Resource
 * (A claim)
 *
 * 

* Definition: * A claim *

* *

* 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.dstu.resource.BaseResource implements IResource { /** * Search parameter constant for number *

* Description:
* Type: token
* Path: Claim.number
*

*/ @SearchParamDefinition(name="number", path="Claim.number", description="", type="token" ) public static final String SP_NUMBER = "number"; /** * Fluent Client search parameter constant for number *

* Description:
* Type: token
* Path: Claim.number
*

*/ public static final TokenClientParam NUMBER = new TokenClientParam(SP_NUMBER); @Child(name="number", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Claim/Invoice number", formalDefinition="The claim issuer and claim number" ) private IdentifierDt myNumber; @Child(name="servicedate", type=DateDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Date of Service", formalDefinition="The date when the enclosed suite of services were performed or completed" ) private DateDt myServicedate; @Child(name="provider", order=2, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient" ) private ResourceReferenceDt myProvider; @Child(name="billingProvider", order=3, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="Provider who is the payee", formalDefinition="The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned)" ) private ResourceReferenceDt myBillingProvider; @Child(name="referrer", order=4, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="Provider who is the payee", formalDefinition="" ) private ResourceReferenceDt myReferrer; @Child(name="reason", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Referal Reason", formalDefinition="The reason code for the referral" ) private CodeableConceptDt myReason; @Child(name="patient", order=6, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Patient Details", formalDefinition="Patient Details." ) private Patient myPatient; @Child(name="coverage", order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care" ) private Coverage myCoverage; @Child(name="exception", type=CodeableConceptDt.class, order=8, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Eligibility exceptions", formalDefinition="Factors which may influence the appicability of coverage" ) private CodeableConceptDt myException; @Child(name="relationship", type=CodeableConceptDt.class, order=9, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Patient relationship to subscriber", formalDefinition="The relationship of the patient to the subscriber" ) private CodeableConceptDt myRelationship; @Child(name="school", type=StringDt.class, order=10, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Name of School", formalDefinition="Name of school" ) private StringDt mySchool; @Child(name="service", order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Service Details", formalDefinition="" ) private java.util.List myService; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumber, myServicedate, myProvider, myBillingProvider, myReferrer, myReason, myPatient, myCoverage, myException, myRelationship, mySchool, myService); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumber, myServicedate, myProvider, myBillingProvider, myReferrer, myReason, myPatient, myCoverage, myException, myRelationship, mySchool, myService); } /** * Gets the value(s) for number (Claim/Invoice number). * creating it if it does * not exist. Will not return null. * *

* Definition: * The claim issuer and claim number *

*/ public IdentifierDt getNumber() { if (myNumber == null) { myNumber = new IdentifierDt(); } return myNumber; } /** * Gets the value(s) for number (Claim/Invoice number). * creating it if it does * not exist. Will not return null. * *

* Definition: * The claim issuer and claim number *

*/ public IdentifierDt getNumberElement() { if (myNumber == null) { myNumber = new IdentifierDt(); } return myNumber; } /** * Sets the value(s) for number (Claim/Invoice number) * *

* Definition: * The claim issuer and claim number *

*/ public Claim setNumber(IdentifierDt theValue) { myNumber = theValue; return this; } /** * Sets the value for number (Claim/Invoice number) * *

* Definition: * The claim issuer and claim number *

*/ public Claim setNumber( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myNumber = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for number (Claim/Invoice number) * *

* Definition: * The claim issuer and claim number *

*/ public Claim setNumber( String theSystem, String theValue) { myNumber = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for servicedate (Date of Service). * 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 getServicedate() { if (myServicedate == null) { myServicedate = new DateDt(); } return myServicedate; } /** * Gets the value(s) for servicedate (Date of Service). * 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; } /** * Sets the value(s) for servicedate (Date of Service) * *

* Definition: * The date when the enclosed suite of services were performed or completed *

*/ public Claim setServicedate(DateDt theValue) { myServicedate = theValue; return this; } /** * Sets the value for servicedate (Date of Service) * *

* Definition: * The date when the enclosed suite of services were performed or completed *

*/ public Claim setServicedate( Date theDate, TemporalPrecisionEnum thePrecision) { myServicedate = new DateDt(theDate, thePrecision); return this; } /** * Sets the value for servicedate (Date of Service) * *

* Definition: * The date when the enclosed suite of services were performed or completed *

*/ public Claim setServicedateWithDayPrecision( Date theDate) { myServicedate = new DateDt(theDate); return this; } /** * Gets the value(s) for provider (Responsible practitioner). * 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; } /** * Gets the value(s) for provider (Responsible practitioner). * 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 getProviderElement() { if (myProvider == null) { myProvider = new ResourceReferenceDt(); } return myProvider; } /** * Sets the value(s) for provider (Responsible practitioner) * *

* Definition: * The practitioner who is responsible for the services rendered to the patient *

*/ public Claim setProvider(ResourceReferenceDt theValue) { myProvider = theValue; return this; } /** * Gets the value(s) for billingProvider (Provider who is the payee). * 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 getBillingProvider() { if (myBillingProvider == null) { myBillingProvider = new ResourceReferenceDt(); } return myBillingProvider; } /** * Gets the value(s) for billingProvider (Provider who is the payee). * 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 getBillingProviderElement() { if (myBillingProvider == null) { myBillingProvider = new ResourceReferenceDt(); } return myBillingProvider; } /** * Sets the value(s) for billingProvider (Provider who is the payee) * *

* Definition: * The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned) *

*/ public Claim setBillingProvider(ResourceReferenceDt theValue) { myBillingProvider = theValue; return this; } /** * Gets the value(s) for referrer (Provider who is the payee). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ResourceReferenceDt getReferrer() { if (myReferrer == null) { myReferrer = new ResourceReferenceDt(); } return myReferrer; } /** * Gets the value(s) for referrer (Provider who is the payee). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ResourceReferenceDt getReferrerElement() { if (myReferrer == null) { myReferrer = new ResourceReferenceDt(); } return myReferrer; } /** * Sets the value(s) for referrer (Provider who is the payee) * *

* Definition: * *

*/ public Claim setReferrer(ResourceReferenceDt theValue) { myReferrer = theValue; return this; } /** * Gets the value(s) for reason (Referal Reason). * creating it if it does * not exist. Will not return null. * *

* Definition: * The reason code for the referral *

*/ public CodeableConceptDt getReason() { if (myReason == null) { myReason = new CodeableConceptDt(); } return myReason; } /** * Gets the value(s) for reason (Referal Reason). * creating it if it does * not exist. Will not return null. * *

* Definition: * The reason code for the referral *

*/ public CodeableConceptDt getReasonElement() { if (myReason == null) { myReason = new CodeableConceptDt(); } return myReason; } /** * Sets the value(s) for reason (Referal Reason) * *

* Definition: * The reason code for the referral *

*/ public Claim setReason(CodeableConceptDt theValue) { myReason = theValue; return this; } /** * Gets the value(s) for patient (Patient Details). * creating it if it does * not exist. Will not return null. * *

* Definition: * Patient Details. *

*/ public Patient getPatient() { if (myPatient == null) { myPatient = new Patient(); } return myPatient; } /** * Gets the value(s) for patient (Patient Details). * creating it if it does * not exist. Will not return null. * *

* Definition: * Patient Details. *

*/ public Patient getPatientElement() { if (myPatient == null) { myPatient = new Patient(); } return myPatient; } /** * Sets the value(s) for patient (Patient Details) * *

* Definition: * Patient Details. *

*/ public Claim setPatient(Patient theValue) { myPatient = theValue; return this; } /** * Gets the value(s) for coverage (Insurance or medical plan). * creating it if it does * not exist. Will not return null. * *

* Definition: * Financial instrument by which payment information for health care *

*/ public Coverage getCoverage() { if (myCoverage == null) { myCoverage = new Coverage(); } return myCoverage; } /** * Gets the value(s) for coverage (Insurance or medical plan). * creating it if it does * not exist. Will not return null. * *

* Definition: * Financial instrument by which payment information for health care *

*/ public Coverage getCoverageElement() { if (myCoverage == null) { myCoverage = new Coverage(); } return myCoverage; } /** * Sets the value(s) for coverage (Insurance or medical plan) * *

* Definition: * Financial instrument by which payment information for health care *

*/ public Claim setCoverage(Coverage theValue) { myCoverage = theValue; return this; } /** * Gets the value(s) for exception (Eligibility exceptions). * creating it if it does * not exist. Will not return null. * *

* Definition: * Factors which may influence the appicability of coverage *

*/ public CodeableConceptDt getException() { if (myException == null) { myException = new CodeableConceptDt(); } return myException; } /** * Gets the value(s) for exception (Eligibility exceptions). * creating it if it does * not exist. Will not return null. * *

* Definition: * Factors which may influence the appicability of coverage *

*/ public CodeableConceptDt getExceptionElement() { if (myException == null) { myException = new CodeableConceptDt(); } return myException; } /** * Sets the value(s) for exception (Eligibility exceptions) * *

* Definition: * Factors which may influence the appicability of coverage *

*/ public Claim setException(CodeableConceptDt theValue) { myException = theValue; return this; } /** * Gets the value(s) for relationship (Patient relationship to subscriber). * creating it if it does * not exist. Will not return null. * *

* Definition: * The relationship of the patient to the subscriber *

*/ public CodeableConceptDt getRelationship() { if (myRelationship == null) { myRelationship = new CodeableConceptDt(); } return myRelationship; } /** * Gets the value(s) for relationship (Patient relationship to subscriber). * creating it if it does * not exist. Will not return null. * *

* Definition: * The relationship of the patient to the subscriber *

*/ public CodeableConceptDt getRelationshipElement() { if (myRelationship == null) { myRelationship = new CodeableConceptDt(); } return myRelationship; } /** * Sets the value(s) for relationship (Patient relationship to subscriber) * *

* Definition: * The relationship of the patient to the subscriber *

*/ public Claim setRelationship(CodeableConceptDt theValue) { myRelationship = theValue; return this; } /** * Gets the value(s) for school (Name of School). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name of school *

*/ public StringDt getSchool() { if (mySchool == null) { mySchool = new StringDt(); } return mySchool; } /** * Gets the value(s) for school (Name of School). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name of school *

*/ public StringDt getSchoolElement() { if (mySchool == null) { mySchool = new StringDt(); } return mySchool; } /** * Sets the value(s) for school (Name of School) * *

* Definition: * Name of school *

*/ public Claim setSchool(StringDt theValue) { mySchool = theValue; return this; } /** * Sets the value for school (Name of School) * *

* Definition: * Name of school *

*/ public Claim setSchool( String theString) { mySchool = new StringDt(theString); return this; } /** * Gets the value(s) for service (Service Details). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getService() { if (myService == null) { myService = new java.util.ArrayList(); } return myService; } /** * Gets the value(s) for service (Service Details). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getServiceElement() { if (myService == null) { myService = new java.util.ArrayList(); } return myService; } /** * Sets the value(s) for service (Service Details) * *

* Definition: * *

*/ public Claim setService(java.util.List theValue) { myService = theValue; return this; } /** * Adds and returns a new value for service (Service Details) * *

* Definition: * *

*/ public Service addService() { Service newType = new Service(); getService().add(newType); return newType; } /** * Gets the first repetition for service (Service Details), * creating it if it does not already exist. * *

* Definition: * *

*/ public Service getServiceFirstRep() { if (getService().isEmpty()) { return addService(); } return getService().get(0); } /** * Block class for child element: Claim.patient (Patient Details) * *

* Definition: * Patient Details. *

*/ @Block() public static class Patient extends BaseIdentifiableElement implements IResourceBlock { @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Patient name", formalDefinition="The name of the PolicyHolder" ) private HumanNameDt myName; @Child(name="address", type=AddressDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Patient address", formalDefinition="The mailing address, typically home, of the PolicyHolder" ) private AddressDt myAddress; @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Patient date of birth", formalDefinition="The date of birth of the PolicyHolder" ) private DateDt myBirthdate; @Child(name="gender", type=CodingDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Gender", formalDefinition="Gender." ) private CodingDt myGender; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate, myGender); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myAddress, myBirthdate, myGender); } /** * Gets the value(s) for name (Patient name). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the PolicyHolder *

*/ public HumanNameDt getName() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Gets the value(s) for name (Patient name). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the PolicyHolder *

*/ public HumanNameDt getNameElement() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Sets the value(s) for name (Patient name) * *

* Definition: * The name of the PolicyHolder *

*/ public Patient setName(HumanNameDt theValue) { myName = theValue; return this; } /** * Gets the value(s) for address (Patient address). * creating it if it does * not exist. Will not return null. * *

* Definition: * The mailing address, typically home, of the PolicyHolder *

*/ public AddressDt getAddress() { if (myAddress == null) { myAddress = new AddressDt(); } return myAddress; } /** * Gets the value(s) for address (Patient address). * creating it if it does * not exist. Will not return null. * *

* Definition: * The mailing address, typically home, of the PolicyHolder *

*/ public AddressDt getAddressElement() { if (myAddress == null) { myAddress = new AddressDt(); } return myAddress; } /** * Sets the value(s) for address (Patient address) * *

* Definition: * The mailing address, typically home, of the PolicyHolder *

*/ public Patient setAddress(AddressDt theValue) { myAddress = theValue; return this; } /** * Gets the value(s) for birthdate (Patient date of birth). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date of birth of the PolicyHolder *

*/ public DateDt getBirthdate() { if (myBirthdate == null) { myBirthdate = new DateDt(); } return myBirthdate; } /** * Gets the value(s) for birthdate (Patient date of birth). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date of birth of the PolicyHolder *

*/ public DateDt getBirthdateElement() { if (myBirthdate == null) { myBirthdate = new DateDt(); } return myBirthdate; } /** * Sets the value(s) for birthdate (Patient date of birth) * *

* Definition: * The date of birth of the PolicyHolder *

*/ public Patient setBirthdate(DateDt theValue) { myBirthdate = theValue; return this; } /** * Sets the value for birthdate (Patient date of birth) * *

* Definition: * The date of birth of the PolicyHolder *

*/ public Patient setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { myBirthdate = new DateDt(theDate, thePrecision); return this; } /** * Sets the value for birthdate (Patient date of birth) * *

* Definition: * The date of birth of the PolicyHolder *

*/ public Patient setBirthdateWithDayPrecision( Date theDate) { myBirthdate = new DateDt(theDate); return this; } /** * Gets the value(s) for gender (Gender). * creating it if it does * not exist. Will not return null. * *

* Definition: * Gender. *

*/ public CodingDt getGender() { if (myGender == null) { myGender = new CodingDt(); } return myGender; } /** * Gets the value(s) for gender (Gender). * creating it if it does * not exist. Will not return null. * *

* Definition: * Gender. *

*/ public CodingDt getGenderElement() { if (myGender == null) { myGender = new CodingDt(); } return myGender; } /** * Sets the value(s) for gender (Gender) * *

* Definition: * Gender. *

*/ public Patient setGender(CodingDt theValue) { myGender = theValue; return this; } } /** * Block class for child element: Claim.coverage (Insurance or medical plan) * *

* Definition: * Financial instrument by which payment information for health care *

*/ @Block() public static class Coverage extends BaseIdentifiableElement implements IResourceBlock { @Child(name="issuer", order=0, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class }) @Description( shortDefinition="An identifier for the plan issuer", formalDefinition="The program or plan underwriter or payor." ) private ResourceReferenceDt myIssuer; @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Coverage start and end dates", formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." ) private PeriodDt myPeriod; @Child(name="type", type=CodingDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Type of coverage", formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health." ) private CodingDt myType; @Child(name="identifier", type=IdentifierDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="The primary coverage ID", formalDefinition="The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID." ) private IdentifierDt myIdentifier; @Child(name="group", type=IdentifierDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="An identifier for the group", formalDefinition="Todo" ) private IdentifierDt myGroup; @Child(name="plan", type=IdentifierDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="An identifier for the plan", formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." ) private IdentifierDt myPlan; @Child(name="subplan", type=IdentifierDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="An identifier for the subsection of the plan", formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID." ) private IdentifierDt mySubplan; @Child(name="dependent", type=IntegerDt.class, order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="The dependent number", formalDefinition="A unique identifier for a dependent under the coverage." ) private IntegerDt myDependent; @Child(name="sequence", type=IntegerDt.class, order=8, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="The plan instance or sequence counter", formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal." ) private IntegerDt mySequence; @Child(name="subscriber", order=9, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Planholder information", formalDefinition="Th demographics for the individual in whose name the insurance coverage is issued." ) private CoverageSubscriber mySubscriber; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); } /** * Gets the value(s) for issuer (An identifier for the plan issuer). * creating it if it does * not exist. Will not return null. * *

* Definition: * The program or plan underwriter or payor. *

*/ public ResourceReferenceDt getIssuer() { if (myIssuer == null) { myIssuer = new ResourceReferenceDt(); } return myIssuer; } /** * Gets the value(s) for issuer (An identifier for the plan issuer). * creating it if it does * not exist. Will not return null. * *

* Definition: * The program or plan underwriter or payor. *

*/ public ResourceReferenceDt getIssuerElement() { if (myIssuer == null) { myIssuer = new ResourceReferenceDt(); } return myIssuer; } /** * Sets the value(s) for issuer (An identifier for the plan issuer) * *

* Definition: * The program or plan underwriter or payor. *

*/ public Coverage setIssuer(ResourceReferenceDt theValue) { myIssuer = theValue; return this; } /** * Gets the value(s) for period (Coverage start and end dates). * creating it if it does * not exist. Will not return null. * *

* Definition: * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. *

*/ public PeriodDt getPeriod() { if (myPeriod == null) { myPeriod = new PeriodDt(); } return myPeriod; } /** * Gets the value(s) for period (Coverage start and end dates). * creating it if it does * not exist. Will not return null. * *

* Definition: * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. *

*/ public PeriodDt getPeriodElement() { if (myPeriod == null) { myPeriod = new PeriodDt(); } return myPeriod; } /** * Sets the value(s) for period (Coverage start and end dates) * *

* Definition: * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. *

*/ public Coverage setPeriod(PeriodDt theValue) { myPeriod = theValue; return this; } /** * Gets the value(s) for type (Type of coverage). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. *

*/ public CodingDt getType() { if (myType == null) { myType = new CodingDt(); } return myType; } /** * Gets the value(s) for type (Type of coverage). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. *

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

* Definition: * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. *

*/ public Coverage setType(CodingDt theValue) { myType = theValue; return this; } /** * Gets the value(s) for identifier (The primary coverage ID). * creating it if it does * not exist. Will not return null. * *

* Definition: * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Gets the value(s) for identifier (The primary coverage ID). * creating it if it does * not exist. Will not return null. * *

* Definition: * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. *

*/ public IdentifierDt getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier (The primary coverage ID) * *

* Definition: * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. *

*/ public Coverage setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Sets the value for identifier (The primary coverage ID) * *

* Definition: * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. *

*/ public Coverage setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for identifier (The primary coverage ID) * *

* Definition: * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. *

*/ public Coverage setIdentifier( String theSystem, String theValue) { myIdentifier = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for group (An identifier for the group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Todo *

*/ public IdentifierDt getGroup() { if (myGroup == null) { myGroup = new IdentifierDt(); } return myGroup; } /** * Gets the value(s) for group (An identifier for the group). * creating it if it does * not exist. Will not return null. * *

* Definition: * Todo *

*/ public IdentifierDt getGroupElement() { if (myGroup == null) { myGroup = new IdentifierDt(); } return myGroup; } /** * Sets the value(s) for group (An identifier for the group) * *

* Definition: * Todo *

*/ public Coverage setGroup(IdentifierDt theValue) { myGroup = theValue; return this; } /** * Sets the value for group (An identifier for the group) * *

* Definition: * Todo *

*/ public Coverage setGroup( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myGroup = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for group (An identifier for the group) * *

* Definition: * Todo *

*/ public Coverage setGroup( String theSystem, String theValue) { myGroup = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for plan (An identifier for the plan). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. *

*/ public IdentifierDt getPlan() { if (myPlan == null) { myPlan = new IdentifierDt(); } return myPlan; } /** * Gets the value(s) for plan (An identifier for the plan). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. *

*/ public IdentifierDt getPlanElement() { if (myPlan == null) { myPlan = new IdentifierDt(); } return myPlan; } /** * Sets the value(s) for plan (An identifier for the plan) * *

* Definition: * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. *

*/ public Coverage setPlan(IdentifierDt theValue) { myPlan = theValue; return this; } /** * Sets the value for plan (An identifier for the plan) * *

* Definition: * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. *

*/ public Coverage setPlan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myPlan = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for plan (An identifier for the plan) * *

* Definition: * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. *

*/ public Coverage setPlan( String theSystem, String theValue) { myPlan = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for subplan (An identifier for the subsection of the plan). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. *

*/ public IdentifierDt getSubplan() { if (mySubplan == null) { mySubplan = new IdentifierDt(); } return mySubplan; } /** * Gets the value(s) for subplan (An identifier for the subsection of the plan). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. *

*/ public IdentifierDt getSubplanElement() { if (mySubplan == null) { mySubplan = new IdentifierDt(); } return mySubplan; } /** * Sets the value(s) for subplan (An identifier for the subsection of the plan) * *

* Definition: * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. *

*/ public Coverage setSubplan(IdentifierDt theValue) { mySubplan = theValue; return this; } /** * Sets the value for subplan (An identifier for the subsection of the plan) * *

* Definition: * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. *

*/ public Coverage setSubplan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { mySubplan = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for subplan (An identifier for the subsection of the plan) * *

* Definition: * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. *

*/ public Coverage setSubplan( String theSystem, String theValue) { mySubplan = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for dependent (The dependent number). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique identifier for a dependent under the coverage. *

*/ public IntegerDt getDependent() { if (myDependent == null) { myDependent = new IntegerDt(); } return myDependent; } /** * Gets the value(s) for dependent (The dependent number). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique identifier for a dependent under the coverage. *

*/ public IntegerDt getDependentElement() { if (myDependent == null) { myDependent = new IntegerDt(); } return myDependent; } /** * Sets the value(s) for dependent (The dependent number) * *

* Definition: * A unique identifier for a dependent under the coverage. *

*/ public Coverage setDependent(IntegerDt theValue) { myDependent = theValue; return this; } /** * Sets the value for dependent (The dependent number) * *

* Definition: * A unique identifier for a dependent under the coverage. *

*/ public Coverage setDependent( int theInteger) { myDependent = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for sequence (The plan instance or sequence counter). * creating it if it does * not exist. Will not return null. * *

* Definition: * An optional counter for a particular instance of the identified coverage which increments upon each renewal. *

*/ public IntegerDt getSequence() { if (mySequence == null) { mySequence = new IntegerDt(); } return mySequence; } /** * Gets the value(s) for sequence (The plan instance or sequence counter). * creating it if it does * not exist. Will not return null. * *

* Definition: * An optional counter for a particular instance of the identified coverage which increments upon each renewal. *

*/ public IntegerDt getSequenceElement() { if (mySequence == null) { mySequence = new IntegerDt(); } return mySequence; } /** * Sets the value(s) for sequence (The plan instance or sequence counter) * *

* Definition: * An optional counter for a particular instance of the identified coverage which increments upon each renewal. *

*/ public Coverage setSequence(IntegerDt theValue) { mySequence = theValue; return this; } /** * Sets the value for sequence (The plan instance or sequence counter) * *

* Definition: * An optional counter for a particular instance of the identified coverage which increments upon each renewal. *

*/ public Coverage setSequence( int theInteger) { mySequence = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for subscriber (Planholder information). * creating it if it does * not exist. Will not return null. * *

* Definition: * Th demographics for the individual in whose name the insurance coverage is issued. *

*/ public CoverageSubscriber getSubscriber() { if (mySubscriber == null) { mySubscriber = new CoverageSubscriber(); } return mySubscriber; } /** * Gets the value(s) for subscriber (Planholder information). * creating it if it does * not exist. Will not return null. * *

* Definition: * Th demographics for the individual in whose name the insurance coverage is issued. *

*/ public CoverageSubscriber getSubscriberElement() { if (mySubscriber == null) { mySubscriber = new CoverageSubscriber(); } return mySubscriber; } /** * Sets the value(s) for subscriber (Planholder information) * *

* Definition: * Th demographics for the individual in whose name the insurance coverage is issued. *

*/ public Coverage setSubscriber(CoverageSubscriber theValue) { mySubscriber = theValue; return this; } } /** * Block class for child element: Claim.coverage.subscriber (Planholder information) * *

* Definition: * Th demographics for the individual in whose name the insurance coverage is issued. *

*/ @Block() public static class CoverageSubscriber extends BaseIdentifiableElement implements IResourceBlock { @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="PolicyHolder name", formalDefinition="The name of the PolicyHolder" ) private HumanNameDt myName; @Child(name="address", type=AddressDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="PolicyHolder address", formalDefinition="The mailing address, typically home, of the PolicyHolder" ) private AddressDt myAddress; @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="PolicyHolder date of birth", formalDefinition="The date of birth of the PolicyHolder" ) private DateDt myBirthdate; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myAddress, myBirthdate); } /** * Gets the value(s) for name (PolicyHolder name). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the PolicyHolder *

*/ public HumanNameDt getName() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Gets the value(s) for name (PolicyHolder name). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the PolicyHolder *

*/ public HumanNameDt getNameElement() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Sets the value(s) for name (PolicyHolder name) * *

* Definition: * The name of the PolicyHolder *

*/ public CoverageSubscriber setName(HumanNameDt theValue) { myName = theValue; return this; } /** * Gets the value(s) for address (PolicyHolder address). * creating it if it does * not exist. Will not return null. * *

* Definition: * The mailing address, typically home, of the PolicyHolder *

*/ public AddressDt getAddress() { if (myAddress == null) { myAddress = new AddressDt(); } return myAddress; } /** * Gets the value(s) for address (PolicyHolder address). * creating it if it does * not exist. Will not return null. * *

* Definition: * The mailing address, typically home, of the PolicyHolder *

*/ public AddressDt getAddressElement() { if (myAddress == null) { myAddress = new AddressDt(); } return myAddress; } /** * Sets the value(s) for address (PolicyHolder address) * *

* Definition: * The mailing address, typically home, of the PolicyHolder *

*/ public CoverageSubscriber setAddress(AddressDt theValue) { myAddress = theValue; return this; } /** * Gets the value(s) for birthdate (PolicyHolder date of birth). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date of birth of the PolicyHolder *

*/ public DateDt getBirthdate() { if (myBirthdate == null) { myBirthdate = new DateDt(); } return myBirthdate; } /** * Gets the value(s) for birthdate (PolicyHolder date of birth). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date of birth of the PolicyHolder *

*/ public DateDt getBirthdateElement() { if (myBirthdate == null) { myBirthdate = new DateDt(); } return myBirthdate; } /** * Sets the value(s) for birthdate (PolicyHolder date of birth) * *

* Definition: * The date of birth of the PolicyHolder *

*/ public CoverageSubscriber setBirthdate(DateDt theValue) { myBirthdate = theValue; return this; } /** * Sets the value for birthdate (PolicyHolder date of birth) * *

* Definition: * The date of birth of the PolicyHolder *

*/ public CoverageSubscriber setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { myBirthdate = new DateDt(theDate, thePrecision); return this; } /** * Sets the value for birthdate (PolicyHolder date of birth) * *

* Definition: * The date of birth of the PolicyHolder *

*/ public CoverageSubscriber setBirthdateWithDayPrecision( Date theDate) { myBirthdate = new DateDt(theDate); return this; } } /** * Block class for child element: Claim.service (Service Details) * *

* Definition: * *

*/ @Block() public static class Service extends BaseIdentifiableElement implements IResourceBlock { @Child(name="service", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Professional service code", formalDefinition="The code for the professional service provided." ) private CodeableConceptDt myService; @Child(name="instance", type=IntegerDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Service instance", formalDefinition="A service line item." ) private IntegerDt myInstance; @Child(name="fee", type=DecimalDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Professional fee", formalDefinition="" ) private DecimalDt myFee; @Child(name="location", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Service Location", formalDefinition="Code for the oral cavity, tooth, quadrant, sextant or arch." ) private CodeableConceptDt myLocation; @Child(name="surface", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Tooth surface", formalDefinition="Tooth surface(s) involved in the restoration." ) private CodeableConceptDt mySurface; @Child(name="lab", order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Lab Details", formalDefinition="" ) private ServiceLab myLab; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myService, myInstance, myFee, myLocation, mySurface, myLab); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myService, myInstance, myFee, myLocation, mySurface, myLab); } /** * Gets the value(s) for service (Professional service code). * creating it if it does * not exist. Will not return null. * *

* Definition: * The code for the professional service provided. *

*/ public CodeableConceptDt getService() { if (myService == null) { myService = new CodeableConceptDt(); } return myService; } /** * Gets the value(s) for service (Professional service code). * creating it if it does * not exist. Will not return null. * *

* Definition: * The code for the professional service provided. *

*/ public CodeableConceptDt getServiceElement() { if (myService == null) { myService = new CodeableConceptDt(); } return myService; } /** * Sets the value(s) for service (Professional service code) * *

* Definition: * The code for the professional service provided. *

*/ public Service setService(CodeableConceptDt theValue) { myService = theValue; return this; } /** * Gets the value(s) for instance (Service instance). * creating it if it does * not exist. Will not return null. * *

* Definition: * A service line item. *

*/ public IntegerDt getInstance() { if (myInstance == null) { myInstance = new IntegerDt(); } return myInstance; } /** * Gets the value(s) for instance (Service instance). * creating it if it does * not exist. Will not return null. * *

* Definition: * A service line item. *

*/ public IntegerDt getInstanceElement() { if (myInstance == null) { myInstance = new IntegerDt(); } return myInstance; } /** * Sets the value(s) for instance (Service instance) * *

* Definition: * A service line item. *

*/ public Service setInstance(IntegerDt theValue) { myInstance = theValue; return this; } /** * Sets the value for instance (Service instance) * *

* Definition: * A service line item. *

*/ public Service setInstance( int theInteger) { myInstance = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for fee (Professional fee). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public DecimalDt getFee() { if (myFee == null) { myFee = new DecimalDt(); } return myFee; } /** * Gets the value(s) for fee (Professional fee). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public DecimalDt getFeeElement() { if (myFee == null) { myFee = new DecimalDt(); } return myFee; } /** * Sets the value(s) for fee (Professional fee) * *

* Definition: * *

*/ public Service setFee(DecimalDt theValue) { myFee = theValue; return this; } /** * Sets the value for fee (Professional fee) * *

* Definition: * *

*/ public Service setFee( long theValue) { myFee = new DecimalDt(theValue); return this; } /** * Sets the value for fee (Professional fee) * *

* Definition: * *

*/ public Service setFee( double theValue) { myFee = new DecimalDt(theValue); return this; } /** * Sets the value for fee (Professional fee) * *

* Definition: * *

*/ public Service setFee( java.math.BigDecimal theValue) { myFee = new DecimalDt(theValue); return this; } /** * Gets the value(s) for location (Service Location). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code for the oral cavity, tooth, quadrant, sextant or arch. *

*/ public CodeableConceptDt getLocation() { if (myLocation == null) { myLocation = new CodeableConceptDt(); } return myLocation; } /** * Gets the value(s) for location (Service Location). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code for the oral cavity, tooth, quadrant, sextant or arch. *

*/ public CodeableConceptDt getLocationElement() { if (myLocation == null) { myLocation = new CodeableConceptDt(); } return myLocation; } /** * Sets the value(s) for location (Service Location) * *

* Definition: * Code for the oral cavity, tooth, quadrant, sextant or arch. *

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

* Definition: * Tooth surface(s) involved in the restoration. *

*/ public CodeableConceptDt getSurface() { if (mySurface == null) { mySurface = new CodeableConceptDt(); } return mySurface; } /** * Gets the value(s) for surface (Tooth surface). * creating it if it does * not exist. Will not return null. * *

* Definition: * Tooth surface(s) involved in the restoration. *

*/ public CodeableConceptDt getSurfaceElement() { if (mySurface == null) { mySurface = new CodeableConceptDt(); } return mySurface; } /** * Sets the value(s) for surface (Tooth surface) * *

* Definition: * Tooth surface(s) involved in the restoration. *

*/ public Service setSurface(CodeableConceptDt theValue) { mySurface = theValue; return this; } /** * Gets the value(s) for lab (Lab Details). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ServiceLab getLab() { if (myLab == null) { myLab = new ServiceLab(); } return myLab; } /** * Gets the value(s) for lab (Lab Details). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ServiceLab getLabElement() { if (myLab == null) { myLab = new ServiceLab(); } return myLab; } /** * Sets the value(s) for lab (Lab Details) * *

* Definition: * *

*/ public Service setLab(ServiceLab theValue) { myLab = theValue; return this; } } /** * Block class for child element: Claim.service.lab (Lab Details) * *

* Definition: * *

*/ @Block() public static class ServiceLab extends BaseIdentifiableElement implements IResourceBlock { @Child(name="service", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Lab service code", formalDefinition="The code for the lab service provided." ) private CodeableConceptDt myService; @Child(name="fee", type=DecimalDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Lab fee", formalDefinition="The amount to reimbuse for a laboratory service." ) private DecimalDt myFee; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myService, myFee); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myService, myFee); } /** * Gets the value(s) for service (Lab service code). * creating it if it does * not exist. Will not return null. * *

* Definition: * The code for the lab service provided. *

*/ public CodeableConceptDt getService() { if (myService == null) { myService = new CodeableConceptDt(); } return myService; } /** * Gets the value(s) for service (Lab service code). * creating it if it does * not exist. Will not return null. * *

* Definition: * The code for the lab service provided. *

*/ public CodeableConceptDt getServiceElement() { if (myService == null) { myService = new CodeableConceptDt(); } return myService; } /** * Sets the value(s) for service (Lab service code) * *

* Definition: * The code for the lab service provided. *

*/ public ServiceLab setService(CodeableConceptDt theValue) { myService = theValue; return this; } /** * Gets the value(s) for fee (Lab fee). * creating it if it does * not exist. Will not return null. * *

* Definition: * The amount to reimbuse for a laboratory service. *

*/ public DecimalDt getFee() { if (myFee == null) { myFee = new DecimalDt(); } return myFee; } /** * Gets the value(s) for fee (Lab fee). * creating it if it does * not exist. Will not return null. * *

* Definition: * The amount to reimbuse for a laboratory service. *

*/ public DecimalDt getFeeElement() { if (myFee == null) { myFee = new DecimalDt(); } return myFee; } /** * Sets the value(s) for fee (Lab fee) * *

* Definition: * The amount to reimbuse for a laboratory service. *

*/ public ServiceLab setFee(DecimalDt theValue) { myFee = theValue; return this; } /** * Sets the value for fee (Lab fee) * *

* Definition: * The amount to reimbuse for a laboratory service. *

*/ public ServiceLab setFee( long theValue) { myFee = new DecimalDt(theValue); return this; } /** * Sets the value for fee (Lab fee) * *

* Definition: * The amount to reimbuse for a laboratory service. *

*/ public ServiceLab setFee( double theValue) { myFee = new DecimalDt(theValue); return this; } /** * Sets the value for fee (Lab fee) * *

* Definition: * The amount to reimbuse for a laboratory service. *

*/ public ServiceLab setFee( java.math.BigDecimal theValue) { myFee = new DecimalDt(theValue); return this; } } @Override public String getResourceName() { return "Claim"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy