
ca.uhn.fhir.model.dstu.resource.Observation Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR Observation Resource
* (Measurements and simple assertions)
*
*
* 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.dstu.resource.BaseResource
implements IResource {
/**
* Search parameter constant for name
*
* Description: The name of the observation type
* Type: token
* Path: Observation.name
*
*/
@SearchParamDefinition(name="name", path="Observation.name", description="The name of the observation type", type="token" )
public static final String SP_NAME = "name";
/**
* Fluent Client search parameter constant for name
*
* Description: The name of the observation type
* Type: token
* Path: Observation.name
*
*/
public static final TokenClientParam NAME = new TokenClientParam(SP_NAME);
/**
* 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.value[x]
*
*/
@SearchParamDefinition(name="value-quantity", path="Observation.value[x]", 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.value[x]
*
*/
public static final QuantityClientParam VALUE_QUANTITY = new QuantityClientParam(SP_VALUE_QUANTITY);
/**
* Search parameter constant for value-concept
*
* Description: The value of the observation, if the value is a CodeableConcept
* Type: token
* Path: Observation.value[x]
*
*/
@SearchParamDefinition(name="value-concept", path="Observation.value[x]", 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.value[x]
*
*/
public static final TokenClientParam VALUE_CONCEPT = new TokenClientParam(SP_VALUE_CONCEPT);
/**
* Search parameter constant for value-date
*
* Description: The value of the observation, if the value is a Period
* Type: date
* Path: Observation.value[x]
*
*/
@SearchParamDefinition(name="value-date", path="Observation.value[x]", description="The value of the observation, if the value is a Period", 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 Period
* Type: date
* Path: Observation.value[x]
*
*/
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.value[x]
*
*/
@SearchParamDefinition(name="value-string", path="Observation.value[x]", 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.value[x]
*
*/
public static final StringClientParam VALUE_STRING = new StringClientParam(SP_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.applies[x]
*
*/
@SearchParamDefinition(name="date", path="Observation.applies[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.applies[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 reliability
*
* Description: The reliability of the observation
* Type: token
* Path: Observation.reliability
*
*/
@SearchParamDefinition(name="reliability", path="Observation.reliability", description="The reliability of the observation", type="token" )
public static final String SP_RELIABILITY = "reliability";
/**
* Fluent Client search parameter constant for reliability
*
* Description: The reliability of the observation
* Type: token
* Path: Observation.reliability
*
*/
public static final TokenClientParam RELIABILITY = new TokenClientParam(SP_RELIABILITY);
/**
* 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" )
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);
/**
* 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");
/**
* Search parameter constant for performer
*
* Description: Who and/or what performed the observation
* Type: reference
* Path: Observation.performer
*
*/
@SearchParamDefinition(name="performer", path="Observation.performer", description="Who and/or what performed the observation", type="reference" )
public static final String SP_PERFORMER = "performer";
/**
* Fluent Client search parameter constant for performer
*
* Description: Who and/or what performed the observation
* Type: reference
* Path: Observation.performer
*
*/
public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER);
/**
* 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");
/**
* 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);
/**
* 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");
/**
* 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);
/**
* 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");
/**
* Search parameter constant for name-value-quantity
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
@SearchParamDefinition(name="name-value-quantity", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-quantity" } )
public static final String SP_NAME_VALUE_QUANTITY = "name-value-quantity";
/**
* Fluent Client search parameter constant for name-value-quantity
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
public static final CompositeClientParam NAME_VALUE_QUANTITY = new CompositeClientParam(SP_NAME_VALUE_QUANTITY);
/**
* Search parameter constant for name-value-concept
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
@SearchParamDefinition(name="name-value-concept", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-concept" } )
public static final String SP_NAME_VALUE_CONCEPT = "name-value-concept";
/**
* Fluent Client search parameter constant for name-value-concept
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
public static final CompositeClientParam NAME_VALUE_CONCEPT = new CompositeClientParam(SP_NAME_VALUE_CONCEPT);
/**
* Search parameter constant for name-value-date
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
@SearchParamDefinition(name="name-value-date", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-date" } )
public static final String SP_NAME_VALUE_DATE = "name-value-date";
/**
* Fluent Client search parameter constant for name-value-date
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
public static final CompositeClientParam NAME_VALUE_DATE = new CompositeClientParam(SP_NAME_VALUE_DATE);
/**
* Search parameter constant for name-value-string
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
@SearchParamDefinition(name="name-value-string", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-string" } )
public static final String SP_NAME_VALUE_STRING = "name-value-string";
/**
* Fluent Client search parameter constant for name-value-string
*
* Description: Both name and one of the value parameters
* Type: composite
* Path: name & value-[x]
*
*/
public static final CompositeClientParam NAME_VALUE_STRING = new CompositeClientParam(SP_NAME_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);
@Child(name="name", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Type of observation (code / type)",
formalDefinition="Describes what was observed. Sometimes this is called the observation \"code\""
)
private CodeableConceptDt myName;
@Child(name="value", order=1, min=0, max=1, summary=false, modifier=false, type={
QuantityDt.class, CodeableConceptDt.class, AttachmentDt.class, RatioDt.class, PeriodDt.class, SampledDataDt.class, StringDt.class })
@Description(
shortDefinition="Actual result",
formalDefinition="The information determined as a result of making the observation, if the information has a simple value"
)
private IDatatype myValue;
@Child(name="interpretation", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="High, low, normal, etc.",
formalDefinition="The assessment made based on the result of the observation."
)
private CodeableConceptDt myInterpretation;
@Child(name="comments", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Comments about result",
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="applies", order=4, min=0, max=1, summary=false, modifier=false, type={
DateTimeDt.class, PeriodDt.class })
@Description(
shortDefinition="Physiologically Relevant time/time-period for observation",
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 myApplies;
@Child(name="issued", type=InstantDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Date/Time this was made available",
formalDefinition=""
)
private InstantDt myIssued;
@Child(name="status", type=CodeDt.class, order=6, min=1, max=1, summary=false, modifier=true)
@Description(
shortDefinition="registered | preliminary | final | amended +",
formalDefinition="The status of the result value"
)
private BoundCodeDt myStatus;
@Child(name="reliability", type=CodeDt.class, order=7, min=1, max=1, summary=false, modifier=true)
@Description(
shortDefinition="ok | ongoing | early | questionable | calibrating | error +",
formalDefinition="An estimate of the degree to which quality issues have impacted on the value reported"
)
private BoundCodeDt myReliability;
@Child(name="bodySite", type=CodeableConceptDt.class, order=8, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Observed body part",
formalDefinition="Indicates where on the subject's body the observation was made."
)
private CodeableConceptDt myBodySite;
@Child(name="method", type=CodeableConceptDt.class, order=9, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="How it was done",
formalDefinition="Indicates the mechanism used to perform the observation"
)
private CodeableConceptDt myMethod;
@Child(name="identifier", type=IdentifierDt.class, order=10, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Unique Id for this particular observation",
formalDefinition="A unique identifier for the simple observation"
)
private IdentifierDt myIdentifier;
@Child(name="subject", order=11, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Location.class })
@Description(
shortDefinition="Who and/or what this is about",
formalDefinition="The thing the observation is being made about"
)
private ResourceReferenceDt mySubject;
@Child(name="specimen", order=12, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Specimen.class })
@Description(
shortDefinition="Specimen used for this observation",
formalDefinition="The specimen that was used when this observation was made"
)
private ResourceReferenceDt mySpecimen;
@Child(name="performer", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Organization.class })
@Description(
shortDefinition="Who did the observation",
formalDefinition="Who was responsible for asserting the observed value as \"true\""
)
private java.util.List myPerformer;
@Child(name="referenceRange", order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Provides guide for interpretation",
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=15, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Observations related to this observation",
formalDefinition="Related observations - either components, or previous observations, or statements of derivation"
)
private java.util.List myRelated;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myValue, myInterpretation, myComments, myApplies, myIssued, myStatus, myReliability, myBodySite, myMethod, myIdentifier, mySubject, mySpecimen, myPerformer, myReferenceRange, myRelated);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myValue, myInterpretation, myComments, myApplies, myIssued, myStatus, myReliability, myBodySite, myMethod, myIdentifier, mySubject, mySpecimen, myPerformer, myReferenceRange, myRelated);
}
/**
* Gets the value(s) for name (Type of observation (code / type)).
* 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 getName() {
if (myName == null) {
myName = new CodeableConceptDt();
}
return myName;
}
/**
* Gets the value(s) for name (Type of observation (code / type)).
* 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 getNameElement() {
if (myName == null) {
myName = new CodeableConceptDt();
}
return myName;
}
/**
* Sets the value(s) for name (Type of observation (code / type))
*
*
* Definition:
* Describes what was observed. Sometimes this is called the observation \"code\"
*
*/
public Observation setName(CodeableConceptDt theValue) {
myName = theValue;
return this;
}
/**
* Gets the value(s) for value[x] (Actual result).
* 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;
}
/**
* Gets the value(s) for value[x] (Actual result).
* 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 getValueElement() {
return myValue;
}
/**
* Sets the value(s) for value[x] (Actual result)
*
*
* 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 interpretation (High, low, normal, etc.).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The assessment made based on the result of the observation.
*
*/
public CodeableConceptDt getInterpretation() {
if (myInterpretation == null) {
myInterpretation = new CodeableConceptDt();
}
return myInterpretation;
}
/**
* Gets the value(s) for interpretation (High, low, normal, etc.).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The assessment made based on the result of the observation.
*
*/
public CodeableConceptDt getInterpretationElement() {
if (myInterpretation == null) {
myInterpretation = new CodeableConceptDt();
}
return myInterpretation;
}
/**
* Sets the value(s) for interpretation (High, low, normal, etc.)
*
*
* Definition:
* The assessment made based on the result of the observation.
*
*/
public Observation setInterpretation(CodeableConceptDt theValue) {
myInterpretation = theValue;
return this;
}
/**
* Gets the value(s) for comments (Comments about result).
* 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 getComments() {
if (myComments == null) {
myComments = new StringDt();
}
return myComments;
}
/**
* Gets the value(s) for comments (Comments about result).
* 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;
}
/**
* Sets the value(s) for comments (Comments about result)
*
*
* 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 (Comments about result)
*
*
* 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 applies[x] (Physiologically Relevant time/time-period for observation).
* 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 getApplies() {
return myApplies;
}
/**
* Gets the value(s) for applies[x] (Physiologically Relevant time/time-period for observation).
* 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 getAppliesElement() {
return myApplies;
}
/**
* Sets the value(s) for applies[x] (Physiologically Relevant time/time-period for observation)
*
*
* 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 setApplies(IDatatype theValue) {
myApplies = theValue;
return this;
}
/**
* Gets the value(s) for issued (Date/Time this was made available).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public InstantDt getIssued() {
if (myIssued == null) {
myIssued = new InstantDt();
}
return myIssued;
}
/**
* Gets the value(s) for issued (Date/Time this was made available).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public InstantDt getIssuedElement() {
if (myIssued == null) {
myIssued = new InstantDt();
}
return myIssued;
}
/**
* Sets the value(s) for issued (Date/Time this was made available)
*
*
* Definition:
*
*
*/
public Observation setIssued(InstantDt theValue) {
myIssued = theValue;
return this;
}
/**
* Sets the value for issued (Date/Time this was made available)
*
*
* Definition:
*
*
*/
public Observation setIssuedWithMillisPrecision( Date theDate) {
myIssued = new InstantDt(theDate);
return this;
}
/**
* Sets the value for issued (Date/Time this was made available)
*
*
* Definition:
*
*
*/
public Observation setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
myIssued = new InstantDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for status (registered | preliminary | final | amended +).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The status of the result value
*
*/
public BoundCodeDt getStatus() {
if (myStatus == null) {
myStatus = new BoundCodeDt(ObservationStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status (registered | preliminary | final | amended +).
* 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;
}
/**
* Sets the value(s) for status (registered | preliminary | final | amended +)
*
*
* Definition:
* The status of the result value
*
*/
public Observation setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status (registered | preliminary | final | amended +)
*
*
* Definition:
* The status of the result value
*
*/
public Observation setStatus(ObservationStatusEnum theValue) {
getStatus().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An estimate of the degree to which quality issues have impacted on the value reported
*
*/
public BoundCodeDt getReliability() {
if (myReliability == null) {
myReliability = new BoundCodeDt(ObservationReliabilityEnum.VALUESET_BINDER);
}
return myReliability;
}
/**
* Gets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An estimate of the degree to which quality issues have impacted on the value reported
*
*/
public BoundCodeDt getReliabilityElement() {
if (myReliability == null) {
myReliability = new BoundCodeDt(ObservationReliabilityEnum.VALUESET_BINDER);
}
return myReliability;
}
/**
* Sets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +)
*
*
* Definition:
* An estimate of the degree to which quality issues have impacted on the value reported
*
*/
public Observation setReliability(BoundCodeDt theValue) {
myReliability = theValue;
return this;
}
/**
* Sets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +)
*
*
* Definition:
* An estimate of the degree to which quality issues have impacted on the value reported
*
*/
public Observation setReliability(ObservationReliabilityEnum theValue) {
getReliability().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for bodySite (Observed body part).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates where on the subject's body the observation was made.
*
*/
public CodeableConceptDt getBodySite() {
if (myBodySite == null) {
myBodySite = new CodeableConceptDt();
}
return myBodySite;
}
/**
* Gets the value(s) for bodySite (Observed body part).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates where on the subject's body the observation was made.
*
*/
public CodeableConceptDt getBodySiteElement() {
if (myBodySite == null) {
myBodySite = new CodeableConceptDt();
}
return myBodySite;
}
/**
* Sets the value(s) for bodySite (Observed body part)
*
*
* Definition:
* Indicates where on the subject's body the observation was made.
*
*/
public Observation setBodySite(CodeableConceptDt theValue) {
myBodySite = theValue;
return this;
}
/**
* Gets the value(s) for method (How it was done).
* 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;
}
/**
* Gets the value(s) for method (How it was done).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates the mechanism used to perform the observation
*
*/
public CodeableConceptDt getMethodElement() {
if (myMethod == null) {
myMethod = new CodeableConceptDt();
}
return myMethod;
}
/**
* Sets the value(s) for method (How it was done)
*
*
* Definition:
* Indicates the mechanism used to perform the observation
*
*/
public Observation setMethod(CodeableConceptDt theValue) {
myMethod = theValue;
return this;
}
/**
* Gets the value(s) for identifier (Unique Id for this particular observation).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A unique identifier for the simple observation
*
*/
public IdentifierDt getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new IdentifierDt();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier (Unique Id for this particular observation).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A unique identifier for the simple observation
*
*/
public IdentifierDt getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new IdentifierDt();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (Unique Id for this particular observation)
*
*
* Definition:
* A unique identifier for the simple observation
*
*/
public Observation setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Sets the value for identifier (Unique Id for this particular observation)
*
*
* Definition:
* A unique identifier for the simple observation
*
*/
public Observation setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel);
return this;
}
/**
* Sets the value for identifier (Unique Id for this particular observation)
*
*
* Definition:
* A unique identifier for the simple observation
*
*/
public Observation setIdentifier( String theSystem, String theValue) {
myIdentifier = new IdentifierDt(theSystem, theValue);
return this;
}
/**
* Gets the value(s) for subject (Who and/or what this is about).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The thing the observation is being made about
*
*/
public ResourceReferenceDt getSubject() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Gets the value(s) for subject (Who and/or what this is about).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The thing the observation is being made about
*
*/
public ResourceReferenceDt getSubjectElement() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Sets the value(s) for subject (Who and/or what this is about)
*
*
* Definition:
* The thing the observation is being made about
*
*/
public Observation setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
return this;
}
/**
* Gets the value(s) for specimen (Specimen used for this observation).
* 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;
}
/**
* Gets the value(s) for specimen (Specimen used for this observation).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The specimen that was used when this observation was made
*
*/
public ResourceReferenceDt getSpecimenElement() {
if (mySpecimen == null) {
mySpecimen = new ResourceReferenceDt();
}
return mySpecimen;
}
/**
* Sets the value(s) for specimen (Specimen used for this observation)
*
*
* 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 performer (Who did the observation).
* 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;
}
/**
* Gets the value(s) for performer (Who did the observation).
* 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 getPerformerElement() {
if (myPerformer == null) {
myPerformer = new java.util.ArrayList();
}
return myPerformer;
}
/**
* Sets the value(s) for performer (Who did the observation)
*
*
* 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 did the observation)
*
*
* 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 referenceRange (Provides guide for interpretation).
* 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;
}
/**
* Gets the value(s) for referenceRange (Provides guide for interpretation).
* 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 getReferenceRangeElement() {
if (myReferenceRange == null) {
myReferenceRange = new java.util.ArrayList();
}
return myReferenceRange;
}
/**
* Sets the value(s) for referenceRange (Provides guide for interpretation)
*
*
* 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 (Provides guide for interpretation)
*
*
* 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;
}
/**
* Gets the first repetition for referenceRange (Provides guide for interpretation),
* 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 (Observations related to this observation).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Related observations - either components, or previous observations, or statements of derivation
*
*/
public java.util.List getRelated() {
if (myRelated == null) {
myRelated = new java.util.ArrayList();
}
return myRelated;
}
/**
* Gets the value(s) for related (Observations related to this observation).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Related observations - either components, or previous observations, or statements of derivation
*
*/
public java.util.List getRelatedElement() {
if (myRelated == null) {
myRelated = new java.util.ArrayList();
}
return myRelated;
}
/**
* Sets the value(s) for related (Observations related to this observation)
*
*
* Definition:
* Related observations - either components, or previous observations, or statements of derivation
*
*/
public Observation setRelated(java.util.List theValue) {
myRelated = theValue;
return this;
}
/**
* Adds and returns a new value for related (Observations related to this observation)
*
*
* Definition:
* Related observations - either components, or previous observations, or statements of derivation
*
*/
public Related addRelated() {
Related newType = new Related();
getRelated().add(newType);
return newType;
}
/**
* Gets the first repetition for related (Observations related to this observation),
* creating it if it does not already exist.
*
*
* Definition:
* Related observations - either components, or previous observations, or statements of derivation
*
*/
public Related getRelatedFirstRep() {
if (getRelated().isEmpty()) {
return addRelated();
}
return getRelated().get(0);
}
/**
* Block class for child element: Observation.referenceRange (Provides guide for interpretation)
*
*
* 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=QuantityDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Low Range, if relevant",
formalDefinition="The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3"
)
private QuantityDt myLow;
@Child(name="high", type=QuantityDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="High Range, if relevant",
formalDefinition="The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5"
)
private QuantityDt myHigh;
@Child(name="meaning", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Indicates the meaning/use of this range of this range",
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="Applicable age range, if relevant",
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;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh, myMeaning, myAge);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh, myMeaning, myAge);
}
/**
* Gets the value(s) for low (Low Range, if relevant).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public QuantityDt getLow() {
if (myLow == null) {
myLow = new QuantityDt();
}
return myLow;
}
/**
* Gets the value(s) for low (Low Range, if relevant).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public QuantityDt getLowElement() {
if (myLow == null) {
myLow = new QuantityDt();
}
return myLow;
}
/**
* Sets the value(s) for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow(QuantityDt theValue) {
myLow = theValue;
return this;
}
/**
* Sets the value for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow( QuantityCompararatorEnum theComparator, long theValue, String theUnits) {
myLow = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Sets the value for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) {
myLow = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) {
myLow = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow( double theValue) {
myLow = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow( long theValue) {
myLow = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for low (Low Range, if relevant)
*
*
* Definition:
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
*
*/
public ReferenceRange setLow( QuantityCompararatorEnum theComparator, double theValue, String theUnits) {
myLow = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Gets the value(s) for high (High Range, if relevant).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public QuantityDt getHigh() {
if (myHigh == null) {
myHigh = new QuantityDt();
}
return myHigh;
}
/**
* Gets the value(s) for high (High Range, if relevant).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public QuantityDt getHighElement() {
if (myHigh == null) {
myHigh = new QuantityDt();
}
return myHigh;
}
/**
* Sets the value(s) for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh(QuantityDt theValue) {
myHigh = theValue;
return this;
}
/**
* Sets the value for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, long theValue, String theUnits) {
myHigh = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Sets the value for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) {
myHigh = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) {
myHigh = new QuantityDt(theComparator, theValue, theSystem, theUnits);
return this;
}
/**
* Sets the value for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh( double theValue) {
myHigh = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh( long theValue) {
myHigh = new QuantityDt(theValue);
return this;
}
/**
* Sets the value for high (High Range, if relevant)
*
*
* Definition:
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
*
*/
public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, double theValue, String theUnits) {
myHigh = new QuantityDt(theComparator, theValue, theUnits);
return this;
}
/**
* Gets the value(s) for meaning (Indicates the meaning/use of this range of this range).
* 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;
}
/**
* Gets the value(s) for meaning (Indicates the meaning/use of this range of this range).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Code for the meaning of the reference range
*
*/
public CodeableConceptDt getMeaningElement() {
if (myMeaning == null) {
myMeaning = new CodeableConceptDt();
}
return myMeaning;
}
/**
* Sets the value(s) for meaning (Indicates the meaning/use of this range of this range)
*
*
* Definition:
* Code for the meaning of the reference range
*
*/
public ReferenceRange setMeaning(CodeableConceptDt theValue) {
myMeaning = theValue;
return this;
}
/**
* Gets the value(s) for age (Applicable age range, if relevant).
* 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;
}
/**
* Gets the value(s) for age (Applicable age range, if relevant).
* 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 getAgeElement() {
if (myAge == null) {
myAge = new RangeDt();
}
return myAge;
}
/**
* Sets the value(s) for age (Applicable age range, if relevant)
*
*
* 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;
}
}
/**
* Block class for child element: Observation.related (Observations related to this observation)
*
*
* Definition:
* Related observations - either components, or previous observations, or statements of derivation
*
*/
@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="has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by",
formalDefinition="A code specifying the kind of relationship that exists with the target observation"
)
private BoundCodeDt myType;
@Child(name="target", order=1, min=1, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Observation.class })
@Description(
shortDefinition="Observation that is related to this one",
formalDefinition="A reference to the observation 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 (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A code specifying the kind of relationship that exists with the target observation
*
*/
public BoundCodeDt getType() {
if (myType == null) {
myType = new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Gets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A code specifying the kind of relationship that exists with the target observation
*
*/
public BoundCodeDt getTypeElement() {
if (myType == null) {
myType = new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Sets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by)
*
*
* Definition:
* A code specifying the kind of relationship that exists with the target observation
*
*/
public Related setType(BoundCodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by)
*
*
* Definition:
* A code specifying the kind of relationship that exists with the target observation
*
*/
public Related setType(ObservationRelationshipTypeEnum theValue) {
getType().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for target (Observation that is related to this one).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A reference to the observation that is related to this observation
*
*/
public ResourceReferenceDt getTarget() {
if (myTarget == null) {
myTarget = new ResourceReferenceDt();
}
return myTarget;
}
/**
* Gets the value(s) for target (Observation that is related to this one).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A reference to the observation that is related to this observation
*
*/
public ResourceReferenceDt getTargetElement() {
if (myTarget == null) {
myTarget = new ResourceReferenceDt();
}
return myTarget;
}
/**
* Sets the value(s) for target (Observation that is related to this one)
*
*
* Definition:
* A reference to the observation that is related to this observation
*
*/
public Related setTarget(ResourceReferenceDt theValue) {
myTarget = theValue;
return this;
}
}
@Override
public String getResourceName() {
return "Observation";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU1;
}
}