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

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

The newest version!
















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

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

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


/**
 * HAPI/FHIR Observation Resource
 * (clinical.diagnostics)
 *
 * 

* Definition: * Measurements and simple assertions made about a patient, device or other subject. *

* *

* Requirements: * Observations are a key aspect of healthcare. This resource is used to capture those that do not require more sophisticated mechanisms. *

* *

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

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

* Description: The code of the observation type
* Type: token
* Path: Observation.code
*

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

* Description: The code of the observation type
* Type: token
* Path: Observation.code
*

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

* Description: The component code of the observation type
* Type: token
* Path: Observation.component.code
*

*/ @SearchParamDefinition(name="component-code", path="Observation.component.code", description="The component code of the observation type", type="token" ) public static final String SP_COMPONENT_CODE = "component-code"; /** * Fluent Client search parameter constant for component-code *

* Description: The component code of the observation type
* Type: token
* Path: Observation.component.code
*

*/ public static final TokenClientParam COMPONENT_CODE = new TokenClientParam(SP_COMPONENT_CODE); /** * Search parameter constant for value-quantity *

* Description: The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)
* Type: quantity
* Path: Observation.valueQuantity
*

*/ @SearchParamDefinition(name="value-quantity", path="Observation.valueQuantity", description="The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) public static final String SP_VALUE_QUANTITY = "value-quantity"; /** * Fluent Client search parameter constant for value-quantity *

* Description: The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)
* Type: quantity
* Path: Observation.valueQuantity
*

*/ public static final QuantityClientParam VALUE_QUANTITY = new QuantityClientParam(SP_VALUE_QUANTITY); /** * Search parameter constant for component-value-quantity *

* Description: The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)
* Type: quantity
* Path: Observation.component.valueQuantity
*

*/ @SearchParamDefinition(name="component-value-quantity", path="Observation.component.valueQuantity", description="The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) public static final String SP_COMPONENT_VALUE_QUANTITY = "component-value-quantity"; /** * Fluent Client search parameter constant for component-value-quantity *

* Description: The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)
* Type: quantity
* Path: Observation.component.valueQuantity
*

*/ public static final QuantityClientParam COMPONENT_VALUE_QUANTITY = new QuantityClientParam(SP_COMPONENT_VALUE_QUANTITY); /** * Search parameter constant for value-concept *

* Description: The value of the observation, if the value is a CodeableConcept
* Type: token
* Path: Observation.valueCodeableConcept
*

*/ @SearchParamDefinition(name="value-concept", path="Observation.valueCodeableConcept", description="The value of the observation, if the value is a CodeableConcept", type="token" ) public static final String SP_VALUE_CONCEPT = "value-concept"; /** * Fluent Client search parameter constant for value-concept *

* Description: The value of the observation, if the value is a CodeableConcept
* Type: token
* Path: Observation.valueCodeableConcept
*

*/ public static final TokenClientParam VALUE_CONCEPT = new TokenClientParam(SP_VALUE_CONCEPT); /** * Search parameter constant for component-value-concept *

* Description: The value of the component observation, if the value is a CodeableConcept
* Type: token
* Path: Observation.component.valueCodeableConcept
*

*/ @SearchParamDefinition(name="component-value-concept", path="Observation.component.valueCodeableConcept", description="The value of the component observation, if the value is a CodeableConcept", type="token" ) public static final String SP_COMPONENT_VALUE_CONCEPT = "component-value-concept"; /** * Fluent Client search parameter constant for component-value-concept *

* Description: The value of the component observation, if the value is a CodeableConcept
* Type: token
* Path: Observation.component.valueCodeableConcept
*

*/ public static final TokenClientParam COMPONENT_VALUE_CONCEPT = new TokenClientParam(SP_COMPONENT_VALUE_CONCEPT); /** * Search parameter constant for value-date *

* Description: The value of the observation, if the value is a date or period of time
* Type: date
* Path: Observation.valueDateTime | Observation.valuePeriod
*

*/ @SearchParamDefinition(name="value-date", path="Observation.valueDateTime | Observation.valuePeriod", description="The value of the observation, if the value is a date or period of time", type="date" ) public static final String SP_VALUE_DATE = "value-date"; /** * Fluent Client search parameter constant for value-date *

* Description: The value of the observation, if the value is a date or period of time
* Type: date
* Path: Observation.valueDateTime | Observation.valuePeriod
*

*/ public static final DateClientParam VALUE_DATE = new DateClientParam(SP_VALUE_DATE); /** * Search parameter constant for value-string *

* Description: The value of the observation, if the value is a string, and also searches in CodeableConcept.text
* Type: string
* Path: Observation.valueString
*

*/ @SearchParamDefinition(name="value-string", path="Observation.valueString", description="The value of the observation, if the value is a string, and also searches in CodeableConcept.text", type="string" ) public static final String SP_VALUE_STRING = "value-string"; /** * Fluent Client search parameter constant for value-string *

* Description: The value of the observation, if the value is a string, and also searches in CodeableConcept.text
* Type: string
* Path: Observation.valueString
*

*/ public static final StringClientParam VALUE_STRING = new StringClientParam(SP_VALUE_STRING); /** * Search parameter constant for component-value-string *

* Description: The value of the component observation, if the value is a string, and also searches in CodeableConcept.text
* Type: string
* Path: Observation.component.valueString
*

*/ @SearchParamDefinition(name="component-value-string", path="Observation.component.valueString", description="The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", type="string" ) public static final String SP_COMPONENT_VALUE_STRING = "component-value-string"; /** * Fluent Client search parameter constant for component-value-string *

* Description: The value of the component observation, if the value is a string, and also searches in CodeableConcept.text
* Type: string
* Path: Observation.component.valueString
*

*/ public static final StringClientParam COMPONENT_VALUE_STRING = new StringClientParam(SP_COMPONENT_VALUE_STRING); /** * Search parameter constant for date *

* Description: Obtained date/time. If the obtained element is a period, a date that falls in the period
* Type: date
* Path: Observation.effective[x]
*

*/ @SearchParamDefinition(name="date", path="Observation.effective[x]", description="Obtained date/time. If the obtained element is a period, a date that falls in the period", type="date" ) public static final String SP_DATE = "date"; /** * Fluent Client search parameter constant for date *

* Description: Obtained date/time. If the obtained element is a period, a date that falls in the period
* Type: date
* Path: Observation.effective[x]
*

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

* Description: The status of the observation
* Type: token
* Path: Observation.status
*

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

* Description: The status of the observation
* Type: token
* Path: Observation.status
*

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

* Description: The subject that the observation is about
* Type: reference
* Path: Observation.subject
*

*/ @SearchParamDefinition(name="subject", path="Observation.subject", description="The subject that the observation is about", type="reference" , providesMembershipIn={ @Compartment(name="Patient") , @Compartment(name="Device") } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description: The subject that the observation is about
* Type: reference
* Path: Observation.subject
*

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

* Description: Who performed the observation
* Type: reference
* Path: Observation.performer
*

*/ @SearchParamDefinition(name="performer", path="Observation.performer", description="Who performed the observation", type="reference" , providesMembershipIn={ @Compartment(name="Patient") , @Compartment(name="RelatedPerson") , @Compartment(name="Practitioner") } ) public static final String SP_PERFORMER = "performer"; /** * Fluent Client search parameter constant for performer *

* Description: Who performed the observation
* Type: reference
* Path: Observation.performer
*

*/ public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); /** * Search parameter constant for specimen *

* Description:
* Type: reference
* Path: Observation.specimen
*

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

* Description:
* Type: reference
* Path: Observation.specimen
*

*/ public static final ReferenceClientParam SPECIMEN = new ReferenceClientParam(SP_SPECIMEN); /** * Search parameter constant for related-type *

* Description:
* Type: token
* Path: Observation.related.type
*

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

* Description:
* Type: token
* Path: Observation.related.type
*

*/ public static final TokenClientParam RELATED_TYPE = new TokenClientParam(SP_RELATED_TYPE); /** * Search parameter constant for related-target *

* Description:
* Type: reference
* Path: Observation.related.target
*

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

* Description:
* Type: reference
* Path: Observation.related.target
*

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

* Description: Healthcare event related to the observation
* Type: reference
* Path: Observation.encounter
*

*/ @SearchParamDefinition(name="encounter", path="Observation.encounter", description="Healthcare event related to the observation", type="reference" , providesMembershipIn={ @Compartment(name="Encounter") } ) public static final String SP_ENCOUNTER = "encounter"; /** * Fluent Client search parameter constant for encounter *

* Description: Healthcare event related to the observation
* Type: reference
* Path: Observation.encounter
*

*/ public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); /** * Search parameter constant for data-absent-reason *

* Description: The reason why the expected value in the element Observation.value[x] is missing.
* Type: token
* Path: Observation.dataAbsentReason
*

*/ @SearchParamDefinition(name="data-absent-reason", path="Observation.dataAbsentReason", description="The reason why the expected value in the element Observation.value[x] is missing.", type="token" ) public static final String SP_DATA_ABSENT_REASON = "data-absent-reason"; /** * Fluent Client search parameter constant for data-absent-reason *

* Description: The reason why the expected value in the element Observation.value[x] is missing.
* Type: token
* Path: Observation.dataAbsentReason
*

*/ public static final TokenClientParam DATA_ABSENT_REASON = new TokenClientParam(SP_DATA_ABSENT_REASON); /** * Search parameter constant for component-data-absent-reason *

* Description: The reason why the expected value in the element Observation.component.value[x] is missing.
* Type: token
* Path: Observation.component.dataAbsentReason
*

*/ @SearchParamDefinition(name="component-data-absent-reason", path="Observation.component.dataAbsentReason", description="The reason why the expected value in the element Observation.component.value[x] is missing.", type="token" ) public static final String SP_COMPONENT_DATA_ABSENT_REASON = "component-data-absent-reason"; /** * Fluent Client search parameter constant for component-data-absent-reason *

* Description: The reason why the expected value in the element Observation.component.value[x] is missing.
* Type: token
* Path: Observation.component.dataAbsentReason
*

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

* Description: The subject that the observation is about (if patient)
* Type: reference
* Path: Observation.subject
*

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

* Description: The subject that the observation is about (if patient)
* Type: reference
* Path: Observation.subject
*

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

* Description: The unique id for a particular observation
* Type: token
* Path: Observation.identifier
*

*/ @SearchParamDefinition(name="identifier", path="Observation.identifier", description="The unique id for a particular observation", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description: The unique id for a particular observation
* Type: token
* Path: Observation.identifier
*

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

* Description: The Device that generated the observation data.
* Type: reference
* Path: Observation.device
*

*/ @SearchParamDefinition(name="device", path="Observation.device", description="The Device that generated the observation data.", type="reference" , providesMembershipIn={ @Compartment(name="Device") } ) public static final String SP_DEVICE = "device"; /** * Fluent Client search parameter constant for device *

* Description: The Device that generated the observation data.
* Type: reference
* Path: Observation.device
*

*/ public static final ReferenceClientParam DEVICE = new ReferenceClientParam(SP_DEVICE); /** * Search parameter constant for category *

* Description: The classification of the type of observation
* Type: token
* Path: Observation.category
*

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

* Description: The classification of the type of observation
* Type: token
* Path: Observation.category
*

*/ public static final TokenClientParam CATEGORY = new TokenClientParam(SP_CATEGORY); /** * Search parameter constant for code-value-quantity *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ @SearchParamDefinition(name="code-value-quantity", path="code & value[x]", description="Both code and one of the value parameters", type="composite" , compositeOf={ "code", "value-quantity" } ) public static final String SP_CODE_VALUE_QUANTITY = "code-value-quantity"; /** * Fluent Client search parameter constant for code-value-quantity *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ public static final CompositeClientParam CODE_VALUE_QUANTITY = new CompositeClientParam(SP_CODE_VALUE_QUANTITY); /** * Search parameter constant for code-value-concept *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ @SearchParamDefinition(name="code-value-concept", path="code & value[x]", description="Both code and one of the value parameters", type="composite" , compositeOf={ "code", "value-concept" } ) public static final String SP_CODE_VALUE_CONCEPT = "code-value-concept"; /** * Fluent Client search parameter constant for code-value-concept *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ public static final CompositeClientParam CODE_VALUE_CONCEPT = new CompositeClientParam(SP_CODE_VALUE_CONCEPT); /** * Search parameter constant for code-value-date *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ @SearchParamDefinition(name="code-value-date", path="code & value[x]", description="Both code and one of the value parameters", type="composite" , compositeOf={ "code", "value-date" } ) public static final String SP_CODE_VALUE_DATE = "code-value-date"; /** * Fluent Client search parameter constant for code-value-date *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ public static final CompositeClientParam CODE_VALUE_DATE = new CompositeClientParam(SP_CODE_VALUE_DATE); /** * Search parameter constant for code-value-string *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ @SearchParamDefinition(name="code-value-string", path="code & value[x]", description="Both code and one of the value parameters", type="composite" , compositeOf={ "code", "value-string" } ) public static final String SP_CODE_VALUE_STRING = "code-value-string"; /** * Fluent Client search parameter constant for code-value-string *

* Description: Both code and one of the value parameters
* Type: composite
* Path: code & value[x]
*

*/ public static final CompositeClientParam CODE_VALUE_STRING = new CompositeClientParam(SP_CODE_VALUE_STRING); /** * Search parameter constant for component-code-component-value-quantity *

* Description: Both component code and one of the component value parameters
* Type: composite
* Path: component-code & component-value[x]
*

*/ @SearchParamDefinition(name="component-code-component-value-quantity", path="component-code & component-value[x]", description="Both component code and one of the component value parameters", type="composite" , compositeOf={ "component-code", "component-value-quantity" } ) public static final String SP_COMPONENT_CODE_COMPONENT_VALUE_QUANTITY = "component-code-component-value-quantity"; /** * Fluent Client search parameter constant for component-code-component-value-quantity *

* Description: Both component code and one of the component value parameters
* Type: composite
* Path: component-code & component-value[x]
*

*/ public static final CompositeClientParam COMPONENT_CODE_COMPONENT_VALUE_QUANTITY = new CompositeClientParam(SP_COMPONENT_CODE_COMPONENT_VALUE_QUANTITY); /** * Search parameter constant for component-code-component-value-concept *

* Description: Both component code and one of the component value parameters
* Type: composite
* Path: component-code & component-value[x]
*

*/ @SearchParamDefinition(name="component-code-component-value-concept", path="component-code & component-value[x]", description="Both component code and one of the component value parameters", type="composite" , compositeOf={ "component-code", "component-value-concept" } ) public static final String SP_COMPONENT_CODE_COMPONENT_VALUE_CONCEPT = "component-code-component-value-concept"; /** * Fluent Client search parameter constant for component-code-component-value-concept *

* Description: Both component code and one of the component value parameters
* Type: composite
* Path: component-code & component-value[x]
*

*/ public static final CompositeClientParam COMPONENT_CODE_COMPONENT_VALUE_CONCEPT = new CompositeClientParam(SP_COMPONENT_CODE_COMPONENT_VALUE_CONCEPT); /** * Search parameter constant for component-code-component-value-string *

* Description: Both component code and one of the component value parameters
* Type: composite
* Path: component-code & component-value[x]
*

*/ @SearchParamDefinition(name="component-code-component-value-string", path="component-code & component-value[x]", description="Both component code and one of the component value parameters", type="composite" , compositeOf={ "component-code", "component-value-string" } ) public static final String SP_COMPONENT_CODE_COMPONENT_VALUE_STRING = "component-code-component-value-string"; /** * Fluent Client search parameter constant for component-code-component-value-string *

* Description: Both component code and one of the component value parameters
* Type: composite
* Path: component-code & component-value[x]
*

*/ public static final CompositeClientParam COMPONENT_CODE_COMPONENT_VALUE_STRING = new CompositeClientParam(SP_COMPONENT_CODE_COMPONENT_VALUE_STRING); /** * Search parameter constant for related-target-related-type *

* Description: Related Observations - search on related-type and related-target together
* Type: composite
* Path: related-target & related-type
*

*/ @SearchParamDefinition(name="related-target-related-type", path="related-target & related-type", description="Related Observations - search on related-type and related-target together", type="composite" , compositeOf={ "related-target", "related-type" } ) public static final String SP_RELATED_TARGET_RELATED_TYPE = "related-target-related-type"; /** * Fluent Client search parameter constant for related-target-related-type *

* Description: Related Observations - search on related-type and related-target together
* Type: composite
* Path: related-target & related-type
*

*/ public static final CompositeClientParam RELATED_TARGET_RELATED_TYPE = new CompositeClientParam(SP_RELATED_TARGET_RELATED_TYPE); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:device". */ public static final Include INCLUDE_DEVICE = new Include("Observation:device"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:encounter". */ public static final Include INCLUDE_ENCOUNTER = new Include("Observation:encounter"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:patient". */ public static final Include INCLUDE_PATIENT = new Include("Observation:patient"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:performer". */ public static final Include INCLUDE_PERFORMER = new Include("Observation:performer"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:related-target". */ public static final Include INCLUDE_RELATED_TARGET = new Include("Observation:related-target"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:specimen". */ public static final Include INCLUDE_SPECIMEN = new Include("Observation:specimen"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Observation:subject". */ public static final Include INCLUDE_SUBJECT = new Include("Observation:subject"); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="id", formalDefinition="A unique identifier for the simple observation instance." ) private java.util.List myIdentifier; @Child(name="status", type=CodeDt.class, order=1, min=1, max=1, summary=true, modifier=true) @Description( shortDefinition="status", formalDefinition="The status of the result value" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/observation-status") private BoundCodeDt myStatus; @Child(name="category", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="class", formalDefinition="A code that classifies the general type of observation being made. This is used for searching, sorting and display purposes." ) private CodeableConceptDt myCategory; @Child(name="code", type=CodeableConceptDt.class, order=3, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="what", formalDefinition="Describes what was observed. Sometimes this is called the observation \"name\"" ) private CodeableConceptDt myCode; @Child(name="subject", order=4, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Group.class, ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Location.class }) @Description( shortDefinition="who.focus", formalDefinition="The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor, other observer (for example a relative or EMT), or any observation made about the subject." ) private ResourceReferenceDt mySubject; @Child(name="encounter", order=5, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Encounter.class }) @Description( shortDefinition="context", formalDefinition="The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made" ) private ResourceReferenceDt myEncounter; @Child(name="effective", order=6, min=0, max=1, summary=true, modifier=false, type={ DateTimeDt.class, PeriodDt.class }) @Description( shortDefinition="when.done", formalDefinition="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself" ) private IDatatype myEffective; @Child(name="issued", type=InstantDt.class, order=7, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="when.recorded", formalDefinition="The date and time this observation was made available to providers, typically after the results have been reviewed and verified." ) private InstantDt myIssued; @Child(name="performer", order=8, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class }) @Description( shortDefinition="who.actor", formalDefinition="Who was responsible for asserting the observed value as \"true\"" ) private java.util.List myPerformer; @Child(name="value", order=9, min=0, max=1, summary=true, modifier=false, type={ QuantityDt.class, CodeableConceptDt.class, StringDt.class, RangeDt.class, RatioDt.class, SampledDataDt.class, AttachmentDt.class, TimeDt.class, DateTimeDt.class, PeriodDt.class }) @Description( shortDefinition="", formalDefinition="The information determined as a result of making the observation, if the information has a simple value" ) private IDatatype myValue; @Child(name="dataAbsentReason", type=CodeableConceptDt.class, order=10, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Provides a reason why the expected value in the element Observation.value[x] is missing." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-observation-valueabsentreason") private CodeableConceptDt myDataAbsentReason; @Child(name="interpretation", type=CodeableConceptDt.class, order=11, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-observation-interpretation") private CodeableConceptDt myInterpretation; @Child(name="comments", type=StringDt.class, order=12, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result." ) private StringDt myComments; @Child(name="bodySite", type=CodeableConceptDt.class, order=13, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the site on the subject's body where the observation was made (i.e. the target site)." ) private CodeableConceptDt myBodySite; @Child(name="method", type=CodeableConceptDt.class, order=14, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the mechanism used to perform the observation" ) private CodeableConceptDt myMethod; @Child(name="specimen", order=15, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Specimen.class }) @Description( shortDefinition="", formalDefinition="The specimen that was used when this observation was made" ) private ResourceReferenceDt mySpecimen; @Child(name="device", order=16, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.DeviceMetric.class }) @Description( shortDefinition="", formalDefinition="The device used to generate the observation data." ) private ResourceReferenceDt myDevice; @Child(name="referenceRange", order=17, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range" ) private java.util.List myReferenceRange; @Child(name="related", order=18, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code." ) private java.util.List myRelated; @Child(name="component", order=19, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations." ) private java.util.List myComponent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myCategory, myCode, mySubject, myEncounter, myEffective, myIssued, myPerformer, myValue, myDataAbsentReason, myInterpretation, myComments, myBodySite, myMethod, mySpecimen, myDevice, myReferenceRange, myRelated, myComponent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myCategory, myCode, mySubject, myEncounter, myEffective, myIssued, myPerformer, myValue, myDataAbsentReason, myInterpretation, myComments, myBodySite, myMethod, mySpecimen, myDevice, myReferenceRange, myRelated, myComponent); } /** * Gets the value(s) for identifier (id). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique identifier for the simple observation instance. *

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

* Definition: * A unique identifier for the simple observation instance. *

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

* Definition: * A unique identifier for the simple observation instance. *

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

* Definition: * A unique identifier for the simple observation instance. *

* @param theValue The identifier to add (must not be null) */ public Observation addIdentifier(IdentifierDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getIdentifier().add(theValue); return this; } /** * Gets the first repetition for identifier (id), * creating it if it does not already exist. * *

* Definition: * A unique identifier for the simple observation instance. *

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

* Definition: * The status of the result value *

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

* Definition: * The status of the result value *

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

* Definition: * The status of the result value *

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

* Definition: * The status of the result value *

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

* Definition: * A code that classifies the general type of observation being made. This is used for searching, sorting and display purposes. *

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

* Definition: * A code that classifies the general type of observation being made. This is used for searching, sorting and display purposes. *

*/ public Observation setCategory(CodeableConceptDt theValue) { myCategory = theValue; return this; } /** * Gets the value(s) for code (what). * creating it if it does * not exist. Will not return null. * *

* Definition: * Describes what was observed. Sometimes this is called the observation \"name\" *

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

* Definition: * Describes what was observed. Sometimes this is called the observation \"name\" *

*/ public Observation setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for subject (who.focus). * creating it if it does * not exist. Will not return null. * *

* Definition: * The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor, other observer (for example a relative or EMT), or any observation made about the subject. *

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

* Definition: * The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor, other observer (for example a relative or EMT), or any observation made about the subject. *

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

* Definition: * The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made *

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

* Definition: * The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made *

*/ public Observation setEncounter(ResourceReferenceDt theValue) { myEncounter = theValue; return this; } /** * Gets the value(s) for effective[x] (when.done). * creating it if it does * not exist. Will not return null. * *

* Definition: * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself *

*/ public IDatatype getEffective() { return myEffective; } /** * Sets the value(s) for effective[x] (when.done) * *

* Definition: * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself *

*/ public Observation setEffective(IDatatype theValue) { myEffective = theValue; return this; } /** * Gets the value(s) for issued (when.recorded). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date and time this observation was made available to providers, typically after the results have been reviewed and verified. *

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

* Definition: * The date and time this observation was made available to providers, typically after the results have been reviewed and verified. *

*/ public Date getIssued() { return getIssuedElement().getValue(); } /** * Sets the value(s) for issued (when.recorded) * *

* Definition: * The date and time this observation was made available to providers, typically after the results have been reviewed and verified. *

*/ public Observation setIssued(InstantDt theValue) { myIssued = theValue; return this; } /** * Sets the value for issued (when.recorded) * *

* Definition: * The date and time this observation was made available to providers, typically after the results have been reviewed and verified. *

*/ public Observation setIssuedWithMillisPrecision( Date theDate) { myIssued = new InstantDt(theDate); return this; } /** * Sets the value for issued (when.recorded) * *

* Definition: * The date and time this observation was made available to providers, typically after the results have been reviewed and verified. *

*/ public Observation setIssued( Date theDate, TemporalPrecisionEnum thePrecision) { myIssued = new InstantDt(theDate, thePrecision); return this; } /** * Gets the value(s) for performer (who.actor). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who was responsible for asserting the observed value as \"true\" *

*/ public java.util.List getPerformer() { if (myPerformer == null) { myPerformer = new java.util.ArrayList(); } return myPerformer; } /** * Sets the value(s) for performer (who.actor) * *

* Definition: * Who was responsible for asserting the observed value as \"true\" *

*/ public Observation setPerformer(java.util.List theValue) { myPerformer = theValue; return this; } /** * Adds and returns a new value for performer (who.actor) * *

* Definition: * Who was responsible for asserting the observed value as \"true\" *

*/ public ResourceReferenceDt addPerformer() { ResourceReferenceDt newType = new ResourceReferenceDt(); getPerformer().add(newType); return newType; } /** * Gets the value(s) for value[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The information determined as a result of making the observation, if the information has a simple value *

*/ public IDatatype getValue() { return myValue; } /** * Sets the value(s) for value[x] () * *

* Definition: * The information determined as a result of making the observation, if the information has a simple value *

*/ public Observation setValue(IDatatype theValue) { myValue = theValue; return this; } /** * Gets the value(s) for dataAbsentReason (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Provides a reason why the expected value in the element Observation.value[x] is missing. *

*/ public CodeableConceptDt getDataAbsentReason() { if (myDataAbsentReason == null) { myDataAbsentReason = new CodeableConceptDt(); } return myDataAbsentReason; } /** * Sets the value(s) for dataAbsentReason () * *

* Definition: * Provides a reason why the expected value in the element Observation.value[x] is missing. *

*/ public Observation setDataAbsentReason(CodeableConceptDt theValue) { myDataAbsentReason = theValue; return this; } /** * Gets the value(s) for interpretation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag. *

*/ public CodeableConceptDt getInterpretation() { if (myInterpretation == null) { myInterpretation = new CodeableConceptDt(); } return myInterpretation; } /** * Sets the value(s) for interpretation () * *

* Definition: * The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag. *

*/ public Observation setInterpretation(CodeableConceptDt theValue) { myInterpretation = theValue; return this; } /** * Gets the value(s) for comments (). * creating it if it does * not exist. Will not return null. * *

* Definition: * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. *

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

* Definition: * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. *

*/ public String getComments() { return getCommentsElement().getValue(); } /** * Sets the value(s) for comments () * *

* Definition: * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. *

*/ public Observation setComments(StringDt theValue) { myComments = theValue; return this; } /** * Sets the value for comments () * *

* Definition: * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. *

*/ public Observation setComments( String theString) { myComments = new StringDt(theString); return this; } /** * Gets the value(s) for bodySite (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the site on the subject's body where the observation was made (i.e. the target site). *

*/ public CodeableConceptDt getBodySite() { if (myBodySite == null) { myBodySite = new CodeableConceptDt(); } return myBodySite; } /** * Sets the value(s) for bodySite () * *

* Definition: * Indicates the site on the subject's body where the observation was made (i.e. the target site). *

*/ public Observation setBodySite(CodeableConceptDt theValue) { myBodySite = theValue; return this; } /** * Gets the value(s) for method (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the mechanism used to perform the observation *

*/ public CodeableConceptDt getMethod() { if (myMethod == null) { myMethod = new CodeableConceptDt(); } return myMethod; } /** * Sets the value(s) for method () * *

* Definition: * Indicates the mechanism used to perform the observation *

*/ public Observation setMethod(CodeableConceptDt theValue) { myMethod = theValue; return this; } /** * Gets the value(s) for specimen (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The specimen that was used when this observation was made *

*/ public ResourceReferenceDt getSpecimen() { if (mySpecimen == null) { mySpecimen = new ResourceReferenceDt(); } return mySpecimen; } /** * Sets the value(s) for specimen () * *

* Definition: * The specimen that was used when this observation was made *

*/ public Observation setSpecimen(ResourceReferenceDt theValue) { mySpecimen = theValue; return this; } /** * Gets the value(s) for device (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The device used to generate the observation data. *

*/ public ResourceReferenceDt getDevice() { if (myDevice == null) { myDevice = new ResourceReferenceDt(); } return myDevice; } /** * Sets the value(s) for device () * *

* Definition: * The device used to generate the observation data. *

*/ public Observation setDevice(ResourceReferenceDt theValue) { myDevice = theValue; return this; } /** * Gets the value(s) for referenceRange (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public java.util.List getReferenceRange() { if (myReferenceRange == null) { myReferenceRange = new java.util.ArrayList(); } return myReferenceRange; } /** * Sets the value(s) for referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public Observation setReferenceRange(java.util.List theValue) { myReferenceRange = theValue; return this; } /** * Adds and returns a new value for referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public ReferenceRange addReferenceRange() { ReferenceRange newType = new ReferenceRange(); getReferenceRange().add(newType); return newType; } /** * Adds a given new value for referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

* @param theValue The referenceRange to add (must not be null) */ public Observation addReferenceRange(ReferenceRange theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getReferenceRange().add(theValue); return this; } /** * Gets the first repetition for referenceRange (), * creating it if it does not already exist. * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public ReferenceRange getReferenceRangeFirstRep() { if (getReferenceRange().isEmpty()) { return addReferenceRange(); } return getReferenceRange().get(0); } /** * Gets the value(s) for related (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code. *

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

* Definition: * A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code. *

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

* Definition: * A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code. *

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

* Definition: * A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code. *

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

* Definition: * A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code. *

*/ public Related getRelatedFirstRep() { if (getRelated().isEmpty()) { return addRelated(); } return getRelated().get(0); } /** * Gets the value(s) for component (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. *

*/ public java.util.List getComponent() { if (myComponent == null) { myComponent = new java.util.ArrayList(); } return myComponent; } /** * Sets the value(s) for component () * *

* Definition: * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. *

*/ public Observation setComponent(java.util.List theValue) { myComponent = theValue; return this; } /** * Adds and returns a new value for component () * *

* Definition: * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. *

*/ public Component addComponent() { Component newType = new Component(); getComponent().add(newType); return newType; } /** * Adds a given new value for component () * *

* Definition: * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. *

* @param theValue The component to add (must not be null) */ public Observation addComponent(Component theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getComponent().add(theValue); return this; } /** * Gets the first repetition for component (), * creating it if it does not already exist. * *

* Definition: * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. *

*/ public Component getComponentFirstRep() { if (getComponent().isEmpty()) { return addComponent(); } return getComponent().get(0); } /** * Block class for child element: Observation.referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ @Block() public static class ReferenceRange extends BaseIdentifiableElement implements IResourceBlock { @Child(name="low", type=SimpleQuantityDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3)." ) private SimpleQuantityDt myLow; @Child(name="high", type=SimpleQuantityDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3)." ) private SimpleQuantityDt myHigh; @Child(name="meaning", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Code for the meaning of the reference range" ) private CodeableConceptDt myMeaning; @Child(name="age", type=RangeDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so" ) private RangeDt myAge; @Child(name="text", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of 'normals'." ) private StringDt myText; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh, myMeaning, myAge, myText); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh, myMeaning, myAge, myText); } /** * Gets the value(s) for low (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3). *

*/ public SimpleQuantityDt getLow() { if (myLow == null) { myLow = new SimpleQuantityDt(); } return myLow; } /** * Sets the value(s) for low () * *

* Definition: * The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3). *

*/ public ReferenceRange setLow(SimpleQuantityDt theValue) { myLow = theValue; return this; } /** * Gets the value(s) for high (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3). *

*/ public SimpleQuantityDt getHigh() { if (myHigh == null) { myHigh = new SimpleQuantityDt(); } return myHigh; } /** * Sets the value(s) for high () * *

* Definition: * The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3). *

*/ public ReferenceRange setHigh(SimpleQuantityDt theValue) { myHigh = theValue; return this; } /** * Gets the value(s) for meaning (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Code for the meaning of the reference range *

*/ public CodeableConceptDt getMeaning() { if (myMeaning == null) { myMeaning = new CodeableConceptDt(); } return myMeaning; } /** * Sets the value(s) for meaning () * *

* Definition: * Code for the meaning of the reference range *

*/ public ReferenceRange setMeaning(CodeableConceptDt theValue) { myMeaning = theValue; return this; } /** * Gets the value(s) for age (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so *

*/ public RangeDt getAge() { if (myAge == null) { myAge = new RangeDt(); } return myAge; } /** * Sets the value(s) for age () * *

* Definition: * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so *

*/ public ReferenceRange setAge(RangeDt theValue) { myAge = theValue; return this; } /** * Gets the value(s) for text (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of 'normals'. *

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

* Definition: * Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of 'normals'. *

*/ public String getText() { return getTextElement().getValue(); } /** * Sets the value(s) for text () * *

* Definition: * Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of 'normals'. *

*/ public ReferenceRange setText(StringDt theValue) { myText = theValue; return this; } /** * Sets the value for text () * *

* Definition: * Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of 'normals'. *

*/ public ReferenceRange setText( String theString) { myText = new StringDt(theString); return this; } } /** * Block class for child element: Observation.related () * *

* Definition: * A reference to another resource (usually another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code. *

*/ @Block() public static class Related extends BaseIdentifiableElement implements IResourceBlock { @Child(name="type", type=CodeDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A code specifying the kind of relationship that exists with the target resource" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/observation-relationshiptypes") private BoundCodeDt myType; @Child(name="target", order=1, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Observation.class, ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse.class }) @Description( shortDefinition="", formalDefinition="A reference to the observation or [[[QuestionnaireResponse]]] resource that is related to this observation" ) private ResourceReferenceDt myTarget; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myTarget); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myTarget); } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code specifying the kind of relationship that exists with the target resource *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A code specifying the kind of relationship that exists with the target resource *

*/ public String getType() { return getTypeElement().getValue(); } /** * Sets the value(s) for type () * *

* Definition: * A code specifying the kind of relationship that exists with the target resource *

*/ public Related setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type () * *

* Definition: * A code specifying the kind of relationship that exists with the target resource *

*/ public Related setType(ObservationRelationshipTypeEnum theValue) { setType(new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER, theValue)); /* getTypeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for target (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A reference to the observation or [[[QuestionnaireResponse]]] resource that is related to this observation *

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

* Definition: * A reference to the observation or [[[QuestionnaireResponse]]] resource that is related to this observation *

*/ public Related setTarget(ResourceReferenceDt theValue) { myTarget = theValue; return this; } } /** * Block class for child element: Observation.component () * *

* Definition: * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. *

*/ @Block() public static class Component extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="what", formalDefinition="Describes what was observed. Sometimes this is called the observation \"code\"" ) private CodeableConceptDt myCode; @Child(name="value", order=1, min=0, max=1, summary=true, modifier=false, type={ QuantityDt.class, CodeableConceptDt.class, StringDt.class, RangeDt.class, RatioDt.class, SampledDataDt.class, AttachmentDt.class, TimeDt.class, DateTimeDt.class, PeriodDt.class }) @Description( shortDefinition="", formalDefinition="The information determined as a result of making the observation, if the information has a simple value" ) private IDatatype myValue; @Child(name="dataAbsentReason", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Provides a reason why the expected value in the element Observation.value[x] is missing." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-observation-valueabsentreason") private CodeableConceptDt myDataAbsentReason; @Child(name="referenceRange", type=ReferenceRange.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range" ) private java.util.List myReferenceRange; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myValue, myDataAbsentReason, myReferenceRange); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myValue, myDataAbsentReason, myReferenceRange); } /** * Gets the value(s) for code (what). * creating it if it does * not exist. Will not return null. * *

* Definition: * Describes what was observed. Sometimes this is called the observation \"code\" *

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

* Definition: * Describes what was observed. Sometimes this is called the observation \"code\" *

*/ public Component setCode(CodeableConceptDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for value[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The information determined as a result of making the observation, if the information has a simple value *

*/ public IDatatype getValue() { return myValue; } /** * Sets the value(s) for value[x] () * *

* Definition: * The information determined as a result of making the observation, if the information has a simple value *

*/ public Component setValue(IDatatype theValue) { myValue = theValue; return this; } /** * Gets the value(s) for dataAbsentReason (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Provides a reason why the expected value in the element Observation.value[x] is missing. *

*/ public CodeableConceptDt getDataAbsentReason() { if (myDataAbsentReason == null) { myDataAbsentReason = new CodeableConceptDt(); } return myDataAbsentReason; } /** * Sets the value(s) for dataAbsentReason () * *

* Definition: * Provides a reason why the expected value in the element Observation.value[x] is missing. *

*/ public Component setDataAbsentReason(CodeableConceptDt theValue) { myDataAbsentReason = theValue; return this; } /** * Gets the value(s) for referenceRange (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public java.util.List getReferenceRange() { if (myReferenceRange == null) { myReferenceRange = new java.util.ArrayList(); } return myReferenceRange; } /** * Sets the value(s) for referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public Component setReferenceRange(java.util.List theValue) { myReferenceRange = theValue; return this; } /** * Adds and returns a new value for referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public ReferenceRange addReferenceRange() { ReferenceRange newType = new ReferenceRange(); getReferenceRange().add(newType); return newType; } /** * Adds a given new value for referenceRange () * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

* @param theValue The referenceRange to add (must not be null) */ public Component addReferenceRange(ReferenceRange theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getReferenceRange().add(theValue); return this; } /** * Gets the first repetition for referenceRange (), * creating it if it does not already exist. * *

* Definition: * Guidance on how to interpret the value by comparison to a normal or recommended range *

*/ public ReferenceRange getReferenceRangeFirstRep() { if (getReferenceRange().isEmpty()) { return addReferenceRange(); } return getReferenceRange().get(0); } } @Override public String getResourceName() { return "Observation"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy