
ca.uhn.fhir.model.dstu.resource.SequencingLab Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR SequencingLab Resource
* (Sequencing Lab)
*
*
* Definition:
* A lab for sequencing
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/SequencingLab
*
*
*/
@ResourceDef(name="SequencingLab", profile="http://hl7.org/fhir/profiles/SequencingLab", id="sequencinglab")
public class SequencingLab extends ca.uhn.fhir.model.dstu.resource.BaseResource
implements IResource {
/**
* Search parameter constant for subject
*
* Description: Subject of the lab
* Type: reference
* Path: SequencingLab.subject
*
*/
@SearchParamDefinition(name="subject", path="SequencingLab.subject", description="Subject of the lab", type="reference" )
public static final String SP_SUBJECT = "subject";
/**
* Fluent Client search parameter constant for subject
*
* Description: Subject of the lab
* Type: reference
* Path: SequencingLab.subject
*
*/
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "SequencingLab.subject".
*/
public static final Include INCLUDE_SUBJECT = new Include("SequencingLab.subject");
/**
* Search parameter constant for specimen
*
* Description: Type of the specimen used for the lab
* Type: string
* Path: SequencingLab.specimen.type
*
*/
@SearchParamDefinition(name="specimen", path="SequencingLab.specimen.type", description="Type of the specimen used for the lab", type="string" )
public static final String SP_SPECIMEN = "specimen";
/**
* Fluent Client search parameter constant for specimen
*
* Description: Type of the specimen used for the lab
* Type: string
* Path: SequencingLab.specimen.type
*
*/
public static final StringClientParam SPECIMEN = new StringClientParam(SP_SPECIMEN);
/**
* Search parameter constant for date
*
* Description: Date when result of the lab is uploaded
* Type: date
* Path: SequencingLab.date
*
*/
@SearchParamDefinition(name="date", path="SequencingLab.date", description="Date when result of the lab is uploaded", type="date" )
public static final String SP_DATE = "date";
/**
* Fluent Client search parameter constant for date
*
* Description: Date when result of the lab is uploaded
* Type: date
* Path: SequencingLab.date
*
*/
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
/**
* Search parameter constant for organization
*
* Description: Organization that does the lab
* Type: string
* Path: SequencingLab.organization
*
*/
@SearchParamDefinition(name="organization", path="SequencingLab.organization", description="Organization that does the lab", type="string" )
public static final String SP_ORGANIZATION = "organization";
/**
* Fluent Client search parameter constant for organization
*
* Description: Organization that does the lab
* Type: string
* Path: SequencingLab.organization
*
*/
public static final StringClientParam ORGANIZATION = new StringClientParam(SP_ORGANIZATION);
/**
* Search parameter constant for system-class
*
* Description: Class of the sequencing system
* Type: string
* Path: SequencingLab.system.class
*
*/
@SearchParamDefinition(name="system-class", path="SequencingLab.system.class", description="Class of the sequencing system", type="string" )
public static final String SP_SYSTEM_CLASS = "system-class";
/**
* Fluent Client search parameter constant for system-class
*
* Description: Class of the sequencing system
* Type: string
* Path: SequencingLab.system.class
*
*/
public static final StringClientParam SYSTEM_CLASS = new StringClientParam(SP_SYSTEM_CLASS);
/**
* Search parameter constant for system-name
*
* Description: Name of the sequencing system
* Type: string
* Path: SequencingLab.system.name
*
*/
@SearchParamDefinition(name="system-name", path="SequencingLab.system.name", description="Name of the sequencing system", type="string" )
public static final String SP_SYSTEM_NAME = "system-name";
/**
* Fluent Client search parameter constant for system-name
*
* Description: Name of the sequencing system
* Type: string
* Path: SequencingLab.system.name
*
*/
public static final StringClientParam SYSTEM_NAME = new StringClientParam(SP_SYSTEM_NAME);
@Child(name="subject", order=0, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Patient.class })
@Description(
shortDefinition="Subject",
formalDefinition="Subject of the sequencing lab"
)
private ResourceReferenceDt mySubject;
@Child(name="organization", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Organization",
formalDefinition="Organization that does the sequencing"
)
private StringDt myOrganization;
@Child(name="name", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Name",
formalDefinition="Name of the lab"
)
private StringDt myName;
@Child(name="date", type=DateDt.class, order=3, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Date",
formalDefinition="Date when the result of the lab is uploaded"
)
private DateDt myDate;
@Child(name="type", type=CodeDt.class, order=4, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Type",
formalDefinition="Type of the sequencing lab"
)
private CodeDt myType;
@Child(name="system", order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Sequencing System",
formalDefinition="System of machine used for sequencing"
)
private System mySystem;
@Child(name="specimen", order=6, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Specimen of the lab",
formalDefinition="Specimen of the lab"
)
private Specimen mySpecimen;
@Child(name="file", type=AttachmentDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="File",
formalDefinition="Files uploaded as results of the lab"
)
private java.util.List myFile;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myOrganization, myName, myDate, myType, mySystem, mySpecimen, myFile);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myOrganization, myName, myDate, myType, mySystem, mySpecimen, myFile);
}
/**
* Gets the value(s) for subject (Subject).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Subject of the sequencing lab
*
*/
public ResourceReferenceDt getSubject() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Gets the value(s) for subject (Subject).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Subject of the sequencing lab
*
*/
public ResourceReferenceDt getSubjectElement() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Sets the value(s) for subject (Subject)
*
*
* Definition:
* Subject of the sequencing lab
*
*/
public SequencingLab setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
return this;
}
/**
* Gets the value(s) for organization (Organization).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Organization that does the sequencing
*
*/
public StringDt getOrganization() {
if (myOrganization == null) {
myOrganization = new StringDt();
}
return myOrganization;
}
/**
* Gets the value(s) for organization (Organization).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Organization that does the sequencing
*
*/
public StringDt getOrganizationElement() {
if (myOrganization == null) {
myOrganization = new StringDt();
}
return myOrganization;
}
/**
* Sets the value(s) for organization (Organization)
*
*
* Definition:
* Organization that does the sequencing
*
*/
public SequencingLab setOrganization(StringDt theValue) {
myOrganization = theValue;
return this;
}
/**
* Sets the value for organization (Organization)
*
*
* Definition:
* Organization that does the sequencing
*
*/
public SequencingLab setOrganization( String theString) {
myOrganization = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for name (Name).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Name of the lab
*
*/
public StringDt getName() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Gets the value(s) for name (Name).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Name of the lab
*
*/
public StringDt getNameElement() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Sets the value(s) for name (Name)
*
*
* Definition:
* Name of the lab
*
*/
public SequencingLab setName(StringDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name (Name)
*
*
* Definition:
* Name of the lab
*
*/
public SequencingLab setName( String theString) {
myName = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for date (Date).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Date when the result of the lab is uploaded
*
*/
public DateDt getDate() {
if (myDate == null) {
myDate = new DateDt();
}
return myDate;
}
/**
* Gets the value(s) for date (Date).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Date when the result of the lab is uploaded
*
*/
public DateDt getDateElement() {
if (myDate == null) {
myDate = new DateDt();
}
return myDate;
}
/**
* Sets the value(s) for date (Date)
*
*
* Definition:
* Date when the result of the lab is uploaded
*
*/
public SequencingLab setDate(DateDt theValue) {
myDate = theValue;
return this;
}
/**
* Sets the value for date (Date)
*
*
* Definition:
* Date when the result of the lab is uploaded
*
*/
public SequencingLab setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateDt(theDate, thePrecision);
return this;
}
/**
* Sets the value for date (Date)
*
*
* Definition:
* Date when the result of the lab is uploaded
*
*/
public SequencingLab setDateWithDayPrecision( Date theDate) {
myDate = new DateDt(theDate);
return this;
}
/**
* Gets the value(s) for type (Type).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Type of the sequencing lab
*
*/
public CodeDt getType() {
if (myType == null) {
myType = new CodeDt();
}
return myType;
}
/**
* Gets the value(s) for type (Type).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Type of the sequencing lab
*
*/
public CodeDt getTypeElement() {
if (myType == null) {
myType = new CodeDt();
}
return myType;
}
/**
* Sets the value(s) for type (Type)
*
*
* Definition:
* Type of the sequencing lab
*
*/
public SequencingLab setType(CodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value for type (Type)
*
*
* Definition:
* Type of the sequencing lab
*
*/
public SequencingLab setType( String theCode) {
myType = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for system (Sequencing System).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* System of machine used for sequencing
*
*/
public System getSystem() {
if (mySystem == null) {
mySystem = new System();
}
return mySystem;
}
/**
* Gets the value(s) for system (Sequencing System).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* System of machine used for sequencing
*
*/
public System getSystemElement() {
if (mySystem == null) {
mySystem = new System();
}
return mySystem;
}
/**
* Sets the value(s) for system (Sequencing System)
*
*
* Definition:
* System of machine used for sequencing
*
*/
public SequencingLab setSystem(System theValue) {
mySystem = theValue;
return this;
}
/**
* Gets the value(s) for specimen (Specimen of the lab).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specimen of the lab
*
*/
public Specimen getSpecimen() {
if (mySpecimen == null) {
mySpecimen = new Specimen();
}
return mySpecimen;
}
/**
* Gets the value(s) for specimen (Specimen of the lab).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specimen of the lab
*
*/
public Specimen getSpecimenElement() {
if (mySpecimen == null) {
mySpecimen = new Specimen();
}
return mySpecimen;
}
/**
* Sets the value(s) for specimen (Specimen of the lab)
*
*
* Definition:
* Specimen of the lab
*
*/
public SequencingLab setSpecimen(Specimen theValue) {
mySpecimen = theValue;
return this;
}
/**
* Gets the value(s) for file (File).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Files uploaded as results of the lab
*
*/
public java.util.List getFile() {
if (myFile == null) {
myFile = new java.util.ArrayList();
}
return myFile;
}
/**
* Gets the value(s) for file (File).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Files uploaded as results of the lab
*
*/
public java.util.List getFileElement() {
if (myFile == null) {
myFile = new java.util.ArrayList();
}
return myFile;
}
/**
* Sets the value(s) for file (File)
*
*
* Definition:
* Files uploaded as results of the lab
*
*/
public SequencingLab setFile(java.util.List theValue) {
myFile = theValue;
return this;
}
/**
* Adds and returns a new value for file (File)
*
*
* Definition:
* Files uploaded as results of the lab
*
*/
public AttachmentDt addFile() {
AttachmentDt newType = new AttachmentDt();
getFile().add(newType);
return newType;
}
/**
* Gets the first repetition for file (File),
* creating it if it does not already exist.
*
*
* Definition:
* Files uploaded as results of the lab
*
*/
public AttachmentDt getFileFirstRep() {
if (getFile().isEmpty()) {
return addFile();
}
return getFile().get(0);
}
/**
* Block class for child element: SequencingLab.system (Sequencing System)
*
*
* Definition:
* System of machine used for sequencing
*
*/
@Block()
public static class System
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="class", type=CodeDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Class of sequencing system",
formalDefinition="Class of sequencing system"
)
private CodeDt myClassElement;
@Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Version of sequencing system",
formalDefinition="Version of sequencing system"
)
private StringDt myVersion;
@Child(name="name", type=CodeDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Name of sequencing system",
formalDefinition="Name of sequencing system"
)
private CodeDt myName;
@Child(name="identity", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Id of sequencing system",
formalDefinition="Id of sequencing system"
)
private StringDt myIdentity;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myClassElement, myVersion, myName, myIdentity);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myClassElement, myVersion, myName, myIdentity);
}
/**
* Gets the value(s) for class (Class of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Class of sequencing system
*
*/
public CodeDt getClassElement() {
if (myClassElement == null) {
myClassElement = new CodeDt();
}
return myClassElement;
}
/**
* Gets the value(s) for class (Class of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Class of sequencing system
*
*/
public CodeDt getClassElementElement() {
if (myClassElement == null) {
myClassElement = new CodeDt();
}
return myClassElement;
}
/**
* Sets the value(s) for class (Class of sequencing system)
*
*
* Definition:
* Class of sequencing system
*
*/
public System setClassElement(CodeDt theValue) {
myClassElement = theValue;
return this;
}
/**
* Sets the value for class (Class of sequencing system)
*
*
* Definition:
* Class of sequencing system
*
*/
public System setClassElement( String theCode) {
myClassElement = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for version (Version of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Version of sequencing system
*
*/
public StringDt getVersion() {
if (myVersion == null) {
myVersion = new StringDt();
}
return myVersion;
}
/**
* Gets the value(s) for version (Version of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Version of sequencing system
*
*/
public StringDt getVersionElement() {
if (myVersion == null) {
myVersion = new StringDt();
}
return myVersion;
}
/**
* Sets the value(s) for version (Version of sequencing system)
*
*
* Definition:
* Version of sequencing system
*
*/
public System setVersion(StringDt theValue) {
myVersion = theValue;
return this;
}
/**
* Sets the value for version (Version of sequencing system)
*
*
* Definition:
* Version of sequencing system
*
*/
public System setVersion( String theString) {
myVersion = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for name (Name of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Name of sequencing system
*
*/
public CodeDt getName() {
if (myName == null) {
myName = new CodeDt();
}
return myName;
}
/**
* Gets the value(s) for name (Name of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Name of sequencing system
*
*/
public CodeDt getNameElement() {
if (myName == null) {
myName = new CodeDt();
}
return myName;
}
/**
* Sets the value(s) for name (Name of sequencing system)
*
*
* Definition:
* Name of sequencing system
*
*/
public System setName(CodeDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name (Name of sequencing system)
*
*
* Definition:
* Name of sequencing system
*
*/
public System setName( String theCode) {
myName = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for identity (Id of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Id of sequencing system
*
*/
public StringDt getIdentity() {
if (myIdentity == null) {
myIdentity = new StringDt();
}
return myIdentity;
}
/**
* Gets the value(s) for identity (Id of sequencing system).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Id of sequencing system
*
*/
public StringDt getIdentityElement() {
if (myIdentity == null) {
myIdentity = new StringDt();
}
return myIdentity;
}
/**
* Sets the value(s) for identity (Id of sequencing system)
*
*
* Definition:
* Id of sequencing system
*
*/
public System setIdentity(StringDt theValue) {
myIdentity = theValue;
return this;
}
/**
* Sets the value for identity (Id of sequencing system)
*
*
* Definition:
* Id of sequencing system
*
*/
public System setIdentity( String theString) {
myIdentity = new StringDt(theString);
return this;
}
}
/**
* Block class for child element: SequencingLab.specimen (Specimen of the lab)
*
*
* Definition:
* Specimen of the lab
*
*/
@Block()
public static class Specimen
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Class of the specimen",
formalDefinition="Whether the specimen is from germline or somatic cells of the patient"
)
private CodeDt myType;
@Child(name="source", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Source of specimen",
formalDefinition="Source of the specimen"
)
private CodeableConceptDt mySource;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySource);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySource);
}
/**
* Gets the value(s) for type (Class of the specimen).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Whether the specimen is from germline or somatic cells of the patient
*
*/
public CodeDt getType() {
if (myType == null) {
myType = new CodeDt();
}
return myType;
}
/**
* Gets the value(s) for type (Class of the specimen).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Whether the specimen is from germline or somatic cells of the patient
*
*/
public CodeDt getTypeElement() {
if (myType == null) {
myType = new CodeDt();
}
return myType;
}
/**
* Sets the value(s) for type (Class of the specimen)
*
*
* Definition:
* Whether the specimen is from germline or somatic cells of the patient
*
*/
public Specimen setType(CodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value for type (Class of the specimen)
*
*
* Definition:
* Whether the specimen is from germline or somatic cells of the patient
*
*/
public Specimen setType( String theCode) {
myType = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for source (Source of specimen).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Source of the specimen
*
*/
public CodeableConceptDt getSource() {
if (mySource == null) {
mySource = new CodeableConceptDt();
}
return mySource;
}
/**
* Gets the value(s) for source (Source of specimen).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Source of the specimen
*
*/
public CodeableConceptDt getSourceElement() {
if (mySource == null) {
mySource = new CodeableConceptDt();
}
return mySource;
}
/**
* Sets the value(s) for source (Source of specimen)
*
*
* Definition:
* Source of the specimen
*
*/
public Specimen setSource(CodeableConceptDt theValue) {
mySource = theValue;
return this;
}
}
@Override
public String getResourceName() {
return "SequencingLab";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU1;
}
}