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

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

There is a newer version: 7.6.1
Show newest version
















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


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

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


/**
 * HAPI/FHIR AllergyIntolerance Resource
 * (Drug, food, environmental and others)
 *
 * 

* Definition: * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance *

* *

* Requirements: * *

* *

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

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

* Description: The type of sensitivity
* Type: token
* Path: AllergyIntolerance.sensitivityType
*

*/ @SearchParamDefinition(name="type", path="AllergyIntolerance.sensitivityType", description="The type of sensitivity", type="token" ) public static final String SP_TYPE = "type"; /** * Fluent Client search parameter constant for type *

* Description: The type of sensitivity
* Type: token
* Path: AllergyIntolerance.sensitivityType
*

*/ public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); /** * Search parameter constant for substance *

* Description: The name or code of the substance that produces the sensitivity
* Type: reference
* Path: AllergyIntolerance.substance
*

*/ @SearchParamDefinition(name="substance", path="AllergyIntolerance.substance", description="The name or code of the substance that produces the sensitivity", type="reference" ) public static final String SP_SUBSTANCE = "substance"; /** * Fluent Client search parameter constant for substance *

* Description: The name or code of the substance that produces the sensitivity
* Type: reference
* Path: AllergyIntolerance.substance
*

*/ public static final ReferenceClientParam SUBSTANCE = new ReferenceClientParam(SP_SUBSTANCE); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "AllergyIntolerance.substance". */ public static final Include INCLUDE_SUBSTANCE = new Include("AllergyIntolerance.substance"); /** * Search parameter constant for date *

* Description: Recorded date/time.
* Type: date
* Path: AllergyIntolerance.recordedDate
*

*/ @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate", description="Recorded date/time.", type="date" ) public static final String SP_DATE = "date"; /** * Fluent Client search parameter constant for date *

* Description: Recorded date/time.
* Type: date
* Path: AllergyIntolerance.recordedDate
*

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

* Description: The status of the sensitivity
* Type: token
* Path: AllergyIntolerance.status
*

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

* Description: The status of the sensitivity
* Type: token
* Path: AllergyIntolerance.status
*

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

* Description: The subject that the sensitivity is about
* Type: reference
* Path: AllergyIntolerance.subject
*

*/ @SearchParamDefinition(name="subject", path="AllergyIntolerance.subject", description="The subject that the sensitivity is about", type="reference" ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description: The subject that the sensitivity is about
* Type: reference
* Path: AllergyIntolerance.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 "AllergyIntolerance.subject". */ public static final Include INCLUDE_SUBJECT = new Include("AllergyIntolerance.subject"); /** * Search parameter constant for recorder *

* Description: Who recorded the sensitivity
* Type: reference
* Path: AllergyIntolerance.recorder
*

*/ @SearchParamDefinition(name="recorder", path="AllergyIntolerance.recorder", description="Who recorded the sensitivity", type="reference" ) public static final String SP_RECORDER = "recorder"; /** * Fluent Client search parameter constant for recorder *

* Description: Who recorded the sensitivity
* Type: reference
* Path: AllergyIntolerance.recorder
*

*/ public static final ReferenceClientParam RECORDER = new ReferenceClientParam(SP_RECORDER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "AllergyIntolerance.recorder". */ public static final Include INCLUDE_RECORDER = new Include("AllergyIntolerance.recorder"); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="External Ids for this item", formalDefinition="This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" ) private java.util.List myIdentifier; @Child(name="criticality", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="fatal | high | medium | low", formalDefinition="Criticality of the sensitivity" ) private BoundCodeDt myCriticality; @Child(name="sensitivityType", type=CodeDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="allergy | intolerance | unknown", formalDefinition="Type of the sensitivity" ) private BoundCodeDt mySensitivityType; @Child(name="recordedDate", type=DateTimeDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="When recorded", formalDefinition="Date when the sensitivity was recorded" ) private DateTimeDt myRecordedDate; @Child(name="status", type=CodeDt.class, order=4, min=1, max=1, summary=false, modifier=true) @Description( shortDefinition="suspected | confirmed | refuted | resolved", formalDefinition="Status of the sensitivity" ) private BoundCodeDt myStatus; @Child(name="subject", order=5, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Patient.class }) @Description( shortDefinition="Who the sensitivity is for", formalDefinition="The patient who has the allergy or intolerance" ) private ResourceReferenceDt mySubject; @Child(name="recorder", order=6, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class }) @Description( shortDefinition="Who recorded the sensitivity", formalDefinition="Indicates who has responsibility for the record" ) private ResourceReferenceDt myRecorder; @Child(name="substance", order=7, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Substance.class }) @Description( shortDefinition="The substance that causes the sensitivity", formalDefinition="The substance that causes the sensitivity" ) private ResourceReferenceDt mySubstance; @Child(name="reaction", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.AdverseReaction.class }) @Description( shortDefinition="Reactions associated with the sensitivity", formalDefinition="Reactions associated with the sensitivity" ) private java.util.List myReaction; @Child(name="sensitivityTest", order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Observation.class }) @Description( shortDefinition="Observations that confirm or refute", formalDefinition="Observations that confirm or refute the sensitivity" ) private java.util.List mySensitivityTest; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCriticality, mySensitivityType, myRecordedDate, myStatus, mySubject, myRecorder, mySubstance, myReaction, mySensitivityTest); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCriticality, mySensitivityType, myRecordedDate, myStatus, mySubject, myRecorder, mySubstance, myReaction, mySensitivityTest); } /** * Gets the value(s) for identifier (External Ids for this item). * creating it if it does * not exist. Will not return null. * *

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

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

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

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

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

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

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

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

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

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

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

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

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

* * @return Returns a reference to this object, to allow for simple chaining. */ public AllergyIntolerance addIdentifier( String theSystem, String theValue) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theSystem, theValue)); return this; } /** * Gets the value(s) for criticality (fatal | high | medium | low). * creating it if it does * not exist. Will not return null. * *

* Definition: * Criticality of the sensitivity *

*/ public BoundCodeDt getCriticality() { if (myCriticality == null) { myCriticality = new BoundCodeDt(CriticalityEnum.VALUESET_BINDER); } return myCriticality; } /** * Gets the value(s) for criticality (fatal | high | medium | low). * creating it if it does * not exist. Will not return null. * *

* Definition: * Criticality of the sensitivity *

*/ public BoundCodeDt getCriticalityElement() { if (myCriticality == null) { myCriticality = new BoundCodeDt(CriticalityEnum.VALUESET_BINDER); } return myCriticality; } /** * Sets the value(s) for criticality (fatal | high | medium | low) * *

* Definition: * Criticality of the sensitivity *

*/ public AllergyIntolerance setCriticality(BoundCodeDt theValue) { myCriticality = theValue; return this; } /** * Sets the value(s) for criticality (fatal | high | medium | low) * *

* Definition: * Criticality of the sensitivity *

*/ public AllergyIntolerance setCriticality(CriticalityEnum theValue) { getCriticality().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for sensitivityType (allergy | intolerance | unknown). * creating it if it does * not exist. Will not return null. * *

* Definition: * Type of the sensitivity *

*/ public BoundCodeDt getSensitivityType() { if (mySensitivityType == null) { mySensitivityType = new BoundCodeDt(SensitivityTypeEnum.VALUESET_BINDER); } return mySensitivityType; } /** * Gets the value(s) for sensitivityType (allergy | intolerance | unknown). * creating it if it does * not exist. Will not return null. * *

* Definition: * Type of the sensitivity *

*/ public BoundCodeDt getSensitivityTypeElement() { if (mySensitivityType == null) { mySensitivityType = new BoundCodeDt(SensitivityTypeEnum.VALUESET_BINDER); } return mySensitivityType; } /** * Sets the value(s) for sensitivityType (allergy | intolerance | unknown) * *

* Definition: * Type of the sensitivity *

*/ public AllergyIntolerance setSensitivityType(BoundCodeDt theValue) { mySensitivityType = theValue; return this; } /** * Sets the value(s) for sensitivityType (allergy | intolerance | unknown) * *

* Definition: * Type of the sensitivity *

*/ public AllergyIntolerance setSensitivityType(SensitivityTypeEnum theValue) { getSensitivityType().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for recordedDate (When recorded). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date when the sensitivity was recorded *

*/ public DateTimeDt getRecordedDate() { if (myRecordedDate == null) { myRecordedDate = new DateTimeDt(); } return myRecordedDate; } /** * Gets the value(s) for recordedDate (When recorded). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date when the sensitivity was recorded *

*/ public DateTimeDt getRecordedDateElement() { if (myRecordedDate == null) { myRecordedDate = new DateTimeDt(); } return myRecordedDate; } /** * Sets the value(s) for recordedDate (When recorded) * *

* Definition: * Date when the sensitivity was recorded *

*/ public AllergyIntolerance setRecordedDate(DateTimeDt theValue) { myRecordedDate = theValue; return this; } /** * Sets the value for recordedDate (When recorded) * *

* Definition: * Date when the sensitivity was recorded *

*/ public AllergyIntolerance setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { myRecordedDate = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for recordedDate (When recorded) * *

* Definition: * Date when the sensitivity was recorded *

*/ public AllergyIntolerance setRecordedDateWithSecondsPrecision( Date theDate) { myRecordedDate = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for status (suspected | confirmed | refuted | resolved). * creating it if it does * not exist. Will not return null. * *

* Definition: * Status of the sensitivity *

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

* Definition: * Status of the sensitivity *

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

* Definition: * Status of the sensitivity *

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

* Definition: * Status of the sensitivity *

*/ public AllergyIntolerance setStatus(SensitivityStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for subject (Who the sensitivity is for). * creating it if it does * not exist. Will not return null. * *

* Definition: * The patient who has the allergy or intolerance *

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

* Definition: * The patient who has the allergy or intolerance *

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

* Definition: * The patient who has the allergy or intolerance *

*/ public AllergyIntolerance setSubject(ResourceReferenceDt theValue) { mySubject = theValue; return this; } /** * Gets the value(s) for recorder (Who recorded the sensitivity). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates who has responsibility for the record *

*/ public ResourceReferenceDt getRecorder() { if (myRecorder == null) { myRecorder = new ResourceReferenceDt(); } return myRecorder; } /** * Gets the value(s) for recorder (Who recorded the sensitivity). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates who has responsibility for the record *

*/ public ResourceReferenceDt getRecorderElement() { if (myRecorder == null) { myRecorder = new ResourceReferenceDt(); } return myRecorder; } /** * Sets the value(s) for recorder (Who recorded the sensitivity) * *

* Definition: * Indicates who has responsibility for the record *

*/ public AllergyIntolerance setRecorder(ResourceReferenceDt theValue) { myRecorder = theValue; return this; } /** * Gets the value(s) for substance (The substance that causes the sensitivity). * creating it if it does * not exist. Will not return null. * *

* Definition: * The substance that causes the sensitivity *

*/ public ResourceReferenceDt getSubstance() { if (mySubstance == null) { mySubstance = new ResourceReferenceDt(); } return mySubstance; } /** * Gets the value(s) for substance (The substance that causes the sensitivity). * creating it if it does * not exist. Will not return null. * *

* Definition: * The substance that causes the sensitivity *

*/ public ResourceReferenceDt getSubstanceElement() { if (mySubstance == null) { mySubstance = new ResourceReferenceDt(); } return mySubstance; } /** * Sets the value(s) for substance (The substance that causes the sensitivity) * *

* Definition: * The substance that causes the sensitivity *

*/ public AllergyIntolerance setSubstance(ResourceReferenceDt theValue) { mySubstance = theValue; return this; } /** * Gets the value(s) for reaction (Reactions associated with the sensitivity). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reactions associated with the sensitivity *

*/ public java.util.List getReaction() { if (myReaction == null) { myReaction = new java.util.ArrayList(); } return myReaction; } /** * Gets the value(s) for reaction (Reactions associated with the sensitivity). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reactions associated with the sensitivity *

*/ public java.util.List getReactionElement() { if (myReaction == null) { myReaction = new java.util.ArrayList(); } return myReaction; } /** * Sets the value(s) for reaction (Reactions associated with the sensitivity) * *

* Definition: * Reactions associated with the sensitivity *

*/ public AllergyIntolerance setReaction(java.util.List theValue) { myReaction = theValue; return this; } /** * Adds and returns a new value for reaction (Reactions associated with the sensitivity) * *

* Definition: * Reactions associated with the sensitivity *

*/ public ResourceReferenceDt addReaction() { ResourceReferenceDt newType = new ResourceReferenceDt(); getReaction().add(newType); return newType; } /** * Gets the value(s) for sensitivityTest (Observations that confirm or refute). * creating it if it does * not exist. Will not return null. * *

* Definition: * Observations that confirm or refute the sensitivity *

*/ public java.util.List getSensitivityTest() { if (mySensitivityTest == null) { mySensitivityTest = new java.util.ArrayList(); } return mySensitivityTest; } /** * Gets the value(s) for sensitivityTest (Observations that confirm or refute). * creating it if it does * not exist. Will not return null. * *

* Definition: * Observations that confirm or refute the sensitivity *

*/ public java.util.List getSensitivityTestElement() { if (mySensitivityTest == null) { mySensitivityTest = new java.util.ArrayList(); } return mySensitivityTest; } /** * Sets the value(s) for sensitivityTest (Observations that confirm or refute) * *

* Definition: * Observations that confirm or refute the sensitivity *

*/ public AllergyIntolerance setSensitivityTest(java.util.List theValue) { mySensitivityTest = theValue; return this; } /** * Adds and returns a new value for sensitivityTest (Observations that confirm or refute) * *

* Definition: * Observations that confirm or refute the sensitivity *

*/ public ResourceReferenceDt addSensitivityTest() { ResourceReferenceDt newType = new ResourceReferenceDt(); getSensitivityTest().add(newType); return newType; } @Override public String getResourceName() { return "AllergyIntolerance"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy