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

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

There is a newer version: 7.6.1
Show newest version
















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


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

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


/**
 * HAPI/FHIR Condition Resource
 * (Detailed information about conditions, problems or diagnoses)
 *
 * 

* Definition: * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary *

* *

* Requirements: * *

* *

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

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

* Description: Code for the condition
* Type: token
* Path: Condition.code
*

*/ @SearchParamDefinition(name="code", path="Condition.code", description="Code for the condition", type="token" ) public static final String SP_CODE = "code"; /** * Fluent Client search parameter constant for code *

* Description: Code for the condition
* Type: token
* Path: Condition.code
*

*/ public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); /** * Search parameter constant for status *

* Description: The status of the condition
* Type: token
* Path: Condition.status
*

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

* Description: The status of the condition
* Type: token
* Path: Condition.status
*

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

* Description: The severity of the condition
* Type: token
* Path: Condition.severity
*

*/ @SearchParamDefinition(name="severity", path="Condition.severity", description="The severity of the condition", type="token" ) public static final String SP_SEVERITY = "severity"; /** * Fluent Client search parameter constant for severity *

* Description: The severity of the condition
* Type: token
* Path: Condition.severity
*

*/ public static final TokenClientParam SEVERITY = new TokenClientParam(SP_SEVERITY); /** * Search parameter constant for category *

* Description: The category of the condition
* Type: token
* Path: Condition.category
*

*/ @SearchParamDefinition(name="category", path="Condition.category", description="The category of the condition", type="token" ) public static final String SP_CATEGORY = "category"; /** * Fluent Client search parameter constant for category *

* Description: The category of the condition
* Type: token
* Path: Condition.category
*

*/ public static final TokenClientParam CATEGORY = new TokenClientParam(SP_CATEGORY); /** * Search parameter constant for onset *

* Description: When the Condition started (if started on a date)
* Type: date
* Path: Condition.onset[x]
*

*/ @SearchParamDefinition(name="onset", path="Condition.onset[x]", description="When the Condition started (if started on a date)", type="date" ) public static final String SP_ONSET = "onset"; /** * Fluent Client search parameter constant for onset *

* Description: When the Condition started (if started on a date)
* Type: date
* Path: Condition.onset[x]
*

*/ public static final DateClientParam ONSET = new DateClientParam(SP_ONSET); /** * Search parameter constant for subject *

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

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

* Description:
* Type: reference
* Path: Condition.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 "Condition.subject". */ public static final Include INCLUDE_SUBJECT = new Include("Condition.subject"); /** * Search parameter constant for encounter *

* Description:
* Type: reference
* Path: Condition.encounter
*

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

* Description:
* Type: reference
* Path: Condition.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 "Condition.encounter". */ public static final Include INCLUDE_ENCOUNTER = new Include("Condition.encounter"); /** * Search parameter constant for asserter *

* Description:
* Type: reference
* Path: Condition.asserter
*

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

* Description:
* Type: reference
* Path: Condition.asserter
*

*/ public static final ReferenceClientParam ASSERTER = new ReferenceClientParam(SP_ASSERTER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Condition.asserter". */ public static final Include INCLUDE_ASSERTER = new Include("Condition.asserter"); /** * Search parameter constant for date-asserted *

* Description:
* Type: date
* Path: Condition.dateAsserted
*

*/ @SearchParamDefinition(name="date-asserted", path="Condition.dateAsserted", description="", type="date" ) public static final String SP_DATE_ASSERTED = "date-asserted"; /** * Fluent Client search parameter constant for date-asserted *

* Description:
* Type: date
* Path: Condition.dateAsserted
*

*/ public static final DateClientParam DATE_ASSERTED = new DateClientParam(SP_DATE_ASSERTED); /** * Search parameter constant for evidence *

* Description:
* Type: token
* Path: Condition.evidence.code
*

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

* Description:
* Type: token
* Path: Condition.evidence.code
*

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

* Description:
* Type: token
* Path: Condition.location.code
*

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

* Description:
* Type: token
* Path: Condition.location.code
*

*/ public static final TokenClientParam LOCATION = new TokenClientParam(SP_LOCATION); /** * Search parameter constant for related-item *

* Description:
* Type: reference
* Path: Condition.relatedItem.target
*

*/ @SearchParamDefinition(name="related-item", path="Condition.relatedItem.target", description="", type="reference" ) public static final String SP_RELATED_ITEM = "related-item"; /** * Fluent Client search parameter constant for related-item *

* Description:
* Type: reference
* Path: Condition.relatedItem.target
*

*/ public static final ReferenceClientParam RELATED_ITEM = new ReferenceClientParam(SP_RELATED_ITEM); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Condition.relatedItem.target". */ public static final Include INCLUDE_RELATEDITEM_TARGET = new Include("Condition.relatedItem.target"); /** * Search parameter constant for stage *

* Description:
* Type: token
* Path: Condition.stage.summary
*

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

* Description:
* Type: token
* Path: Condition.stage.summary
*

*/ public static final TokenClientParam STAGE = new TokenClientParam(SP_STAGE); /** * Search parameter constant for related-code *

* Description:
* Type: token
* Path: Condition.relatedItem.code
*

*/ @SearchParamDefinition(name="related-code", path="Condition.relatedItem.code", description="", type="token" ) public static final String SP_RELATED_CODE = "related-code"; /** * Fluent Client search parameter constant for related-code *

* Description:
* Type: token
* Path: Condition.relatedItem.code
*

*/ public static final TokenClientParam RELATED_CODE = new TokenClientParam(SP_RELATED_CODE); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="External Ids for this condition", formalDefinition="This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" ) private java.util.List myIdentifier; @Child(name="subject", order=1, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Patient.class }) @Description( shortDefinition="Who has the condition?", formalDefinition="Indicates the patient who the condition record is associated with" ) private ResourceReferenceDt mySubject; @Child(name="encounter", order=2, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Encounter.class }) @Description( shortDefinition="Encounter when condition first asserted", formalDefinition="Encounter during which the condition was first asserted" ) private ResourceReferenceDt myEncounter; @Child(name="asserter", order=3, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class }) @Description( shortDefinition="Person who asserts this condition", formalDefinition="Person who takes responsibility for asserting the existence of the condition as part of the electronic record" ) private ResourceReferenceDt myAsserter; @Child(name="dateAsserted", type=DateDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="When first detected/suspected/entered", formalDefinition="Estimated or actual date the condition/problem/diagnosis was first detected/suspected" ) private DateDt myDateAsserted; @Child(name="code", type=CodeableConceptDt.class, order=5, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Identification of the condition, problem or diagnosis", formalDefinition="Identification of the condition, problem or diagnosis." ) private CodeableConceptDt myCode; @Child(name="category", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="E.g. complaint | symptom | finding | diagnosis", formalDefinition="A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis" ) private CodeableConceptDt myCategory; @Child(name="status", type=CodeDt.class, order=7, min=1, max=1, summary=false, modifier=true) @Description( shortDefinition="provisional | working | confirmed | refuted", formalDefinition="The clinical status of the condition" ) private BoundCodeDt myStatus; @Child(name="certainty", type=CodeableConceptDt.class, order=8, min=0, max=1, summary=false, modifier=true) @Description( shortDefinition="Degree of confidence", formalDefinition="The degree of confidence that this condition is correct" ) private CodeableConceptDt myCertainty; @Child(name="severity", type=CodeableConceptDt.class, order=9, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Subjective severity of condition", formalDefinition="A subjective assessment of the severity of the condition as evaluated by the clinician." ) private CodeableConceptDt mySeverity; @Child(name="onset", order=10, min=0, max=1, summary=false, modifier=false, type={ DateDt.class, AgeDt.class }) @Description( shortDefinition="Estimated or actual date, or age", formalDefinition="Estimated or actual date the condition began, in the opinion of the clinician" ) private IDatatype myOnset; @Child(name="abatement", order=11, min=0, max=1, summary=false, modifier=false, type={ DateDt.class, AgeDt.class, BooleanDt.class }) @Description( shortDefinition="If/when in resolution/remission", formalDefinition="The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate." ) private IDatatype myAbatement; @Child(name="stage", order=12, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Stage/grade, usually assessed formally", formalDefinition="Clinical stage or grade of a condition. May include formal severity assessments" ) private Stage myStage; @Child(name="evidence", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Supporting evidence", formalDefinition="Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed" ) private java.util.List myEvidence; @Child(name="location", order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Anatomical location, if relevant", formalDefinition="The anatomical location where this condition manifests itself" ) private java.util.List myLocation; @Child(name="relatedItem", order=15, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Causes or precedents for this Condition", formalDefinition="Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition" ) private java.util.List myRelatedItem; @Child(name="notes", type=StringDt.class, order=16, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Additional information about the Condition", formalDefinition="Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis" ) private StringDt myNotes; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, mySubject, myEncounter, myAsserter, myDateAsserted, myCode, myCategory, myStatus, myCertainty, mySeverity, myOnset, myAbatement, myStage, myEvidence, myLocation, myRelatedItem, myNotes); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, mySubject, myEncounter, myAsserter, myDateAsserted, myCode, myCategory, myStatus, myCertainty, mySeverity, myOnset, myAbatement, myStage, myEvidence, myLocation, myRelatedItem, myNotes); } /** * Gets the value(s) for identifier (External Ids for this condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

*/ public java.util.List getIdentifier() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Gets the value(s) for identifier (External Ids for this condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

*/ public java.util.List getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Sets the value(s) for identifier (External Ids for this condition) * *

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

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

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

*/ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Gets the first repetition for identifier (External Ids for this condition), * creating it if it does not already exist. * *

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Adds a new value for identifier (External Ids for this condition) * *

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Condition addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); return this; } /** * Adds a new value for identifier (External Ids for this condition) * *

* Definition: * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Condition addIdentifier( String theSystem, String theValue) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theSystem, theValue)); return this; } /** * Gets the value(s) for subject (Who has the condition?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the patient who the condition record is associated with *

*/ public ResourceReferenceDt getSubject() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Gets the value(s) for subject (Who has the condition?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the patient who the condition record is associated with *

*/ public ResourceReferenceDt getSubjectElement() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Sets the value(s) for subject (Who has the condition?) * *

* Definition: * Indicates the patient who the condition record is associated with *

*/ public Condition setSubject(ResourceReferenceDt theValue) { mySubject = theValue; return this; } /** * Gets the value(s) for encounter (Encounter when condition first asserted). * creating it if it does * not exist. Will not return null. * *

* Definition: * Encounter during which the condition was first asserted *

*/ public ResourceReferenceDt getEncounter() { if (myEncounter == null) { myEncounter = new ResourceReferenceDt(); } return myEncounter; } /** * Gets the value(s) for encounter (Encounter when condition first asserted). * creating it if it does * not exist. Will not return null. * *

* Definition: * Encounter during which the condition was first asserted *

*/ public ResourceReferenceDt getEncounterElement() { if (myEncounter == null) { myEncounter = new ResourceReferenceDt(); } return myEncounter; } /** * Sets the value(s) for encounter (Encounter when condition first asserted) * *

* Definition: * Encounter during which the condition was first asserted *

*/ public Condition setEncounter(ResourceReferenceDt theValue) { myEncounter = theValue; return this; } /** * Gets the value(s) for asserter (Person who asserts this condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * Person who takes responsibility for asserting the existence of the condition as part of the electronic record *

*/ public ResourceReferenceDt getAsserter() { if (myAsserter == null) { myAsserter = new ResourceReferenceDt(); } return myAsserter; } /** * Gets the value(s) for asserter (Person who asserts this condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * Person who takes responsibility for asserting the existence of the condition as part of the electronic record *

*/ public ResourceReferenceDt getAsserterElement() { if (myAsserter == null) { myAsserter = new ResourceReferenceDt(); } return myAsserter; } /** * Sets the value(s) for asserter (Person who asserts this condition) * *

* Definition: * Person who takes responsibility for asserting the existence of the condition as part of the electronic record *

*/ public Condition setAsserter(ResourceReferenceDt theValue) { myAsserter = theValue; return this; } /** * Gets the value(s) for dateAsserted (When first detected/suspected/entered). * creating it if it does * not exist. Will not return null. * *

* Definition: * Estimated or actual date the condition/problem/diagnosis was first detected/suspected *

*/ public DateDt getDateAsserted() { if (myDateAsserted == null) { myDateAsserted = new DateDt(); } return myDateAsserted; } /** * Gets the value(s) for dateAsserted (When first detected/suspected/entered). * creating it if it does * not exist. Will not return null. * *

* Definition: * Estimated or actual date the condition/problem/diagnosis was first detected/suspected *

*/ public DateDt getDateAssertedElement() { if (myDateAsserted == null) { myDateAsserted = new DateDt(); } return myDateAsserted; } /** * Sets the value(s) for dateAsserted (When first detected/suspected/entered) * *

* Definition: * Estimated or actual date the condition/problem/diagnosis was first detected/suspected *

*/ public Condition setDateAsserted(DateDt theValue) { myDateAsserted = theValue; return this; } /** * Sets the value for dateAsserted (When first detected/suspected/entered) * *

* Definition: * Estimated or actual date the condition/problem/diagnosis was first detected/suspected *

*/ public Condition setDateAsserted( Date theDate, TemporalPrecisionEnum thePrecision) { myDateAsserted = new DateDt(theDate, thePrecision); return this; } /** * Sets the value for dateAsserted (When first detected/suspected/entered) * *

* Definition: * Estimated or actual date the condition/problem/diagnosis was first detected/suspected *

*/ public Condition setDateAssertedWithDayPrecision( Date theDate) { myDateAsserted = new DateDt(theDate); return this; } /** * Gets the value(s) for code (Identification of the condition, problem or diagnosis). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identification of the condition, problem or diagnosis. *

*/ public CodeableConceptDt getCode() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Gets the value(s) for code (Identification of the condition, problem or diagnosis). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identification of the condition, problem or diagnosis. *

*/ public CodeableConceptDt getCodeElement() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Sets the value(s) for code (Identification of the condition, problem or diagnosis) * *

* Definition: * Identification of the condition, problem or diagnosis. *

*/ public Condition setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for category (E.g. complaint | symptom | finding | diagnosis). * creating it if it does * not exist. Will not return null. * *

* Definition: * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis *

*/ public CodeableConceptDt getCategory() { if (myCategory == null) { myCategory = new CodeableConceptDt(); } return myCategory; } /** * Gets the value(s) for category (E.g. complaint | symptom | finding | diagnosis). * creating it if it does * not exist. Will not return null. * *

* Definition: * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis *

*/ public CodeableConceptDt getCategoryElement() { if (myCategory == null) { myCategory = new CodeableConceptDt(); } return myCategory; } /** * Sets the value(s) for category (E.g. complaint | symptom | finding | diagnosis) * *

* Definition: * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis *

*/ public Condition setCategory(CodeableConceptDt theValue) { myCategory = theValue; return this; } /** * Gets the value(s) for status (provisional | working | confirmed | refuted). * creating it if it does * not exist. Will not return null. * *

* Definition: * The clinical status of the condition *

*/ public BoundCodeDt getStatus() { if (myStatus == null) { myStatus = new BoundCodeDt(ConditionStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Gets the value(s) for status (provisional | working | confirmed | refuted). * creating it if it does * not exist. Will not return null. * *

* Definition: * The clinical status of the condition *

*/ public BoundCodeDt getStatusElement() { if (myStatus == null) { myStatus = new BoundCodeDt(ConditionStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Sets the value(s) for status (provisional | working | confirmed | refuted) * *

* Definition: * The clinical status of the condition *

*/ public Condition setStatus(BoundCodeDt theValue) { myStatus = theValue; return this; } /** * Sets the value(s) for status (provisional | working | confirmed | refuted) * *

* Definition: * The clinical status of the condition *

*/ public Condition setStatus(ConditionStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for certainty (Degree of confidence). * creating it if it does * not exist. Will not return null. * *

* Definition: * The degree of confidence that this condition is correct *

*/ public CodeableConceptDt getCertainty() { if (myCertainty == null) { myCertainty = new CodeableConceptDt(); } return myCertainty; } /** * Gets the value(s) for certainty (Degree of confidence). * creating it if it does * not exist. Will not return null. * *

* Definition: * The degree of confidence that this condition is correct *

*/ public CodeableConceptDt getCertaintyElement() { if (myCertainty == null) { myCertainty = new CodeableConceptDt(); } return myCertainty; } /** * Sets the value(s) for certainty (Degree of confidence) * *

* Definition: * The degree of confidence that this condition is correct *

*/ public Condition setCertainty(CodeableConceptDt theValue) { myCertainty = theValue; return this; } /** * Gets the value(s) for severity (Subjective severity of condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * A subjective assessment of the severity of the condition as evaluated by the clinician. *

*/ public CodeableConceptDt getSeverity() { if (mySeverity == null) { mySeverity = new CodeableConceptDt(); } return mySeverity; } /** * Gets the value(s) for severity (Subjective severity of condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * A subjective assessment of the severity of the condition as evaluated by the clinician. *

*/ public CodeableConceptDt getSeverityElement() { if (mySeverity == null) { mySeverity = new CodeableConceptDt(); } return mySeverity; } /** * Sets the value(s) for severity (Subjective severity of condition) * *

* Definition: * A subjective assessment of the severity of the condition as evaluated by the clinician. *

*/ public Condition setSeverity(CodeableConceptDt theValue) { mySeverity = theValue; return this; } /** * Gets the value(s) for onset[x] (Estimated or actual date, or age). * creating it if it does * not exist. Will not return null. * *

* Definition: * Estimated or actual date the condition began, in the opinion of the clinician *

*/ public IDatatype getOnset() { return myOnset; } /** * Gets the value(s) for onset[x] (Estimated or actual date, or age). * creating it if it does * not exist. Will not return null. * *

* Definition: * Estimated or actual date the condition began, in the opinion of the clinician *

*/ public IDatatype getOnsetElement() { return myOnset; } /** * Sets the value(s) for onset[x] (Estimated or actual date, or age) * *

* Definition: * Estimated or actual date the condition began, in the opinion of the clinician *

*/ public Condition setOnset(IDatatype theValue) { myOnset = theValue; return this; } /** * Gets the value(s) for abatement[x] (If/when in resolution/remission). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate. *

*/ public IDatatype getAbatement() { return myAbatement; } /** * Gets the value(s) for abatement[x] (If/when in resolution/remission). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate. *

*/ public IDatatype getAbatementElement() { return myAbatement; } /** * Sets the value(s) for abatement[x] (If/when in resolution/remission) * *

* Definition: * The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate. *

*/ public Condition setAbatement(IDatatype theValue) { myAbatement = theValue; return this; } /** * Gets the value(s) for stage (Stage/grade, usually assessed formally). * creating it if it does * not exist. Will not return null. * *

* Definition: * Clinical stage or grade of a condition. May include formal severity assessments *

*/ public Stage getStage() { if (myStage == null) { myStage = new Stage(); } return myStage; } /** * Gets the value(s) for stage (Stage/grade, usually assessed formally). * creating it if it does * not exist. Will not return null. * *

* Definition: * Clinical stage or grade of a condition. May include formal severity assessments *

*/ public Stage getStageElement() { if (myStage == null) { myStage = new Stage(); } return myStage; } /** * Sets the value(s) for stage (Stage/grade, usually assessed formally) * *

* Definition: * Clinical stage or grade of a condition. May include formal severity assessments *

*/ public Condition setStage(Stage theValue) { myStage = theValue; return this; } /** * Gets the value(s) for evidence (Supporting evidence). * creating it if it does * not exist. Will not return null. * *

* Definition: * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed *

*/ public java.util.List getEvidence() { if (myEvidence == null) { myEvidence = new java.util.ArrayList(); } return myEvidence; } /** * Gets the value(s) for evidence (Supporting evidence). * creating it if it does * not exist. Will not return null. * *

* Definition: * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed *

*/ public java.util.List getEvidenceElement() { if (myEvidence == null) { myEvidence = new java.util.ArrayList(); } return myEvidence; } /** * Sets the value(s) for evidence (Supporting evidence) * *

* Definition: * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed *

*/ public Condition setEvidence(java.util.List theValue) { myEvidence = theValue; return this; } /** * Adds and returns a new value for evidence (Supporting evidence) * *

* Definition: * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed *

*/ public Evidence addEvidence() { Evidence newType = new Evidence(); getEvidence().add(newType); return newType; } /** * Gets the first repetition for evidence (Supporting evidence), * creating it if it does not already exist. * *

* Definition: * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed *

*/ public Evidence getEvidenceFirstRep() { if (getEvidence().isEmpty()) { return addEvidence(); } return getEvidence().get(0); } /** * Gets the value(s) for location (Anatomical location, if relevant). * creating it if it does * not exist. Will not return null. * *

* Definition: * The anatomical location where this condition manifests itself *

*/ public java.util.List getLocation() { if (myLocation == null) { myLocation = new java.util.ArrayList(); } return myLocation; } /** * Gets the value(s) for location (Anatomical location, if relevant). * creating it if it does * not exist. Will not return null. * *

* Definition: * The anatomical location where this condition manifests itself *

*/ public java.util.List getLocationElement() { if (myLocation == null) { myLocation = new java.util.ArrayList(); } return myLocation; } /** * Sets the value(s) for location (Anatomical location, if relevant) * *

* Definition: * The anatomical location where this condition manifests itself *

*/ public Condition setLocation(java.util.List theValue) { myLocation = theValue; return this; } /** * Adds and returns a new value for location (Anatomical location, if relevant) * *

* Definition: * The anatomical location where this condition manifests itself *

*/ public Location addLocation() { Location newType = new Location(); getLocation().add(newType); return newType; } /** * Gets the first repetition for location (Anatomical location, if relevant), * creating it if it does not already exist. * *

* Definition: * The anatomical location where this condition manifests itself *

*/ public Location getLocationFirstRep() { if (getLocation().isEmpty()) { return addLocation(); } return getLocation().get(0); } /** * Gets the value(s) for relatedItem (Causes or precedents for this Condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition *

*/ public java.util.List getRelatedItem() { if (myRelatedItem == null) { myRelatedItem = new java.util.ArrayList(); } return myRelatedItem; } /** * Gets the value(s) for relatedItem (Causes or precedents for this Condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition *

*/ public java.util.List getRelatedItemElement() { if (myRelatedItem == null) { myRelatedItem = new java.util.ArrayList(); } return myRelatedItem; } /** * Sets the value(s) for relatedItem (Causes or precedents for this Condition) * *

* Definition: * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition *

*/ public Condition setRelatedItem(java.util.List theValue) { myRelatedItem = theValue; return this; } /** * Adds and returns a new value for relatedItem (Causes or precedents for this Condition) * *

* Definition: * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition *

*/ public RelatedItem addRelatedItem() { RelatedItem newType = new RelatedItem(); getRelatedItem().add(newType); return newType; } /** * Gets the first repetition for relatedItem (Causes or precedents for this Condition), * creating it if it does not already exist. * *

* Definition: * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition *

*/ public RelatedItem getRelatedItemFirstRep() { if (getRelatedItem().isEmpty()) { return addRelatedItem(); } return getRelatedItem().get(0); } /** * Gets the value(s) for notes (Additional information about the Condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis *

*/ public StringDt getNotes() { if (myNotes == null) { myNotes = new StringDt(); } return myNotes; } /** * Gets the value(s) for notes (Additional information about the Condition). * creating it if it does * not exist. Will not return null. * *

* Definition: * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis *

*/ public StringDt getNotesElement() { if (myNotes == null) { myNotes = new StringDt(); } return myNotes; } /** * Sets the value(s) for notes (Additional information about the Condition) * *

* Definition: * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis *

*/ public Condition setNotes(StringDt theValue) { myNotes = theValue; return this; } /** * Sets the value for notes (Additional information about the Condition) * *

* Definition: * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis *

*/ public Condition setNotes( String theString) { myNotes = new StringDt(theString); return this; } /** * Block class for child element: Condition.stage (Stage/grade, usually assessed formally) * *

* Definition: * Clinical stage or grade of a condition. May include formal severity assessments *

*/ @Block() public static class Stage extends BaseIdentifiableElement implements IResourceBlock { @Child(name="summary", type=CodeableConceptDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Simple summary (disease specific)", formalDefinition="A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific" ) private CodeableConceptDt mySummary; @Child(name="assessment", order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ IResource.class }) @Description( shortDefinition="Formal record of assessment", formalDefinition="Reference to a formal record of the evidence on which the staging assessment is based" ) private java.util.List myAssessment; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySummary, myAssessment); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySummary, myAssessment); } /** * Gets the value(s) for summary (Simple summary (disease specific)). * creating it if it does * not exist. Will not return null. * *

* Definition: * A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific *

*/ public CodeableConceptDt getSummary() { if (mySummary == null) { mySummary = new CodeableConceptDt(); } return mySummary; } /** * Gets the value(s) for summary (Simple summary (disease specific)). * creating it if it does * not exist. Will not return null. * *

* Definition: * A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific *

*/ public CodeableConceptDt getSummaryElement() { if (mySummary == null) { mySummary = new CodeableConceptDt(); } return mySummary; } /** * Sets the value(s) for summary (Simple summary (disease specific)) * *

* Definition: * A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific *

*/ public Stage setSummary(CodeableConceptDt theValue) { mySummary = theValue; return this; } /** * Gets the value(s) for assessment (Formal record of assessment). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reference to a formal record of the evidence on which the staging assessment is based *

*/ public java.util.List getAssessment() { if (myAssessment == null) { myAssessment = new java.util.ArrayList(); } return myAssessment; } /** * Gets the value(s) for assessment (Formal record of assessment). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reference to a formal record of the evidence on which the staging assessment is based *

*/ public java.util.List getAssessmentElement() { if (myAssessment == null) { myAssessment = new java.util.ArrayList(); } return myAssessment; } /** * Sets the value(s) for assessment (Formal record of assessment) * *

* Definition: * Reference to a formal record of the evidence on which the staging assessment is based *

*/ public Stage setAssessment(java.util.List theValue) { myAssessment = theValue; return this; } /** * Adds and returns a new value for assessment (Formal record of assessment) * *

* Definition: * Reference to a formal record of the evidence on which the staging assessment is based *

*/ public ResourceReferenceDt addAssessment() { ResourceReferenceDt newType = new ResourceReferenceDt(); getAssessment().add(newType); return newType; } } /** * Block class for child element: Condition.evidence (Supporting evidence) * *

* Definition: * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed *

*/ @Block() public static class Evidence extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Manifestation/symptom", formalDefinition="A manifestation or symptom that led to the recording of this condition" ) private CodeableConceptDt myCode; @Child(name="detail", order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ IResource.class }) @Description( shortDefinition="Supporting information found elsewhere", formalDefinition="Links to other relevant information, including pathology reports" ) private java.util.List myDetail; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDetail); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDetail); } /** * Gets the value(s) for code (Manifestation/symptom). * creating it if it does * not exist. Will not return null. * *

* Definition: * A manifestation or symptom that led to the recording of this condition *

*/ public CodeableConceptDt getCode() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Gets the value(s) for code (Manifestation/symptom). * creating it if it does * not exist. Will not return null. * *

* Definition: * A manifestation or symptom that led to the recording of this condition *

*/ public CodeableConceptDt getCodeElement() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Sets the value(s) for code (Manifestation/symptom) * *

* Definition: * A manifestation or symptom that led to the recording of this condition *

*/ public Evidence setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for detail (Supporting information found elsewhere). * creating it if it does * not exist. Will not return null. * *

* Definition: * Links to other relevant information, including pathology reports *

*/ public java.util.List getDetail() { if (myDetail == null) { myDetail = new java.util.ArrayList(); } return myDetail; } /** * Gets the value(s) for detail (Supporting information found elsewhere). * creating it if it does * not exist. Will not return null. * *

* Definition: * Links to other relevant information, including pathology reports *

*/ public java.util.List getDetailElement() { if (myDetail == null) { myDetail = new java.util.ArrayList(); } return myDetail; } /** * Sets the value(s) for detail (Supporting information found elsewhere) * *

* Definition: * Links to other relevant information, including pathology reports *

*/ public Evidence setDetail(java.util.List theValue) { myDetail = theValue; return this; } /** * Adds and returns a new value for detail (Supporting information found elsewhere) * *

* Definition: * Links to other relevant information, including pathology reports *

*/ public ResourceReferenceDt addDetail() { ResourceReferenceDt newType = new ResourceReferenceDt(); getDetail().add(newType); return newType; } } /** * Block class for child element: Condition.location (Anatomical location, if relevant) * *

* Definition: * The anatomical location where this condition manifests itself *

*/ @Block() public static class Location extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Location - may include laterality", formalDefinition="Code that identifies the structural location" ) private CodeableConceptDt myCode; @Child(name="detail", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Precise location details", formalDefinition="Detailed anatomical location information" ) private StringDt myDetail; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDetail); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDetail); } /** * Gets the value(s) for code (Location - may include laterality). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code that identifies the structural location *

*/ public CodeableConceptDt getCode() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Gets the value(s) for code (Location - may include laterality). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code that identifies the structural location *

*/ public CodeableConceptDt getCodeElement() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Sets the value(s) for code (Location - may include laterality) * *

* Definition: * Code that identifies the structural location *

*/ public Location setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for detail (Precise location details). * creating it if it does * not exist. Will not return null. * *

* Definition: * Detailed anatomical location information *

*/ public StringDt getDetail() { if (myDetail == null) { myDetail = new StringDt(); } return myDetail; } /** * Gets the value(s) for detail (Precise location details). * creating it if it does * not exist. Will not return null. * *

* Definition: * Detailed anatomical location information *

*/ public StringDt getDetailElement() { if (myDetail == null) { myDetail = new StringDt(); } return myDetail; } /** * Sets the value(s) for detail (Precise location details) * *

* Definition: * Detailed anatomical location information *

*/ public Location setDetail(StringDt theValue) { myDetail = theValue; return this; } /** * Sets the value for detail (Precise location details) * *

* Definition: * Detailed anatomical location information *

*/ public Location setDetail( String theString) { myDetail = new StringDt(theString); return this; } } /** * Block class for child element: Condition.relatedItem (Causes or precedents for this Condition) * *

* Definition: * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition *

*/ @Block() public static class RelatedItem extends BaseIdentifiableElement implements IResourceBlock { @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="due-to | following", formalDefinition="The type of relationship that this condition has to the related item" ) private BoundCodeDt myType; @Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Relationship target by means of a predefined code", formalDefinition="Code that identifies the target of this relationship. The code takes the place of a detailed instance target" ) private CodeableConceptDt myCode; @Child(name="target", order=2, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Condition.class, ca.uhn.fhir.model.dstu.resource.Procedure.class, ca.uhn.fhir.model.dstu.resource.MedicationAdministration.class, ca.uhn.fhir.model.dstu.resource.Immunization.class, ca.uhn.fhir.model.dstu.resource.MedicationStatement.class }) @Description( shortDefinition="Relationship target resource", formalDefinition="Target of the relationship" ) private ResourceReferenceDt myTarget; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myCode, myTarget); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myCode, myTarget); } /** * Gets the value(s) for type (due-to | following). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of relationship that this condition has to the related item *

*/ public BoundCodeDt getType() { if (myType == null) { myType = new BoundCodeDt(ConditionRelationshipTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (due-to | following). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of relationship that this condition has to the related item *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(ConditionRelationshipTypeEnum.VALUESET_BINDER); } return myType; } /** * Sets the value(s) for type (due-to | following) * *

* Definition: * The type of relationship that this condition has to the related item *

*/ public RelatedItem setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type (due-to | following) * *

* Definition: * The type of relationship that this condition has to the related item *

*/ public RelatedItem setType(ConditionRelationshipTypeEnum theValue) { getType().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for code (Relationship target by means of a predefined code). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code that identifies the target of this relationship. The code takes the place of a detailed instance target *

*/ public CodeableConceptDt getCode() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Gets the value(s) for code (Relationship target by means of a predefined code). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code that identifies the target of this relationship. The code takes the place of a detailed instance target *

*/ public CodeableConceptDt getCodeElement() { if (myCode == null) { myCode = new CodeableConceptDt(); } return myCode; } /** * Sets the value(s) for code (Relationship target by means of a predefined code) * *

* Definition: * Code that identifies the target of this relationship. The code takes the place of a detailed instance target *

*/ public RelatedItem setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for target (Relationship target resource). * creating it if it does * not exist. Will not return null. * *

* Definition: * Target of the relationship *

*/ public ResourceReferenceDt getTarget() { if (myTarget == null) { myTarget = new ResourceReferenceDt(); } return myTarget; } /** * Gets the value(s) for target (Relationship target resource). * creating it if it does * not exist. Will not return null. * *

* Definition: * Target of the relationship *

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

* Definition: * Target of the relationship *

*/ public RelatedItem setTarget(ResourceReferenceDt theValue) { myTarget = theValue; return this; } } @Override public String getResourceName() { return "Condition"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy