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

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

The newest version!
















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

import java.math.BigDecimal;
import java.net.URI;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

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


/**
 * HAPI/FHIR DocumentReference Resource
 * (infrastructure.documents)
 *
 * 

* Definition: * A reference to a document . *

* *

* Requirements: * *

* *

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

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

* Description:
* Type: token
* Path: DocumentReference.masterIdentifier | DocumentReference.identifier
*

*/ @SearchParamDefinition(name="identifier", path="DocumentReference.masterIdentifier | DocumentReference.identifier", description="", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description:
* Type: token
* Path: DocumentReference.masterIdentifier | DocumentReference.identifier
*

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

* Description:
* Type: reference
* Path: DocumentReference.subject
*

*/ @SearchParamDefinition(name="subject", path="DocumentReference.subject", description="", type="reference" , providesMembershipIn={ @Compartment(name="Patient") , @Compartment(name="RelatedPerson") , @Compartment(name="Practitioner") } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description:
* Type: reference
* Path: DocumentReference.subject
*

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

* Description:
* Type: token
* Path: DocumentReference.type
*

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

* Description:
* Type: token
* Path: DocumentReference.type
*

*/ public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); /** * Search parameter constant for class *

* Description:
* Type: token
* Path: DocumentReference.class
*

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

* Description:
* Type: token
* Path: DocumentReference.class
*

*/ public static final TokenClientParam CLASS = new TokenClientParam(SP_CLASS); /** * Search parameter constant for author *

* Description:
* Type: reference
* Path: DocumentReference.author
*

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

* Description:
* Type: reference
* Path: DocumentReference.author
*

*/ public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); /** * Search parameter constant for custodian *

* Description:
* Type: reference
* Path: DocumentReference.custodian
*

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

* Description:
* Type: reference
* Path: DocumentReference.custodian
*

*/ public static final ReferenceClientParam CUSTODIAN = new ReferenceClientParam(SP_CUSTODIAN); /** * Search parameter constant for authenticator *

* Description:
* Type: reference
* Path: DocumentReference.authenticator
*

*/ @SearchParamDefinition(name="authenticator", path="DocumentReference.authenticator", description="", type="reference" , providesMembershipIn={ @Compartment(name="RelatedPerson") } ) public static final String SP_AUTHENTICATOR = "authenticator"; /** * Fluent Client search parameter constant for authenticator *

* Description:
* Type: reference
* Path: DocumentReference.authenticator
*

*/ public static final ReferenceClientParam AUTHENTICATOR = new ReferenceClientParam(SP_AUTHENTICATOR); /** * Search parameter constant for created *

* Description:
* Type: date
* Path: DocumentReference.created
*

*/ @SearchParamDefinition(name="created", path="DocumentReference.created", description="", type="date" ) public static final String SP_CREATED = "created"; /** * Fluent Client search parameter constant for created *

* Description:
* Type: date
* Path: DocumentReference.created
*

*/ public static final DateClientParam CREATED = new DateClientParam(SP_CREATED); /** * Search parameter constant for indexed *

* Description:
* Type: date
* Path: DocumentReference.indexed
*

*/ @SearchParamDefinition(name="indexed", path="DocumentReference.indexed", description="", type="date" ) public static final String SP_INDEXED = "indexed"; /** * Fluent Client search parameter constant for indexed *

* Description:
* Type: date
* Path: DocumentReference.indexed
*

*/ public static final DateClientParam INDEXED = new DateClientParam(SP_INDEXED); /** * Search parameter constant for status *

* Description:
* Type: token
* Path: DocumentReference.status
*

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

* Description:
* Type: token
* Path: DocumentReference.status
*

*/ public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); /** * Search parameter constant for relatesto *

* Description:
* Type: reference
* Path: DocumentReference.relatesTo.target
*

*/ @SearchParamDefinition(name="relatesto", path="DocumentReference.relatesTo.target", description="", type="reference" ) public static final String SP_RELATESTO = "relatesto"; /** * Fluent Client search parameter constant for relatesto *

* Description:
* Type: reference
* Path: DocumentReference.relatesTo.target
*

*/ public static final ReferenceClientParam RELATESTO = new ReferenceClientParam(SP_RELATESTO); /** * Search parameter constant for relation *

* Description:
* Type: token
* Path: DocumentReference.relatesTo.code
*

*/ @SearchParamDefinition(name="relation", path="DocumentReference.relatesTo.code", description="", type="token" ) public static final String SP_RELATION = "relation"; /** * Fluent Client search parameter constant for relation *

* Description:
* Type: token
* Path: DocumentReference.relatesTo.code
*

*/ public static final TokenClientParam RELATION = new TokenClientParam(SP_RELATION); /** * Search parameter constant for description *

* Description:
* Type: string
* Path: DocumentReference.description
*

*/ @SearchParamDefinition(name="description", path="DocumentReference.description", description="", type="string" ) public static final String SP_DESCRIPTION = "description"; /** * Fluent Client search parameter constant for description *

* Description:
* Type: string
* Path: DocumentReference.description
*

*/ public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); /** * Search parameter constant for securitylabel *

* Description:
* Type: token
* Path: DocumentReference.securityLabel
*

*/ @SearchParamDefinition(name="securitylabel", path="DocumentReference.securityLabel", description="", type="token" ) public static final String SP_SECURITYLABEL = "securitylabel"; /** * Fluent Client search parameter constant for securitylabel *

* Description:
* Type: token
* Path: DocumentReference.securityLabel
*

*/ public static final TokenClientParam SECURITYLABEL = new TokenClientParam(SP_SECURITYLABEL); /** * Search parameter constant for format *

* Description:
* Type: token
* Path: DocumentReference.content.format
*

*/ @SearchParamDefinition(name="format", path="DocumentReference.content.format", description="", type="token" ) public static final String SP_FORMAT = "format"; /** * Fluent Client search parameter constant for format *

* Description:
* Type: token
* Path: DocumentReference.content.format
*

*/ public static final TokenClientParam FORMAT = new TokenClientParam(SP_FORMAT); /** * Search parameter constant for language *

* Description:
* Type: token
* Path: DocumentReference.content.attachment.language
*

*/ @SearchParamDefinition(name="language", path="DocumentReference.content.attachment.language", description="", type="token" ) public static final String SP_LANGUAGE = "language"; /** * Fluent Client search parameter constant for language *

* Description:
* Type: token
* Path: DocumentReference.content.attachment.language
*

*/ public static final TokenClientParam LANGUAGE = new TokenClientParam(SP_LANGUAGE); /** * Search parameter constant for location *

* Description:
* Type: uri
* Path: DocumentReference.content.attachment.url
*

*/ @SearchParamDefinition(name="location", path="DocumentReference.content.attachment.url", description="", type="uri" ) public static final String SP_LOCATION = "location"; /** * Fluent Client search parameter constant for location *

* Description:
* Type: uri
* Path: DocumentReference.content.attachment.url
*

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

* Description:
* Type: token
* Path: DocumentReference.context.event
*

*/ @SearchParamDefinition(name="event", path="DocumentReference.context.event", description="", type="token" ) public static final String SP_EVENT = "event"; /** * Fluent Client search parameter constant for event *

* Description:
* Type: token
* Path: DocumentReference.context.event
*

*/ public static final TokenClientParam EVENT = new TokenClientParam(SP_EVENT); /** * Search parameter constant for period *

* Description:
* Type: date
* Path: DocumentReference.context.period
*

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

* Description:
* Type: date
* Path: DocumentReference.context.period
*

*/ public static final DateClientParam PERIOD = new DateClientParam(SP_PERIOD); /** * Search parameter constant for facility *

* Description:
* Type: token
* Path: DocumentReference.context.facilityType
*

*/ @SearchParamDefinition(name="facility", path="DocumentReference.context.facilityType", description="", type="token" ) public static final String SP_FACILITY = "facility"; /** * Fluent Client search parameter constant for facility *

* Description:
* Type: token
* Path: DocumentReference.context.facilityType
*

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

* Description:
* Type: reference
* Path: DocumentReference.subject
*

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

* Description:
* Type: reference
* Path: DocumentReference.subject
*

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

* Description:
* Type: token
* Path: DocumentReference.context.practiceSetting
*

*/ @SearchParamDefinition(name="setting", path="DocumentReference.context.practiceSetting", description="", type="token" ) public static final String SP_SETTING = "setting"; /** * Fluent Client search parameter constant for setting *

* Description:
* Type: token
* Path: DocumentReference.context.practiceSetting
*

*/ public static final TokenClientParam SETTING = new TokenClientParam(SP_SETTING); /** * Search parameter constant for related-id *

* Description:
* Type: token
* Path: DocumentReference.context.related.identifier
*

*/ @SearchParamDefinition(name="related-id", path="DocumentReference.context.related.identifier", description="", type="token" ) public static final String SP_RELATED_ID = "related-id"; /** * Fluent Client search parameter constant for related-id *

* Description:
* Type: token
* Path: DocumentReference.context.related.identifier
*

*/ public static final TokenClientParam RELATED_ID = new TokenClientParam(SP_RELATED_ID); /** * Search parameter constant for related-ref *

* Description:
* Type: reference
* Path: DocumentReference.context.related.ref
*

*/ @SearchParamDefinition(name="related-ref", path="DocumentReference.context.related.ref", description="", type="reference" ) public static final String SP_RELATED_REF = "related-ref"; /** * Fluent Client search parameter constant for related-ref *

* Description:
* Type: reference
* Path: DocumentReference.context.related.ref
*

*/ public static final ReferenceClientParam RELATED_REF = new ReferenceClientParam(SP_RELATED_REF); /** * Search parameter constant for encounter *

* Description:
* Type: reference
* Path: DocumentReference.context.encounter
*

*/ @SearchParamDefinition(name="encounter", path="DocumentReference.context.encounter", description="", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; /** * Fluent Client search parameter constant for encounter *

* Description:
* Type: reference
* Path: DocumentReference.context.encounter
*

*/ public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); /** * Search parameter constant for relatesto-relation *

* Description: Combination of relation and relatesTo
* Type: composite
* Path: relatesto & relation
*

*/ @SearchParamDefinition(name="relatesto-relation", path="relatesto & relation", description="Combination of relation and relatesTo", type="composite" , compositeOf={ "relatesto", "relation" } ) public static final String SP_RELATESTO_RELATION = "relatesto-relation"; /** * Fluent Client search parameter constant for relatesto-relation *

* Description: Combination of relation and relatesTo
* Type: composite
* Path: relatesto & relation
*

*/ public static final CompositeClientParam RELATESTO_RELATION = new CompositeClientParam(SP_RELATESTO_RELATION); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:authenticator". */ public static final Include INCLUDE_AUTHENTICATOR = new Include("DocumentReference:authenticator"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:author". */ public static final Include INCLUDE_AUTHOR = new Include("DocumentReference:author"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:custodian". */ public static final Include INCLUDE_CUSTODIAN = new Include("DocumentReference:custodian"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:encounter". */ public static final Include INCLUDE_ENCOUNTER = new Include("DocumentReference:encounter"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:patient". */ public static final Include INCLUDE_PATIENT = new Include("DocumentReference:patient"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:related-ref". */ public static final Include INCLUDE_RELATED_REF = new Include("DocumentReference:related-ref"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:relatesto". */ public static final Include INCLUDE_RELATESTO = new Include("DocumentReference:relatesto"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "DocumentReference:subject". */ public static final Include INCLUDE_SUBJECT = new Include("DocumentReference:subject"); @Child(name="masterIdentifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="id", formalDefinition="Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document" ) private IdentifierDt myMasterIdentifier; @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="id", formalDefinition="Other identifiers associated with the document, including version independent identifiers" ) private java.util.List myIdentifier; @Child(name="subject", order=2, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Group.class, ca.uhn.fhir.model.dstu2.resource.Device.class }) @Description( shortDefinition="who.focus", formalDefinition="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)" ) private ResourceReferenceDt mySubject; @Child(name="type", type=CodeableConceptDt.class, order=3, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="class", formalDefinition="Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-c80-doc-typecodes") private CodeableConceptDt myType; @Child(name="class", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="class", formalDefinition="A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type" ) private CodeableConceptDt myClassElement; @Child(name="author", order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class }) @Description( shortDefinition="who.author", formalDefinition="Identifies who is responsible for adding the information to the document" ) private java.util.List myAuthor; @Child(name="custodian", order=6, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Organization.class }) @Description( shortDefinition="", formalDefinition="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document" ) private ResourceReferenceDt myCustodian; @Child(name="authenticator", order=7, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Organization.class }) @Description( shortDefinition="who.witness", formalDefinition="Which person or organization authenticates that this document is valid" ) private ResourceReferenceDt myAuthenticator; @Child(name="created", type=DateTimeDt.class, order=8, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="when.done", formalDefinition="When the document was created" ) private DateTimeDt myCreated; @Child(name="indexed", type=InstantDt.class, order=9, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="when.recorded", formalDefinition="When the document reference was created" ) private InstantDt myIndexed; @Child(name="status", type=CodeDt.class, order=10, min=1, max=1, summary=false, modifier=true) @Description( shortDefinition="status", formalDefinition="The status of this document reference" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/document-reference-status") private BoundCodeDt myStatus; @Child(name="docStatus", type=CodeableConceptDt.class, order=11, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="status", formalDefinition="The status of the underlying document" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/composition-status") private CodeableConceptDt myDocStatus; @Child(name="relatesTo", order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=true) @Description( shortDefinition="", formalDefinition="Relationships that this document has with other document references that already exist" ) private java.util.List myRelatesTo; @Child(name="description", type=StringDt.class, order=13, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Human-readable description of the source document. This is sometimes known as the \"title\"" ) private StringDt myDescription; @Child(name="securityLabel", type=CodeableConceptDt.class, order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to" ) private java.util.List mySecurityLabel; @Child(name="content", order=15, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The document and format referenced. There may be multiple content element repetitions, each with a different format." ) private java.util.List myContent; @Child(name="context", order=16, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The clinical context in which the document was prepared" ) private Context myContext; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMasterIdentifier, myIdentifier, mySubject, myType, myClassElement, myAuthor, myCustodian, myAuthenticator, myCreated, myIndexed, myStatus, myDocStatus, myRelatesTo, myDescription, mySecurityLabel, myContent, myContext); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMasterIdentifier, myIdentifier, mySubject, myType, myClassElement, myAuthor, myCustodian, myAuthenticator, myCreated, myIndexed, myStatus, myDocStatus, myRelatesTo, myDescription, mySecurityLabel, myContent, myContext); } /** * Gets the value(s) for masterIdentifier (id). * creating it if it does * not exist. Will not return null. * *

* Definition: * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document *

*/ public IdentifierDt getMasterIdentifier() { if (myMasterIdentifier == null) { myMasterIdentifier = new IdentifierDt(); } return myMasterIdentifier; } /** * Sets the value(s) for masterIdentifier (id) * *

* Definition: * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document *

*/ public DocumentReference setMasterIdentifier(IdentifierDt theValue) { myMasterIdentifier = theValue; return this; } /** * Gets the value(s) for identifier (id). * creating it if it does * not exist. Will not return null. * *

* Definition: * Other identifiers associated with the document, including version independent identifiers *

*/ public java.util.List getIdentifier() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Sets the value(s) for identifier (id) * *

* Definition: * Other identifiers associated with the document, including version independent identifiers *

*/ public DocumentReference setIdentifier(java.util.List theValue) { myIdentifier = theValue; return this; } /** * Adds and returns a new value for identifier (id) * *

* Definition: * Other identifiers associated with the document, including version independent identifiers *

*/ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Adds a given new value for identifier (id) * *

* Definition: * Other identifiers associated with the document, including version independent identifiers *

* @param theValue The identifier to add (must not be null) */ public DocumentReference 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 (id), * creating it if it does not already exist. * *

* Definition: * Other identifiers associated with the document, including version independent identifiers *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Gets the value(s) for subject (who.focus). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure) *

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

* Definition: * Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure) *

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

* Definition: * Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced. *

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

* Definition: * Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced. *

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

* Definition: * A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type *

*/ public CodeableConceptDt getClassElement() { if (myClassElement == null) { myClassElement = new CodeableConceptDt(); } return myClassElement; } /** * Sets the value(s) for class (class) * *

* Definition: * A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type *

*/ public DocumentReference setClassElement(CodeableConceptDt theValue) { myClassElement = theValue; return this; } /** * Gets the value(s) for author (who.author). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies who is responsible for adding the information to the document *

*/ public java.util.List getAuthor() { if (myAuthor == null) { myAuthor = new java.util.ArrayList(); } return myAuthor; } /** * Sets the value(s) for author (who.author) * *

* Definition: * Identifies who is responsible for adding the information to the document *

*/ public DocumentReference setAuthor(java.util.List theValue) { myAuthor = theValue; return this; } /** * Adds and returns a new value for author (who.author) * *

* Definition: * Identifies who is responsible for adding the information to the document *

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

* Definition: * Identifies the organization or group who is responsible for ongoing maintenance of and access to the document *

*/ public ResourceReferenceDt getCustodian() { if (myCustodian == null) { myCustodian = new ResourceReferenceDt(); } return myCustodian; } /** * Sets the value(s) for custodian () * *

* Definition: * Identifies the organization or group who is responsible for ongoing maintenance of and access to the document *

*/ public DocumentReference setCustodian(ResourceReferenceDt theValue) { myCustodian = theValue; return this; } /** * Gets the value(s) for authenticator (who.witness). * creating it if it does * not exist. Will not return null. * *

* Definition: * Which person or organization authenticates that this document is valid *

*/ public ResourceReferenceDt getAuthenticator() { if (myAuthenticator == null) { myAuthenticator = new ResourceReferenceDt(); } return myAuthenticator; } /** * Sets the value(s) for authenticator (who.witness) * *

* Definition: * Which person or organization authenticates that this document is valid *

*/ public DocumentReference setAuthenticator(ResourceReferenceDt theValue) { myAuthenticator = theValue; return this; } /** * Gets the value(s) for created (when.done). * creating it if it does * not exist. Will not return null. * *

* Definition: * When the document was created *

*/ public DateTimeDt getCreatedElement() { if (myCreated == null) { myCreated = new DateTimeDt(); } return myCreated; } /** * Gets the value(s) for created (when.done). * creating it if it does * not exist. This method may return null. * *

* Definition: * When the document was created *

*/ public Date getCreated() { return getCreatedElement().getValue(); } /** * Sets the value(s) for created (when.done) * *

* Definition: * When the document was created *

*/ public DocumentReference setCreated(DateTimeDt theValue) { myCreated = theValue; return this; } /** * Sets the value for created (when.done) * *

* Definition: * When the document was created *

*/ public DocumentReference setCreatedWithSecondsPrecision( Date theDate) { myCreated = new DateTimeDt(theDate); return this; } /** * Sets the value for created (when.done) * *

* Definition: * When the document was created *

*/ public DocumentReference setCreated( Date theDate, TemporalPrecisionEnum thePrecision) { myCreated = new DateTimeDt(theDate, thePrecision); return this; } /** * Gets the value(s) for indexed (when.recorded). * creating it if it does * not exist. Will not return null. * *

* Definition: * When the document reference was created *

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

* Definition: * When the document reference was created *

*/ public Date getIndexed() { return getIndexedElement().getValue(); } /** * Sets the value(s) for indexed (when.recorded) * *

* Definition: * When the document reference was created *

*/ public DocumentReference setIndexed(InstantDt theValue) { myIndexed = theValue; return this; } /** * Sets the value for indexed (when.recorded) * *

* Definition: * When the document reference was created *

*/ public DocumentReference setIndexedWithMillisPrecision( Date theDate) { myIndexed = new InstantDt(theDate); return this; } /** * Sets the value for indexed (when.recorded) * *

* Definition: * When the document reference was created *

*/ public DocumentReference setIndexed( Date theDate, TemporalPrecisionEnum thePrecision) { myIndexed = new InstantDt(theDate, thePrecision); return this; } /** * Gets the value(s) for status (status). * creating it if it does * not exist. Will not return null. * *

* Definition: * The status of this document reference *

*/ public BoundCodeDt getStatusElement() { if (myStatus == null) { myStatus = new BoundCodeDt(DocumentReferenceStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Gets the value(s) for status (status). * creating it if it does * not exist. This method may return null. * *

* Definition: * The status of this document reference *

*/ public String getStatus() { return getStatusElement().getValue(); } /** * Sets the value(s) for status (status) * *

* Definition: * The status of this document reference *

*/ public DocumentReference setStatus(BoundCodeDt theValue) { myStatus = theValue; return this; } /** * Sets the value(s) for status (status) * *

* Definition: * The status of this document reference *

*/ public DocumentReference setStatus(DocumentReferenceStatusEnum theValue) { setStatus(new BoundCodeDt(DocumentReferenceStatusEnum.VALUESET_BINDER, theValue)); /* getStatusElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for docStatus (status). * creating it if it does * not exist. Will not return null. * *

* Definition: * The status of the underlying document *

*/ public CodeableConceptDt getDocStatus() { if (myDocStatus == null) { myDocStatus = new CodeableConceptDt(); } return myDocStatus; } /** * Sets the value(s) for docStatus (status) * *

* Definition: * The status of the underlying document *

*/ public DocumentReference setDocStatus(CodeableConceptDt theValue) { myDocStatus = theValue; return this; } /** * Gets the value(s) for relatesTo (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Relationships that this document has with other document references that already exist *

*/ public java.util.List getRelatesTo() { if (myRelatesTo == null) { myRelatesTo = new java.util.ArrayList(); } return myRelatesTo; } /** * Sets the value(s) for relatesTo () * *

* Definition: * Relationships that this document has with other document references that already exist *

*/ public DocumentReference setRelatesTo(java.util.List theValue) { myRelatesTo = theValue; return this; } /** * Adds and returns a new value for relatesTo () * *

* Definition: * Relationships that this document has with other document references that already exist *

*/ public RelatesTo addRelatesTo() { RelatesTo newType = new RelatesTo(); getRelatesTo().add(newType); return newType; } /** * Adds a given new value for relatesTo () * *

* Definition: * Relationships that this document has with other document references that already exist *

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

* Definition: * Relationships that this document has with other document references that already exist *

*/ public RelatesTo getRelatesToFirstRep() { if (getRelatesTo().isEmpty()) { return addRelatesTo(); } return getRelatesTo().get(0); } /** * Gets the value(s) for description (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Human-readable description of the source document. This is sometimes known as the \"title\" *

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

* Definition: * Human-readable description of the source document. This is sometimes known as the \"title\" *

*/ public String getDescription() { return getDescriptionElement().getValue(); } /** * Sets the value(s) for description () * *

* Definition: * Human-readable description of the source document. This is sometimes known as the \"title\" *

*/ public DocumentReference setDescription(StringDt theValue) { myDescription = theValue; return this; } /** * Sets the value for description () * *

* Definition: * Human-readable description of the source document. This is sometimes known as the \"title\" *

*/ public DocumentReference setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for securityLabel (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to *

*/ public java.util.List getSecurityLabel() { if (mySecurityLabel == null) { mySecurityLabel = new java.util.ArrayList(); } return mySecurityLabel; } /** * Sets the value(s) for securityLabel () * *

* Definition: * A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to *

*/ public DocumentReference setSecurityLabel(java.util.List theValue) { mySecurityLabel = theValue; return this; } /** * Adds and returns a new value for securityLabel () * *

* Definition: * A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to *

*/ public CodeableConceptDt addSecurityLabel() { CodeableConceptDt newType = new CodeableConceptDt(); getSecurityLabel().add(newType); return newType; } /** * Adds a given new value for securityLabel () * *

* Definition: * A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to *

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

* Definition: * A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to *

*/ public CodeableConceptDt getSecurityLabelFirstRep() { if (getSecurityLabel().isEmpty()) { return addSecurityLabel(); } return getSecurityLabel().get(0); } /** * Gets the value(s) for content (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The document and format referenced. There may be multiple content element repetitions, each with a different format. *

*/ public java.util.List getContent() { if (myContent == null) { myContent = new java.util.ArrayList(); } return myContent; } /** * Sets the value(s) for content () * *

* Definition: * The document and format referenced. There may be multiple content element repetitions, each with a different format. *

*/ public DocumentReference setContent(java.util.List theValue) { myContent = theValue; return this; } /** * Adds and returns a new value for content () * *

* Definition: * The document and format referenced. There may be multiple content element repetitions, each with a different format. *

*/ public Content addContent() { Content newType = new Content(); getContent().add(newType); return newType; } /** * Adds a given new value for content () * *

* Definition: * The document and format referenced. There may be multiple content element repetitions, each with a different format. *

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

* Definition: * The document and format referenced. There may be multiple content element repetitions, each with a different format. *

*/ public Content getContentFirstRep() { if (getContent().isEmpty()) { return addContent(); } return getContent().get(0); } /** * Gets the value(s) for context (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The clinical context in which the document was prepared *

*/ public Context getContext() { if (myContext == null) { myContext = new Context(); } return myContext; } /** * Sets the value(s) for context () * *

* Definition: * The clinical context in which the document was prepared *

*/ public DocumentReference setContext(Context theValue) { myContext = theValue; return this; } /** * Block class for child element: DocumentReference.relatesTo () * *

* Definition: * Relationships that this document has with other document references that already exist *

*/ @Block() public static class RelatesTo extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The type of relationship that this document has with anther document" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/document-relationship-type") private BoundCodeDt myCode; @Child(name="target", order=1, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.DocumentReference.class }) @Description( shortDefinition="", formalDefinition="The target document of this relationship" ) private ResourceReferenceDt myTarget; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myTarget); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myTarget); } /** * Gets the value(s) for code (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of relationship that this document has with anther document *

*/ public BoundCodeDt getCodeElement() { if (myCode == null) { myCode = new BoundCodeDt(DocumentRelationshipTypeEnum.VALUESET_BINDER); } return myCode; } /** * Gets the value(s) for code (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The type of relationship that this document has with anther document *

*/ public String getCode() { return getCodeElement().getValue(); } /** * Sets the value(s) for code () * *

* Definition: * The type of relationship that this document has with anther document *

*/ public RelatesTo setCode(BoundCodeDt theValue) { myCode = theValue; return this; } /** * Sets the value(s) for code () * *

* Definition: * The type of relationship that this document has with anther document *

*/ public RelatesTo setCode(DocumentRelationshipTypeEnum theValue) { setCode(new BoundCodeDt(DocumentRelationshipTypeEnum.VALUESET_BINDER, theValue)); /* getCodeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for target (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The target document of this relationship *

*/ public ResourceReferenceDt getTarget() { if (myTarget == null) { myTarget = new ResourceReferenceDt(); } return myTarget; } /** * Sets the value(s) for target () * *

* Definition: * The target document of this relationship *

*/ public RelatesTo setTarget(ResourceReferenceDt theValue) { myTarget = theValue; return this; } } /** * Block class for child element: DocumentReference.content () * *

* Definition: * The document and format referenced. There may be multiple content element repetitions, each with a different format. *

*/ @Block() public static class Content extends BaseIdentifiableElement implements IResourceBlock { @Child(name="attachment", type=AttachmentDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The document or url of the document along with critical metadata to prove content has integrity." ) private AttachmentDt myAttachment; @Child(name="format", type=CodingDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-formatcodes") private java.util.List myFormat; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myAttachment, myFormat); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myAttachment, myFormat); } /** * Gets the value(s) for attachment (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The document or url of the document along with critical metadata to prove content has integrity. *

*/ public AttachmentDt getAttachment() { if (myAttachment == null) { myAttachment = new AttachmentDt(); } return myAttachment; } /** * Sets the value(s) for attachment () * *

* Definition: * The document or url of the document along with critical metadata to prove content has integrity. *

*/ public Content setAttachment(AttachmentDt theValue) { myAttachment = theValue; return this; } /** * Gets the value(s) for format (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType *

*/ public java.util.List getFormat() { if (myFormat == null) { myFormat = new java.util.ArrayList(); } return myFormat; } /** * Sets the value(s) for format () * *

* Definition: * An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType *

*/ public Content setFormat(java.util.List theValue) { myFormat = theValue; return this; } /** * Adds and returns a new value for format () * *

* Definition: * An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType *

*/ public CodingDt addFormat() { CodingDt newType = new CodingDt(); getFormat().add(newType); return newType; } /** * Adds a given new value for format () * *

* Definition: * An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType *

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

* Definition: * An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType *

*/ public CodingDt getFormatFirstRep() { if (getFormat().isEmpty()) { return addFormat(); } return getFormat().get(0); } } /** * Block class for child element: DocumentReference.context () * *

* Definition: * The clinical context in which the document was prepared *

*/ @Block() public static class Context extends BaseIdentifiableElement implements IResourceBlock { @Child(name="encounter", order=0, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Encounter.class }) @Description( shortDefinition="context", formalDefinition="Describes the clinical encounter or type of care that the document content is associated with" ) private ResourceReferenceDt myEncounter; @Child(name="event", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act" ) private java.util.List myEvent; @Child(name="period", type=PeriodDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The time period over which the service that is described by the document was provided" ) private PeriodDt myPeriod; @Child(name="facilityType", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The kind of facility where the patient was seen" ) private CodeableConceptDt myFacilityType; @Child(name="practiceSetting", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty" ) private CodeableConceptDt myPracticeSetting; @Child(name="sourcePatientInfo", order=5, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Patient.class }) @Description( shortDefinition="", formalDefinition="The Patient Information as known when the document was published. May be a reference to a version specific, or contained" ) private ResourceReferenceDt mySourcePatientInfo; @Child(name="related", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Related identifiers or resources associated with the DocumentReference." ) private java.util.List myRelated; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEncounter, myEvent, myPeriod, myFacilityType, myPracticeSetting, mySourcePatientInfo, myRelated); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEncounter, myEvent, myPeriod, myFacilityType, myPracticeSetting, mySourcePatientInfo, myRelated); } /** * Gets the value(s) for encounter (context). * creating it if it does * not exist. Will not return null. * *

* Definition: * Describes the clinical encounter or type of care that the document content is associated with *

*/ public ResourceReferenceDt getEncounter() { if (myEncounter == null) { myEncounter = new ResourceReferenceDt(); } return myEncounter; } /** * Sets the value(s) for encounter (context) * *

* Definition: * Describes the clinical encounter or type of care that the document content is associated with *

*/ public Context setEncounter(ResourceReferenceDt theValue) { myEncounter = theValue; return this; } /** * Gets the value(s) for event (). * creating it if it does * not exist. Will not return null. * *

* Definition: * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act *

*/ public java.util.List getEvent() { if (myEvent == null) { myEvent = new java.util.ArrayList(); } return myEvent; } /** * Sets the value(s) for event () * *

* Definition: * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act *

*/ public Context setEvent(java.util.List theValue) { myEvent = theValue; return this; } /** * Adds and returns a new value for event () * *

* Definition: * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act *

*/ public CodeableConceptDt addEvent() { CodeableConceptDt newType = new CodeableConceptDt(); getEvent().add(newType); return newType; } /** * Adds a given new value for event () * *

* Definition: * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act *

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

* Definition: * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act *

*/ public CodeableConceptDt getEventFirstRep() { if (getEvent().isEmpty()) { return addEvent(); } return getEvent().get(0); } /** * Gets the value(s) for period (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The time period over which the service that is described by the document was provided *

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

* Definition: * The time period over which the service that is described by the document was provided *

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

* Definition: * The kind of facility where the patient was seen *

*/ public CodeableConceptDt getFacilityType() { if (myFacilityType == null) { myFacilityType = new CodeableConceptDt(); } return myFacilityType; } /** * Sets the value(s) for facilityType () * *

* Definition: * The kind of facility where the patient was seen *

*/ public Context setFacilityType(CodeableConceptDt theValue) { myFacilityType = theValue; return this; } /** * Gets the value(s) for practiceSetting (). * creating it if it does * not exist. Will not return null. * *

* Definition: * This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty *

*/ public CodeableConceptDt getPracticeSetting() { if (myPracticeSetting == null) { myPracticeSetting = new CodeableConceptDt(); } return myPracticeSetting; } /** * Sets the value(s) for practiceSetting () * *

* Definition: * This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty *

*/ public Context setPracticeSetting(CodeableConceptDt theValue) { myPracticeSetting = theValue; return this; } /** * Gets the value(s) for sourcePatientInfo (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The Patient Information as known when the document was published. May be a reference to a version specific, or contained *

*/ public ResourceReferenceDt getSourcePatientInfo() { if (mySourcePatientInfo == null) { mySourcePatientInfo = new ResourceReferenceDt(); } return mySourcePatientInfo; } /** * Sets the value(s) for sourcePatientInfo () * *

* Definition: * The Patient Information as known when the document was published. May be a reference to a version specific, or contained *

*/ public Context setSourcePatientInfo(ResourceReferenceDt theValue) { mySourcePatientInfo = theValue; return this; } /** * Gets the value(s) for related (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Related identifiers or resources associated with the DocumentReference. *

*/ public java.util.List getRelated() { if (myRelated == null) { myRelated = new java.util.ArrayList(); } return myRelated; } /** * Sets the value(s) for related () * *

* Definition: * Related identifiers or resources associated with the DocumentReference. *

*/ public Context setRelated(java.util.List theValue) { myRelated = theValue; return this; } /** * Adds and returns a new value for related () * *

* Definition: * Related identifiers or resources associated with the DocumentReference. *

*/ public ContextRelated addRelated() { ContextRelated newType = new ContextRelated(); getRelated().add(newType); return newType; } /** * Adds a given new value for related () * *

* Definition: * Related identifiers or resources associated with the DocumentReference. *

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

* Definition: * Related identifiers or resources associated with the DocumentReference. *

*/ public ContextRelated getRelatedFirstRep() { if (getRelated().isEmpty()) { return addRelated(); } return getRelated().get(0); } } /** * Block class for child element: DocumentReference.context.related () * *

* Definition: * Related identifiers or resources associated with the DocumentReference. *

*/ @Block() public static class ContextRelated extends BaseIdentifiableElement implements IResourceBlock { @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing." ) private IdentifierDt myIdentifier; @Child(name="ref", order=1, min=0, max=1, summary=false, modifier=false, type={ IResource.class }) @Description( shortDefinition="", formalDefinition="Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing." ) private ResourceReferenceDt myRef; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myRef); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRef); } /** * Gets the value(s) for identifier (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing. *

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

* Definition: * Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing. *

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

* Definition: * Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing. *

*/ public ResourceReferenceDt getRef() { if (myRef == null) { myRef = new ResourceReferenceDt(); } return myRef; } /** * Sets the value(s) for ref () * *

* Definition: * Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing. *

*/ public ContextRelated setRef(ResourceReferenceDt theValue) { myRef = theValue; return this; } } @Override public String getResourceName() { return "DocumentReference"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy