ca.uhn.fhir.model.dstu2.resource.Composition Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu2.resource;
import java.math.BigDecimal;
import java.net.URI;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;
import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
import ca.uhn.fhir.model.dstu2.composite.AddressDt;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
import ca.uhn.fhir.model.dstu2.resource.Appointment;
import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.resource.BodySite;
import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.CarePlan;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Claim;
import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Composition;
import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu2.resource.Condition;
import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.Contract;
import ca.uhn.fhir.model.dstu2.resource.Coverage;
import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
import ca.uhn.fhir.model.dstu2.resource.Encounter;
import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Goal;
import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Group;
import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu2.resource.Immunization;
import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Location;
import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
import ca.uhn.fhir.model.dstu2.resource.Media;
import ca.uhn.fhir.model.dstu2.resource.Medication;
import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Order;
import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Person;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.resource.Procedure;
import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.composite.RatioDt;
import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu2.resource.Schedule;
import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
import ca.uhn.fhir.model.dstu2.resource.Slot;
import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Specimen;
import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Substance;
import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.composite.TimingDt;
import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.AgeDt;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.TimeDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR Composition Resource
* ()
*
*
* Definition:
* A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained
*
*
*
* Requirements:
* To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/Composition
*
*
*/
@ResourceDef(name="Composition", profile="http://hl7.org/fhir/profiles/Composition", id="composition")
public class Composition extends ca.uhn.fhir.model.dstu2.resource.BaseResource
implements IResource
{
/**
* Search parameter constant for type
*
* Description:
* Type: token
* Path: Composition.type
*
*/
@SearchParamDefinition(name="type", path="Composition.type", description="", type="token"
)
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description:
* Type: token
* Path: Composition.type
*
*/
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
/**
* Search parameter constant for class
*
* Description:
* Type: token
* Path: Composition.class
*
*/
@SearchParamDefinition(name="class", path="Composition.class", description="", type="token"
)
public static final String SP_CLASS = "class";
/**
* Fluent Client search parameter constant for class
*
* Description:
* Type: token
* Path: Composition.class
*
*/
public static final TokenClientParam CLASS = new TokenClientParam(SP_CLASS);
/**
* Search parameter constant for date
*
* Description:
* Type: date
* Path: Composition.date
*
*/
@SearchParamDefinition(name="date", path="Composition.date", description="", type="date"
)
public static final String SP_DATE = "date";
/**
* Fluent Client search parameter constant for date
*
* Description:
* Type: date
* Path: Composition.date
*
*/
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
/**
* Search parameter constant for subject
*
* Description:
* Type: reference
* Path: Composition.subject
*
*/
@SearchParamDefinition(name="subject", path="Composition.subject", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Patient") , @Compartment(name="Practitioner") }
)
public static final String SP_SUBJECT = "subject";
/**
* Fluent Client search parameter constant for subject
*
* Description:
* Type: reference
* Path: Composition.subject
*
*/
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
/**
* Search parameter constant for author
*
* Description:
* Type: reference
* Path: Composition.author
*
*/
@SearchParamDefinition(name="author", path="Composition.author", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Patient") , @Compartment(name="RelatedPerson") , @Compartment(name="Practitioner") , @Compartment(name="Device") }
)
public static final String SP_AUTHOR = "author";
/**
* Fluent Client search parameter constant for author
*
* Description:
* Type: reference
* Path: Composition.author
*
*/
public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR);
/**
* Search parameter constant for attester
*
* Description:
* Type: reference
* Path: Composition.attester.party
*
*/
@SearchParamDefinition(name="attester", path="Composition.attester.party", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Patient") , @Compartment(name="Practitioner") }
)
public static final String SP_ATTESTER = "attester";
/**
* Fluent Client search parameter constant for attester
*
* Description:
* Type: reference
* Path: Composition.attester.party
*
*/
public static final ReferenceClientParam ATTESTER = new ReferenceClientParam(SP_ATTESTER);
/**
* Search parameter constant for context
*
* Description:
* Type: token
* Path: Composition.event.code
*
*/
@SearchParamDefinition(name="context", path="Composition.event.code", description="", type="token"
)
public static final String SP_CONTEXT = "context";
/**
* Fluent Client search parameter constant for context
*
* Description:
* Type: token
* Path: Composition.event.code
*
*/
public static final TokenClientParam CONTEXT = new TokenClientParam(SP_CONTEXT);
/**
* Search parameter constant for section
*
* Description:
* Type: token
* Path: Composition.section.code
*
*/
@SearchParamDefinition(name="section", path="Composition.section.code", description="", type="token"
)
public static final String SP_SECTION = "section";
/**
* Fluent Client search parameter constant for section
*
* Description:
* Type: token
* Path: Composition.section.code
*
*/
public static final TokenClientParam SECTION = new TokenClientParam(SP_SECTION);
/**
* Search parameter constant for entry
*
* Description:
* Type: reference
* Path: Composition.section.entry
*
*/
@SearchParamDefinition(name="entry", path="Composition.section.entry", description="", type="reference"
)
public static final String SP_ENTRY = "entry";
/**
* Fluent Client search parameter constant for entry
*
* Description:
* Type: reference
* Path: Composition.section.entry
*
*/
public static final ReferenceClientParam ENTRY = new ReferenceClientParam(SP_ENTRY);
/**
* Search parameter constant for identifier
*
* Description:
* Type: token
* Path: Composition.identifier
*
*/
@SearchParamDefinition(name="identifier", path="Composition.identifier", description="", type="token"
)
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description:
* Type: token
* Path: Composition.identifier
*
*/
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter constant for title
*
* Description:
* Type: string
* Path: Composition.title
*
*/
@SearchParamDefinition(name="title", path="Composition.title", description="", type="string"
)
public static final String SP_TITLE = "title";
/**
* Fluent Client search parameter constant for title
*
* Description:
* Type: string
* Path: Composition.title
*
*/
public static final StringClientParam TITLE = new StringClientParam(SP_TITLE);
/**
* Search parameter constant for status
*
* Description:
* Type: token
* Path: Composition.status
*
*/
@SearchParamDefinition(name="status", path="Composition.status", description="", type="token"
)
public static final String SP_STATUS = "status";
/**
* Fluent Client search parameter constant for status
*
* Description:
* Type: token
* Path: Composition.status
*
*/
public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
/**
* Search parameter constant for confidentiality
*
* Description:
* Type: token
* Path: Composition.confidentiality
*
*/
@SearchParamDefinition(name="confidentiality", path="Composition.confidentiality", description="", type="token"
)
public static final String SP_CONFIDENTIALITY = "confidentiality";
/**
* Fluent Client search parameter constant for confidentiality
*
* Description:
* Type: token
* Path: Composition.confidentiality
*
*/
public static final TokenClientParam CONFIDENTIALITY = new TokenClientParam(SP_CONFIDENTIALITY);
/**
* Search parameter constant for period
*
* Description:
* Type: date
* Path: Composition.event.period
*
*/
@SearchParamDefinition(name="period", path="Composition.event.period", description="", type="date"
)
public static final String SP_PERIOD = "period";
/**
* Fluent Client search parameter constant for period
*
* Description:
* Type: date
* Path: Composition.event.period
*
*/
public static final DateClientParam PERIOD = new DateClientParam(SP_PERIOD);
/**
* Search parameter constant for patient
*
* Description:
* Type: reference
* Path: Composition.subject
*
*/
@SearchParamDefinition(name="patient", path="Composition.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: Composition.subject
*
*/
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
/**
* Search parameter constant for encounter
*
* Description:
* Type: reference
* Path: Composition.encounter
*
*/
@SearchParamDefinition(name="encounter", path="Composition.encounter", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Encounter") }
)
public static final String SP_ENCOUNTER = "encounter";
/**
* Fluent Client search parameter constant for encounter
*
* Description:
* Type: reference
* Path: Composition.encounter
*
*/
public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Composition:attester".
*/
public static final Include INCLUDE_ATTESTER = new Include("Composition:attester");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Composition:author".
*/
public static final Include INCLUDE_AUTHOR = new Include("Composition:author");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Composition:encounter".
*/
public static final Include INCLUDE_ENCOUNTER = new Include("Composition:encounter");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Composition:entry".
*/
public static final Include INCLUDE_ENTRY = new Include("Composition:entry");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Composition:patient".
*/
public static final Include INCLUDE_PATIENT = new Include("Composition:patient");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Composition:subject".
*/
public static final Include INCLUDE_SUBJECT = new Include("Composition:subject");
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time"
)
private IdentifierDt myIdentifier;
@Child(name="date", type=DateTimeDt.class, order=1, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The composition editing time, when the composition was last logically changed by the author"
)
private DateTimeDt myDate;
@Child(name="type", type=CodeableConceptDt.class, order=2, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-doc-typecodes")
private CodeableConceptDt myType;
@Child(name="class", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type"
)
private CodeableConceptDt myClassElement;
@Child(name="title", type=StringDt.class, order=4, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Official human-readable label for the composition"
)
private StringDt myTitle;
@Child(name="status", type=CodeDt.class, order=5, min=1, max=1, summary=true, modifier=true)
@Description(
shortDefinition="",
formalDefinition="The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/composition-status")
private BoundCodeDt myStatus;
@Child(name="confidentiality", type=CodeDt.class, order=6, min=0, max=1, summary=true, modifier=true)
@Description(
shortDefinition="",
formalDefinition="The code specifying the level of confidentiality of the Composition"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/v3-Confidentiality")
private CodeDt myConfidentiality;
@Child(name="subject", order=7, min=1, max=1, summary=true, modifier=false, type={
IResource.class
})
@Description(
shortDefinition="",
formalDefinition="Who or what the composition is about. The composition 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 livestock, or a set of patients that share a common exposure)"
)
private ResourceReferenceDt mySubject;
@Child(name="author", order=8, min=1, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.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="",
formalDefinition="Identifies who is responsible for the information in the composition, not necessarily who typed it in."
)
private java.util.List myAuthor;
@Child(name="attester", order=9, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A participant who has attested to the accuracy of the composition/document"
)
private java.util.List myAttester;
@Child(name="custodian", order=10, min=0, max=1, summary=true, 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 composition/document information"
)
private ResourceReferenceDt myCustodian;
@Child(name="event", order=11, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The clinical service, such as a colonoscopy or an appendectomy, being documented"
)
private java.util.List myEvent;
@Child(name="encounter", order=12, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Encounter.class
})
@Description(
shortDefinition="",
formalDefinition="Describes the clinical encounter or type of care this documentation is associated with."
)
private ResourceReferenceDt myEncounter;
@Child(name="section", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The root of the sections that make up the composition"
)
private java.util.List mySection;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDate, myType, myClassElement, myTitle, myStatus, myConfidentiality, mySubject, myAuthor, myAttester, myCustodian, myEvent, myEncounter, mySection);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDate, myType, myClassElement, myTitle, myStatus, myConfidentiality, mySubject, myAuthor, myAttester, myCustodian, myEvent, myEncounter, mySection);
}
/**
* Gets the value(s) for identifier ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time
*
*/
public IdentifierDt getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new IdentifierDt();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier ()
*
*
* Definition:
* Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time
*
*/
public Composition setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Gets the value(s) for date ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The composition editing time, when the composition was last logically changed by the author
*
*/
public DateTimeDt getDateElement() {
if (myDate == null) {
myDate = new DateTimeDt();
}
return myDate;
}
/**
* Gets the value(s) for date ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The composition editing time, when the composition was last logically changed by the author
*
*/
public Date getDate() {
return getDateElement().getValue();
}
/**
* Sets the value(s) for date ()
*
*
* Definition:
* The composition editing time, when the composition was last logically changed by the author
*
*/
public Composition setDate(DateTimeDt theValue) {
myDate = theValue;
return this;
}
/**
* Sets the value for date ()
*
*
* Definition:
* The composition editing time, when the composition was last logically changed by the author
*
*/
public Composition setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
return this;
}
/**
* Sets the value for date ()
*
*
* Definition:
* The composition editing time, when the composition was last logically changed by the author
*
*/
public Composition setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition
*
*/
public CodeableConceptDt getType() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition
*
*/
public Composition setType(CodeableConceptDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for class ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type
*
*/
public CodeableConceptDt getClassElement() {
if (myClassElement == null) {
myClassElement = new CodeableConceptDt();
}
return myClassElement;
}
/**
* Sets the value(s) for class ()
*
*
* Definition:
* A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type
*
*/
public Composition setClassElement(CodeableConceptDt theValue) {
myClassElement = theValue;
return this;
}
/**
* Gets the value(s) for title ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Official human-readable label for the composition
*
*/
public StringDt getTitleElement() {
if (myTitle == null) {
myTitle = new StringDt();
}
return myTitle;
}
/**
* Gets the value(s) for title ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Official human-readable label for the composition
*
*/
public String getTitle() {
return getTitleElement().getValue();
}
/**
* Sets the value(s) for title ()
*
*
* Definition:
* Official human-readable label for the composition
*
*/
public Composition setTitle(StringDt theValue) {
myTitle = theValue;
return this;
}
/**
* Sets the value for title ()
*
*
* Definition:
* Official human-readable label for the composition
*
*/
public Composition setTitle( String theString) {
myTitle = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(CompositionStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
* The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
*
*/
public Composition setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
* The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
*
*/
public Composition setStatus(CompositionStatusEnum theValue) {
setStatus(new BoundCodeDt(CompositionStatusEnum.VALUESET_BINDER, theValue));
/*
getStatusElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for confidentiality ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The code specifying the level of confidentiality of the Composition
*
*/
public CodeDt getConfidentialityElement() {
if (myConfidentiality == null) {
myConfidentiality = new CodeDt();
}
return myConfidentiality;
}
/**
* Gets the value(s) for confidentiality ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The code specifying the level of confidentiality of the Composition
*
*/
public String getConfidentiality() {
return getConfidentialityElement().getValue();
}
/**
* Sets the value(s) for confidentiality ()
*
*
* Definition:
* The code specifying the level of confidentiality of the Composition
*
*/
public Composition setConfidentiality(CodeDt theValue) {
myConfidentiality = theValue;
return this;
}
/**
* Sets the value for confidentiality ()
*
*
* Definition:
* The code specifying the level of confidentiality of the Composition
*
*/
public Composition setConfidentiality( String theCode) {
myConfidentiality = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for subject ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Who or what the composition is about. The composition 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 livestock, 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 ()
*
*
* Definition:
* Who or what the composition is about. The composition 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 livestock, or a set of patients that share a common exposure)
*
*/
public Composition setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
return this;
}
/**
* Gets the value(s) for author ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies who is responsible for the information in the composition, not necessarily who typed it in.
*
*/
public java.util.List getAuthor() {
if (myAuthor == null) {
myAuthor = new java.util.ArrayList();
}
return myAuthor;
}
/**
* Sets the value(s) for author ()
*
*
* Definition:
* Identifies who is responsible for the information in the composition, not necessarily who typed it in.
*
*/
public Composition setAuthor(java.util.List theValue) {
myAuthor = theValue;
return this;
}
/**
* Adds and returns a new value for author ()
*
*
* Definition:
* Identifies who is responsible for the information in the composition, not necessarily who typed it in.
*
*/
public ResourceReferenceDt addAuthor() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getAuthor().add(newType);
return newType;
}
/**
* Gets the value(s) for attester ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A participant who has attested to the accuracy of the composition/document
*
*/
public java.util.List getAttester() {
if (myAttester == null) {
myAttester = new java.util.ArrayList();
}
return myAttester;
}
/**
* Sets the value(s) for attester ()
*
*
* Definition:
* A participant who has attested to the accuracy of the composition/document
*
*/
public Composition setAttester(java.util.List theValue) {
myAttester = theValue;
return this;
}
/**
* Adds and returns a new value for attester ()
*
*
* Definition:
* A participant who has attested to the accuracy of the composition/document
*
*/
public Attester addAttester() {
Attester newType = new Attester();
getAttester().add(newType);
return newType;
}
/**
* Adds a given new value for attester ()
*
*
* Definition:
* A participant who has attested to the accuracy of the composition/document
*
* @param theValue The attester to add (must not be null
)
*/
public Composition addAttester(Attester theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getAttester().add(theValue);
return this;
}
/**
* Gets the first repetition for attester (),
* creating it if it does not already exist.
*
*
* Definition:
* A participant who has attested to the accuracy of the composition/document
*
*/
public Attester getAttesterFirstRep() {
if (getAttester().isEmpty()) {
return addAttester();
}
return getAttester().get(0);
}
/**
* 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 composition/document information
*
*/
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 composition/document information
*
*/
public Composition setCustodian(ResourceReferenceDt theValue) {
myCustodian = theValue;
return this;
}
/**
* Gets the value(s) for event ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The clinical service, such as a colonoscopy or an appendectomy, being documented
*
*/
public java.util.List getEvent() {
if (myEvent == null) {
myEvent = new java.util.ArrayList();
}
return myEvent;
}
/**
* Sets the value(s) for event ()
*
*
* Definition:
* The clinical service, such as a colonoscopy or an appendectomy, being documented
*
*/
public Composition setEvent(java.util.List theValue) {
myEvent = theValue;
return this;
}
/**
* Adds and returns a new value for event ()
*
*
* Definition:
* The clinical service, such as a colonoscopy or an appendectomy, being documented
*
*/
public Event addEvent() {
Event newType = new Event();
getEvent().add(newType);
return newType;
}
/**
* Adds a given new value for event ()
*
*
* Definition:
* The clinical service, such as a colonoscopy or an appendectomy, being documented
*
* @param theValue The event to add (must not be null
)
*/
public Composition addEvent(Event 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:
* The clinical service, such as a colonoscopy or an appendectomy, being documented
*
*/
public Event getEventFirstRep() {
if (getEvent().isEmpty()) {
return addEvent();
}
return getEvent().get(0);
}
/**
* Gets the value(s) for encounter ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Describes the clinical encounter or type of care this documentation is associated with.
*
*/
public ResourceReferenceDt getEncounter() {
if (myEncounter == null) {
myEncounter = new ResourceReferenceDt();
}
return myEncounter;
}
/**
* Sets the value(s) for encounter ()
*
*
* Definition:
* Describes the clinical encounter or type of care this documentation is associated with.
*
*/
public Composition setEncounter(ResourceReferenceDt theValue) {
myEncounter = theValue;
return this;
}
/**
* Gets the value(s) for section ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The root of the sections that make up the composition
*
*/
public java.util.List getSection() {
if (mySection == null) {
mySection = new java.util.ArrayList();
}
return mySection;
}
/**
* Sets the value(s) for section ()
*
*
* Definition:
* The root of the sections that make up the composition
*
*/
public Composition setSection(java.util.List theValue) {
mySection = theValue;
return this;
}
/**
* Adds and returns a new value for section ()
*
*
* Definition:
* The root of the sections that make up the composition
*
*/
public Section addSection() {
Section newType = new Section();
getSection().add(newType);
return newType;
}
/**
* Adds a given new value for section ()
*
*
* Definition:
* The root of the sections that make up the composition
*
* @param theValue The section to add (must not be null
)
*/
public Composition addSection(Section theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getSection().add(theValue);
return this;
}
/**
* Gets the first repetition for section (),
* creating it if it does not already exist.
*
*
* Definition:
* The root of the sections that make up the composition
*
*/
public Section getSectionFirstRep() {
if (getSection().isEmpty()) {
return addSection();
}
return getSection().get(0);
}
/**
* Block class for child element: Composition.attester ()
*
*
* Definition:
* A participant who has attested to the accuracy of the composition/document
*
*/
@Block()
public static class Attester
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="mode", type=CodeDt.class, order=0, min=1, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The type of attestation the authenticator offers"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/composition-attestation-mode")
private java.util.List> myMode;
@Child(name="time", type=DateTimeDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="When composition was attested by the party"
)
private DateTimeDt myTime;
@Child(name="party", order=2, min=0, max=1, summary=true, 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.Organization.class
})
@Description(
shortDefinition="",
formalDefinition="Who attested the composition in the specified way"
)
private ResourceReferenceDt myParty;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myTime, myParty);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myTime, myParty);
}
/**
* Gets the value(s) for mode ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The type of attestation the authenticator offers
*
*/
public java.util.List> getMode() {
if (myMode == null) {
myMode = new java.util.ArrayList>();
}
return myMode;
}
/**
* Sets the value(s) for mode ()
*
*
* Definition:
* The type of attestation the authenticator offers
*
*/
public Attester setMode(java.util.List> theValue) {
myMode = theValue;
return this;
}
/**
* Add a value for mode () using an enumerated type. This
* is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory
* or contain the desirable codes. If you wish to use codes other than those which are built-in,
* you may also use the {@link #addMode()} method.
*
*
* Definition:
* The type of attestation the authenticator offers
*
*/
public BoundCodeDt addMode(CompositionAttestationModeEnum theValue) {
BoundCodeDt retVal = new BoundCodeDt(CompositionAttestationModeEnum.VALUESET_BINDER, theValue);
getMode().add(retVal);
return retVal;
}
/**
* Gets the first repetition for mode (),
* creating it if it does not already exist.
*
*
* Definition:
* The type of attestation the authenticator offers
*
*/
public BoundCodeDt getModeFirstRep() {
if (getMode().size() == 0) {
addMode();
}
return getMode().get(0);
}
/**
* Add a value for mode ()
*
*
* Definition:
* The type of attestation the authenticator offers
*
*/
public BoundCodeDt addMode() {
BoundCodeDt retVal = new BoundCodeDt(CompositionAttestationModeEnum.VALUESET_BINDER);
getMode().add(retVal);
return retVal;
}
/**
* Sets the value(s), and clears any existing value(s) for mode ()
*
*
* Definition:
* The type of attestation the authenticator offers
*
*/
public Attester setMode(CompositionAttestationModeEnum theValue) {
getMode().clear();
addMode(theValue);
return this;
}
/**
* Gets the value(s) for time ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* When composition was attested by the party
*
*/
public DateTimeDt getTimeElement() {
if (myTime == null) {
myTime = new DateTimeDt();
}
return myTime;
}
/**
* Gets the value(s) for time ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* When composition was attested by the party
*
*/
public Date getTime() {
return getTimeElement().getValue();
}
/**
* Sets the value(s) for time ()
*
*
* Definition:
* When composition was attested by the party
*
*/
public Attester setTime(DateTimeDt theValue) {
myTime = theValue;
return this;
}
/**
* Sets the value for time ()
*
*
* Definition:
* When composition was attested by the party
*
*/
public Attester setTimeWithSecondsPrecision( Date theDate) {
myTime = new DateTimeDt(theDate);
return this;
}
/**
* Sets the value for time ()
*
*
* Definition:
* When composition was attested by the party
*
*/
public Attester setTime( Date theDate, TemporalPrecisionEnum thePrecision) {
myTime = new DateTimeDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for party ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Who attested the composition in the specified way
*
*/
public ResourceReferenceDt getParty() {
if (myParty == null) {
myParty = new ResourceReferenceDt();
}
return myParty;
}
/**
* Sets the value(s) for party ()
*
*
* Definition:
* Who attested the composition in the specified way
*
*/
public Attester setParty(ResourceReferenceDt theValue) {
myParty = theValue;
return this;
}
}
/**
* Block class for child element: Composition.event ()
*
*
* Definition:
* The clinical service, such as a colonoscopy or an appendectomy, being documented
*
*/
@Block()
public static class Event
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, 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 myCode;
@Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time"
)
private PeriodDt myPeriod;
@Child(name="detail", order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={
IResource.class
})
@Description(
shortDefinition="",
formalDefinition="The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy"
)
private java.util.List myDetail;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myPeriod, myDetail);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myPeriod, myDetail);
}
/**
* Gets the value(s) for code ().
* 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 getCode() {
if (myCode == null) {
myCode = new java.util.ArrayList();
}
return myCode;
}
/**
* Sets the value(s) for code ()
*
*
* 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 Event setCode(java.util.List theValue) {
myCode = theValue;
return this;
}
/**
* Adds and returns a new value for code ()
*
*
* 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 addCode() {
CodeableConceptDt newType = new CodeableConceptDt();
getCode().add(newType);
return newType;
}
/**
* Adds a given new value for code ()
*
*
* 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 code to add (must not be null
)
*/
public Event addCode(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getCode().add(theValue);
return this;
}
/**
* Gets the first repetition for code (),
* 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 getCodeFirstRep() {
if (getCode().isEmpty()) {
return addCode();
}
return getCode().get(0);
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
* The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time
*
*/
public Event setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for detail ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy
*
*/
public java.util.List getDetail() {
if (myDetail == null) {
myDetail = new java.util.ArrayList();
}
return myDetail;
}
/**
* Sets the value(s) for detail ()
*
*
* Definition:
* The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy
*
*/
public Event setDetail(java.util.List theValue) {
myDetail = theValue;
return this;
}
/**
* Adds and returns a new value for detail ()
*
*
* Definition:
* The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy
*
*/
public ResourceReferenceDt addDetail() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getDetail().add(newType);
return newType;
}
}
/**
* Block class for child element: Composition.section ()
*
*
* Definition:
* The root of the sections that make up the composition
*
*/
@Block()
public static class Section
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="title", type=StringDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents"
)
private StringDt myTitle;
@Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A code identifying the kind of content contained within the section. This must be consistent with the section title"
)
private CodeableConceptDt myCode;
@Child(name="text", type=NarrativeDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative."
)
private NarrativeDt myText;
@Child(name="mode", type=CodeDt.class, order=3, min=0, max=1, summary=true, modifier=true)
@Description(
shortDefinition="",
formalDefinition="How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/list-mode")
private CodeDt myMode;
@Child(name="orderedBy", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Specifies the order applied to the items in the section entries"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/list-order")
private CodeableConceptDt myOrderedBy;
@Child(name="entry", order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
IResource.class
})
@Description(
shortDefinition="",
formalDefinition="A reference to the actual resource from which the narrative in the section is derived"
)
private java.util.List myEntry;
@Child(name="emptyReason", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/list-empty-reason")
private CodeableConceptDt myEmptyReason;
@Child(name="section", type=Section.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A nested sub-section within this section"
)
private java.util.List mySection;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTitle, myCode, myText, myMode, myOrderedBy, myEntry, myEmptyReason, mySection);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTitle, myCode, myText, myMode, myOrderedBy, myEntry, myEmptyReason, mySection);
}
/**
* Gets the value(s) for title ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents
*
*/
public StringDt getTitleElement() {
if (myTitle == null) {
myTitle = new StringDt();
}
return myTitle;
}
/**
* Gets the value(s) for title ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents
*
*/
public String getTitle() {
return getTitleElement().getValue();
}
/**
* Sets the value(s) for title ()
*
*
* Definition:
* The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents
*
*/
public Section setTitle(StringDt theValue) {
myTitle = theValue;
return this;
}
/**
* Sets the value for title ()
*
*
* Definition:
* The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents
*
*/
public Section setTitle( String theString) {
myTitle = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A code identifying the kind of content contained within the section. This must be consistent with the section title
*
*/
public CodeableConceptDt getCode() {
if (myCode == null) {
myCode = new CodeableConceptDt();
}
return myCode;
}
/**
* Sets the value(s) for code ()
*
*
* Definition:
* A code identifying the kind of content contained within the section. This must be consistent with the section title
*
*/
public Section setCode(CodeableConceptDt theValue) {
myCode = theValue;
return this;
}
/**
* Gets the value(s) for text ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative.
*
*/
public NarrativeDt getText() {
if (myText == null) {
myText = new NarrativeDt();
}
return myText;
}
/**
* Sets the value(s) for text ()
*
*
* Definition:
* A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative.
*
*/
public Section setText(NarrativeDt theValue) {
myText = theValue;
return this;
}
/**
* Gets the value(s) for mode ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
*
*/
public CodeDt getModeElement() {
if (myMode == null) {
myMode = new CodeDt();
}
return myMode;
}
/**
* Gets the value(s) for mode ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
*
*/
public String getMode() {
return getModeElement().getValue();
}
/**
* Sets the value(s) for mode ()
*
*
* Definition:
* How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
*
*/
public Section setMode(CodeDt theValue) {
myMode = theValue;
return this;
}
/**
* Sets the value for mode ()
*
*
* Definition:
* How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
*
*/
public Section setMode( String theCode) {
myMode = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for orderedBy ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specifies the order applied to the items in the section entries
*
*/
public CodeableConceptDt getOrderedBy() {
if (myOrderedBy == null) {
myOrderedBy = new CodeableConceptDt();
}
return myOrderedBy;
}
/**
* Sets the value(s) for orderedBy ()
*
*
* Definition:
* Specifies the order applied to the items in the section entries
*
*/
public Section setOrderedBy(CodeableConceptDt theValue) {
myOrderedBy = theValue;
return this;
}
/**
* Gets the value(s) for entry ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A reference to the actual resource from which the narrative in the section is derived
*
*/
public java.util.List getEntry() {
if (myEntry == null) {
myEntry = new java.util.ArrayList();
}
return myEntry;
}
/**
* Sets the value(s) for entry ()
*
*
* Definition:
* A reference to the actual resource from which the narrative in the section is derived
*
*/
public Section setEntry(java.util.List theValue) {
myEntry = theValue;
return this;
}
/**
* Adds and returns a new value for entry ()
*
*
* Definition:
* A reference to the actual resource from which the narrative in the section is derived
*
*/
public ResourceReferenceDt addEntry() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getEntry().add(newType);
return newType;
}
/**
* Gets the value(s) for emptyReason ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason
*
*/
public CodeableConceptDt getEmptyReason() {
if (myEmptyReason == null) {
myEmptyReason = new CodeableConceptDt();
}
return myEmptyReason;
}
/**
* Sets the value(s) for emptyReason ()
*
*
* Definition:
* If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason
*
*/
public Section setEmptyReason(CodeableConceptDt theValue) {
myEmptyReason = theValue;
return this;
}
/**
* Gets the value(s) for section ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A nested sub-section within this section
*
*/
public java.util.List getSection() {
if (mySection == null) {
mySection = new java.util.ArrayList();
}
return mySection;
}
/**
* Sets the value(s) for section ()
*
*
* Definition:
* A nested sub-section within this section
*
*/
public Section setSection(java.util.List theValue) {
mySection = theValue;
return this;
}
/**
* Adds and returns a new value for section ()
*
*
* Definition:
* A nested sub-section within this section
*
*/
public Section addSection() {
Section newType = new Section();
getSection().add(newType);
return newType;
}
/**
* Adds a given new value for section ()
*
*
* Definition:
* A nested sub-section within this section
*
* @param theValue The section to add (must not be null
)
*/
public Section addSection(Section theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getSection().add(theValue);
return this;
}
/**
* Gets the first repetition for section (),
* creating it if it does not already exist.
*
*
* Definition:
* A nested sub-section within this section
*
*/
public Section getSectionFirstRep() {
if (getSection().isEmpty()) {
return addSection();
}
return getSection().get(0);
}
}
@Override
public String getResourceName() {
return "Composition";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
}
}