
ca.uhn.fhir.model.dstu.resource.Procedure 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 Procedure Resource
* (An action that is performed on a patient)
*
*
* Definition:
* An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/Procedure
*
*
*/
@ResourceDef(name="Procedure", profile="http://hl7.org/fhir/profiles/Procedure", id="procedure")
public class Procedure extends ca.uhn.fhir.model.dstu.resource.BaseResource
implements IResource {
/**
* Search parameter constant for type
*
* Description: Type of procedure
* Type: token
* Path: Procedure.type
*
*/
@SearchParamDefinition(name="type", path="Procedure.type", description="Type of procedure", type="token" )
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description: Type of procedure
* Type: token
* Path: Procedure.type
*
*/
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
/**
* Search parameter constant for subject
*
* Description: The identity of a patient to list procedures for
* Type: reference
* Path: Procedure.subject
*
*/
@SearchParamDefinition(name="subject", path="Procedure.subject", description="The identity of a patient to list procedures for", type="reference" )
public static final String SP_SUBJECT = "subject";
/**
* Fluent Client search parameter constant for subject
*
* Description: The identity of a patient to list procedures for
* Type: reference
* Path: Procedure.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 "Procedure.subject".
*/
public static final Include INCLUDE_SUBJECT = new Include("Procedure.subject");
/**
* Search parameter constant for date
*
* Description: The date the procedure was performed on
* Type: date
* Path: Procedure.date
*
*/
@SearchParamDefinition(name="date", path="Procedure.date", description="The date the procedure was performed on", type="date" )
public static final String SP_DATE = "date";
/**
* Fluent Client search parameter constant for date
*
* Description: The date the procedure was performed on
* Type: date
* Path: Procedure.date
*
*/
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="External Ids for this procedure",
formalDefinition="This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)"
)
private java.util.List myIdentifier;
@Child(name="subject", order=1, min=1, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Patient.class })
@Description(
shortDefinition="Who procedure was performed on",
formalDefinition="The person on whom the procedure was performed"
)
private ResourceReferenceDt mySubject;
@Child(name="type", type=CodeableConceptDt.class, order=2, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="Identification of the procedure",
formalDefinition="The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded"
)
private CodeableConceptDt myType;
@Child(name="bodySite", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="Precise location details",
formalDefinition="Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion"
)
private java.util.List myBodySite;
@Child(name="indication", type=CodeableConceptDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="Reason procedure performed",
formalDefinition="The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text"
)
private java.util.List myIndication;
@Child(name="performer", order=5, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="The people who performed the procedure",
formalDefinition="Limited to 'real' people rather than equipment"
)
private java.util.List myPerformer;
@Child(name="date", type=PeriodDt.class, order=6, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="The date the procedure was performed",
formalDefinition="The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured."
)
private PeriodDt myDate;
@Child(name="encounter", order=7, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Encounter.class })
@Description(
shortDefinition="The encounter when procedure performed",
formalDefinition="The encounter during which the procedure was performed"
)
private ResourceReferenceDt myEncounter;
@Child(name="outcome", type=StringDt.class, order=8, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="What was result of procedure?",
formalDefinition="What was the outcome of the procedure - did it resolve reasons why the procedure was performed?"
)
private StringDt myOutcome;
@Child(name="report", order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.DiagnosticReport.class })
@Description(
shortDefinition="Any report that results from the procedure",
formalDefinition="This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies"
)
private java.util.List myReport;
@Child(name="complication", type=CodeableConceptDt.class, order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Complication following the procedure",
formalDefinition="Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues"
)
private java.util.List myComplication;
@Child(name="followUp", type=StringDt.class, order=11, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Instructions for follow up",
formalDefinition="If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used"
)
private StringDt myFollowUp;
@Child(name="relatedItem", order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="A procedure that is related to this one",
formalDefinition="Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure"
)
private java.util.List myRelatedItem;
@Child(name="notes", type=StringDt.class, order=13, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Additional information about procedure",
formalDefinition="Any other notes about the procedure - e.g. the operative notes"
)
private StringDt myNotes;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, mySubject, myType, myBodySite, myIndication, myPerformer, myDate, myEncounter, myOutcome, myReport, myComplication, myFollowUp, myRelatedItem, myNotes);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, mySubject, myType, myBodySite, myIndication, myPerformer, myDate, myEncounter, myOutcome, myReport, myComplication, myFollowUp, myRelatedItem, myNotes);
}
/**
* Gets the value(s) for identifier (External Ids for this procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* This records identifiers associated with this procedure 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 procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* This records identifiers associated with this procedure 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 procedure)
*
*
* Definition:
* This records identifiers associated with this procedure 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 Procedure setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier (External Ids for this procedure)
*
*
* Definition:
* This records identifiers associated with this procedure 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 procedure),
* creating it if it does not already exist.
*
*
* Definition:
* This records identifiers associated with this procedure 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 procedure)
*
*
* Definition:
* This records identifiers associated with this procedure 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 Procedure 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 procedure)
*
*
* Definition:
* This records identifiers associated with this procedure 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 Procedure addIdentifier( String theSystem, String theValue) {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
myIdentifier.add(new IdentifierDt(theSystem, theValue));
return this;
}
/**
* Gets the value(s) for subject (Who procedure was performed on).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The person on whom the procedure was performed
*
*/
public ResourceReferenceDt getSubject() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Gets the value(s) for subject (Who procedure was performed on).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The person on whom the procedure was performed
*
*/
public ResourceReferenceDt getSubjectElement() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Sets the value(s) for subject (Who procedure was performed on)
*
*
* Definition:
* The person on whom the procedure was performed
*
*/
public Procedure setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
return this;
}
/**
* Gets the value(s) for type (Identification of the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded
*
*/
public CodeableConceptDt getType() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Gets the value(s) for type (Identification of the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded
*
*/
public CodeableConceptDt getTypeElement() {
if (myType == null) {
myType = new CodeableConceptDt();
}
return myType;
}
/**
* Sets the value(s) for type (Identification of the procedure)
*
*
* Definition:
* The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded
*
*/
public Procedure setType(CodeableConceptDt theValue) {
myType = theValue;
return this;
}
/**
* Gets the value(s) for bodySite (Precise location details).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion
*
*/
public java.util.List getBodySite() {
if (myBodySite == null) {
myBodySite = new java.util.ArrayList();
}
return myBodySite;
}
/**
* Gets the value(s) for bodySite (Precise location details).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion
*
*/
public java.util.List getBodySiteElement() {
if (myBodySite == null) {
myBodySite = new java.util.ArrayList();
}
return myBodySite;
}
/**
* Sets the value(s) for bodySite (Precise location details)
*
*
* Definition:
* Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion
*
*/
public Procedure setBodySite(java.util.List theValue) {
myBodySite = theValue;
return this;
}
/**
* Adds and returns a new value for bodySite (Precise location details)
*
*
* Definition:
* Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion
*
*/
public CodeableConceptDt addBodySite() {
CodeableConceptDt newType = new CodeableConceptDt();
getBodySite().add(newType);
return newType;
}
/**
* Gets the first repetition for bodySite (Precise location details),
* creating it if it does not already exist.
*
*
* Definition:
* Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion
*
*/
public CodeableConceptDt getBodySiteFirstRep() {
if (getBodySite().isEmpty()) {
return addBodySite();
}
return getBodySite().get(0);
}
/**
* Gets the value(s) for indication (Reason procedure performed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text
*
*/
public java.util.List getIndication() {
if (myIndication == null) {
myIndication = new java.util.ArrayList();
}
return myIndication;
}
/**
* Gets the value(s) for indication (Reason procedure performed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text
*
*/
public java.util.List getIndicationElement() {
if (myIndication == null) {
myIndication = new java.util.ArrayList();
}
return myIndication;
}
/**
* Sets the value(s) for indication (Reason procedure performed)
*
*
* Definition:
* The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text
*
*/
public Procedure setIndication(java.util.List theValue) {
myIndication = theValue;
return this;
}
/**
* Adds and returns a new value for indication (Reason procedure performed)
*
*
* Definition:
* The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text
*
*/
public CodeableConceptDt addIndication() {
CodeableConceptDt newType = new CodeableConceptDt();
getIndication().add(newType);
return newType;
}
/**
* Gets the first repetition for indication (Reason procedure performed),
* creating it if it does not already exist.
*
*
* Definition:
* The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text
*
*/
public CodeableConceptDt getIndicationFirstRep() {
if (getIndication().isEmpty()) {
return addIndication();
}
return getIndication().get(0);
}
/**
* Gets the value(s) for performer (The people who performed the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Limited to 'real' people rather than equipment
*
*/
public java.util.List getPerformer() {
if (myPerformer == null) {
myPerformer = new java.util.ArrayList();
}
return myPerformer;
}
/**
* Gets the value(s) for performer (The people who performed the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Limited to 'real' people rather than equipment
*
*/
public java.util.List getPerformerElement() {
if (myPerformer == null) {
myPerformer = new java.util.ArrayList();
}
return myPerformer;
}
/**
* Sets the value(s) for performer (The people who performed the procedure)
*
*
* Definition:
* Limited to 'real' people rather than equipment
*
*/
public Procedure setPerformer(java.util.List theValue) {
myPerformer = theValue;
return this;
}
/**
* Adds and returns a new value for performer (The people who performed the procedure)
*
*
* Definition:
* Limited to 'real' people rather than equipment
*
*/
public Performer addPerformer() {
Performer newType = new Performer();
getPerformer().add(newType);
return newType;
}
/**
* Gets the first repetition for performer (The people who performed the procedure),
* creating it if it does not already exist.
*
*
* Definition:
* Limited to 'real' people rather than equipment
*
*/
public Performer getPerformerFirstRep() {
if (getPerformer().isEmpty()) {
return addPerformer();
}
return getPerformer().get(0);
}
/**
* Gets the value(s) for date (The date the procedure was performed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured.
*
*/
public PeriodDt getDate() {
if (myDate == null) {
myDate = new PeriodDt();
}
return myDate;
}
/**
* Gets the value(s) for date (The date the procedure was performed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured.
*
*/
public PeriodDt getDateElement() {
if (myDate == null) {
myDate = new PeriodDt();
}
return myDate;
}
/**
* Sets the value(s) for date (The date the procedure was performed)
*
*
* Definition:
* The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured.
*
*/
public Procedure setDate(PeriodDt theValue) {
myDate = theValue;
return this;
}
/**
* Gets the value(s) for encounter (The encounter when procedure performed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The encounter during which the procedure was performed
*
*/
public ResourceReferenceDt getEncounter() {
if (myEncounter == null) {
myEncounter = new ResourceReferenceDt();
}
return myEncounter;
}
/**
* Gets the value(s) for encounter (The encounter when procedure performed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The encounter during which the procedure was performed
*
*/
public ResourceReferenceDt getEncounterElement() {
if (myEncounter == null) {
myEncounter = new ResourceReferenceDt();
}
return myEncounter;
}
/**
* Sets the value(s) for encounter (The encounter when procedure performed)
*
*
* Definition:
* The encounter during which the procedure was performed
*
*/
public Procedure setEncounter(ResourceReferenceDt theValue) {
myEncounter = theValue;
return this;
}
/**
* Gets the value(s) for outcome (What was result of procedure?).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* What was the outcome of the procedure - did it resolve reasons why the procedure was performed?
*
*/
public StringDt getOutcome() {
if (myOutcome == null) {
myOutcome = new StringDt();
}
return myOutcome;
}
/**
* Gets the value(s) for outcome (What was result of procedure?).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* What was the outcome of the procedure - did it resolve reasons why the procedure was performed?
*
*/
public StringDt getOutcomeElement() {
if (myOutcome == null) {
myOutcome = new StringDt();
}
return myOutcome;
}
/**
* Sets the value(s) for outcome (What was result of procedure?)
*
*
* Definition:
* What was the outcome of the procedure - did it resolve reasons why the procedure was performed?
*
*/
public Procedure setOutcome(StringDt theValue) {
myOutcome = theValue;
return this;
}
/**
* Sets the value for outcome (What was result of procedure?)
*
*
* Definition:
* What was the outcome of the procedure - did it resolve reasons why the procedure was performed?
*
*/
public Procedure setOutcome( String theString) {
myOutcome = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for report (Any report that results from the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies
*
*/
public java.util.List getReport() {
if (myReport == null) {
myReport = new java.util.ArrayList();
}
return myReport;
}
/**
* Gets the value(s) for report (Any report that results from the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies
*
*/
public java.util.List getReportElement() {
if (myReport == null) {
myReport = new java.util.ArrayList();
}
return myReport;
}
/**
* Sets the value(s) for report (Any report that results from the procedure)
*
*
* Definition:
* This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies
*
*/
public Procedure setReport(java.util.List theValue) {
myReport = theValue;
return this;
}
/**
* Adds and returns a new value for report (Any report that results from the procedure)
*
*
* Definition:
* This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies
*
*/
public ResourceReferenceDt addReport() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getReport().add(newType);
return newType;
}
/**
* Gets the value(s) for complication (Complication following the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues
*
*/
public java.util.List getComplication() {
if (myComplication == null) {
myComplication = new java.util.ArrayList();
}
return myComplication;
}
/**
* Gets the value(s) for complication (Complication following the procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues
*
*/
public java.util.List getComplicationElement() {
if (myComplication == null) {
myComplication = new java.util.ArrayList();
}
return myComplication;
}
/**
* Sets the value(s) for complication (Complication following the procedure)
*
*
* Definition:
* Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues
*
*/
public Procedure setComplication(java.util.List theValue) {
myComplication = theValue;
return this;
}
/**
* Adds and returns a new value for complication (Complication following the procedure)
*
*
* Definition:
* Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues
*
*/
public CodeableConceptDt addComplication() {
CodeableConceptDt newType = new CodeableConceptDt();
getComplication().add(newType);
return newType;
}
/**
* Gets the first repetition for complication (Complication following the procedure),
* creating it if it does not already exist.
*
*
* Definition:
* Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues
*
*/
public CodeableConceptDt getComplicationFirstRep() {
if (getComplication().isEmpty()) {
return addComplication();
}
return getComplication().get(0);
}
/**
* Gets the value(s) for followUp (Instructions for follow up).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used
*
*/
public StringDt getFollowUp() {
if (myFollowUp == null) {
myFollowUp = new StringDt();
}
return myFollowUp;
}
/**
* Gets the value(s) for followUp (Instructions for follow up).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used
*
*/
public StringDt getFollowUpElement() {
if (myFollowUp == null) {
myFollowUp = new StringDt();
}
return myFollowUp;
}
/**
* Sets the value(s) for followUp (Instructions for follow up)
*
*
* Definition:
* If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used
*
*/
public Procedure setFollowUp(StringDt theValue) {
myFollowUp = theValue;
return this;
}
/**
* Sets the value for followUp (Instructions for follow up)
*
*
* Definition:
* If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used
*
*/
public Procedure setFollowUp( String theString) {
myFollowUp = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for relatedItem (A procedure that is related to this one).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure
*
*/
public java.util.List getRelatedItem() {
if (myRelatedItem == null) {
myRelatedItem = new java.util.ArrayList();
}
return myRelatedItem;
}
/**
* Gets the value(s) for relatedItem (A procedure that is related to this one).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure
*
*/
public java.util.List getRelatedItemElement() {
if (myRelatedItem == null) {
myRelatedItem = new java.util.ArrayList();
}
return myRelatedItem;
}
/**
* Sets the value(s) for relatedItem (A procedure that is related to this one)
*
*
* Definition:
* Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure
*
*/
public Procedure setRelatedItem(java.util.List theValue) {
myRelatedItem = theValue;
return this;
}
/**
* Adds and returns a new value for relatedItem (A procedure that is related to this one)
*
*
* Definition:
* Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure
*
*/
public RelatedItem addRelatedItem() {
RelatedItem newType = new RelatedItem();
getRelatedItem().add(newType);
return newType;
}
/**
* Gets the first repetition for relatedItem (A procedure that is related to this one),
* creating it if it does not already exist.
*
*
* Definition:
* Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure
*
*/
public RelatedItem getRelatedItemFirstRep() {
if (getRelatedItem().isEmpty()) {
return addRelatedItem();
}
return getRelatedItem().get(0);
}
/**
* Gets the value(s) for notes (Additional information about procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Any other notes about the procedure - e.g. the operative notes
*
*/
public StringDt getNotes() {
if (myNotes == null) {
myNotes = new StringDt();
}
return myNotes;
}
/**
* Gets the value(s) for notes (Additional information about procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Any other notes about the procedure - e.g. the operative notes
*
*/
public StringDt getNotesElement() {
if (myNotes == null) {
myNotes = new StringDt();
}
return myNotes;
}
/**
* Sets the value(s) for notes (Additional information about procedure)
*
*
* Definition:
* Any other notes about the procedure - e.g. the operative notes
*
*/
public Procedure setNotes(StringDt theValue) {
myNotes = theValue;
return this;
}
/**
* Sets the value for notes (Additional information about procedure)
*
*
* Definition:
* Any other notes about the procedure - e.g. the operative notes
*
*/
public Procedure setNotes( String theString) {
myNotes = new StringDt(theString);
return this;
}
/**
* Block class for child element: Procedure.performer (The people who performed the procedure)
*
*
* Definition:
* Limited to 'real' people rather than equipment
*
*/
@Block()
public static class Performer
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="person", order=0, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Practitioner.class })
@Description(
shortDefinition="The reference to the practitioner",
formalDefinition="The practitioner who was involved in the procedure"
)
private ResourceReferenceDt myPerson;
@Child(name="role", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="The role the person was in",
formalDefinition="E.g. surgeon, anaethetist, endoscopist"
)
private CodeableConceptDt myRole;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPerson, myRole);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPerson, myRole);
}
/**
* Gets the value(s) for person (The reference to the practitioner).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The practitioner who was involved in the procedure
*
*/
public ResourceReferenceDt getPerson() {
if (myPerson == null) {
myPerson = new ResourceReferenceDt();
}
return myPerson;
}
/**
* Gets the value(s) for person (The reference to the practitioner).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The practitioner who was involved in the procedure
*
*/
public ResourceReferenceDt getPersonElement() {
if (myPerson == null) {
myPerson = new ResourceReferenceDt();
}
return myPerson;
}
/**
* Sets the value(s) for person (The reference to the practitioner)
*
*
* Definition:
* The practitioner who was involved in the procedure
*
*/
public Performer setPerson(ResourceReferenceDt theValue) {
myPerson = theValue;
return this;
}
/**
* Gets the value(s) for role (The role the person was in).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* E.g. surgeon, anaethetist, endoscopist
*
*/
public CodeableConceptDt getRole() {
if (myRole == null) {
myRole = new CodeableConceptDt();
}
return myRole;
}
/**
* Gets the value(s) for role (The role the person was in).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* E.g. surgeon, anaethetist, endoscopist
*
*/
public CodeableConceptDt getRoleElement() {
if (myRole == null) {
myRole = new CodeableConceptDt();
}
return myRole;
}
/**
* Sets the value(s) for role (The role the person was in)
*
*
* Definition:
* E.g. surgeon, anaethetist, endoscopist
*
*/
public Performer setRole(CodeableConceptDt theValue) {
myRole = theValue;
return this;
}
}
/**
* Block class for child element: Procedure.relatedItem (A procedure that is related to this one)
*
*
* Definition:
* Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure
*
*/
@Block()
public static class RelatedItem
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="type", type=CodeDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="caused-by | because-of",
formalDefinition="The nature of the relationship"
)
private BoundCodeDt myType;
@Child(name="target", order=1, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.AdverseReaction.class, ca.uhn.fhir.model.dstu.resource.AllergyIntolerance.class, ca.uhn.fhir.model.dstu.resource.CarePlan.class, ca.uhn.fhir.model.dstu.resource.Condition.class, ca.uhn.fhir.model.dstu.resource.DeviceObservationReport.class, ca.uhn.fhir.model.dstu.resource.DiagnosticReport.class, ca.uhn.fhir.model.dstu.resource.FamilyHistory.class, ca.uhn.fhir.model.dstu.resource.ImagingStudy.class, ca.uhn.fhir.model.dstu.resource.Immunization.class, ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation.class, ca.uhn.fhir.model.dstu.resource.MedicationAdministration.class, ca.uhn.fhir.model.dstu.resource.MedicationDispense.class, ca.uhn.fhir.model.dstu.resource.MedicationPrescription.class, ca.uhn.fhir.model.dstu.resource.MedicationStatement.class, ca.uhn.fhir.model.dstu.resource.Observation.class, ca.uhn.fhir.model.dstu.resource.Procedure.class })
@Description(
shortDefinition="The related item - e.g. a procedure",
formalDefinition=""
)
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 (caused-by | because-of).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The nature of the relationship
*
*/
public BoundCodeDt getType() {
if (myType == null) {
myType = new BoundCodeDt(ProcedureRelationshipTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Gets the value(s) for type (caused-by | because-of).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The nature of the relationship
*
*/
public BoundCodeDt getTypeElement() {
if (myType == null) {
myType = new BoundCodeDt(ProcedureRelationshipTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Sets the value(s) for type (caused-by | because-of)
*
*
* Definition:
* The nature of the relationship
*
*/
public RelatedItem setType(BoundCodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value(s) for type (caused-by | because-of)
*
*
* Definition:
* The nature of the relationship
*
*/
public RelatedItem setType(ProcedureRelationshipTypeEnum theValue) {
getType().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for target (The related item - e.g. a procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getTarget() {
if (myTarget == null) {
myTarget = new ResourceReferenceDt();
}
return myTarget;
}
/**
* Gets the value(s) for target (The related item - e.g. a procedure).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getTargetElement() {
if (myTarget == null) {
myTarget = new ResourceReferenceDt();
}
return myTarget;
}
/**
* Sets the value(s) for target (The related item - e.g. a procedure)
*
*
* Definition:
*
*
*/
public RelatedItem setTarget(ResourceReferenceDt theValue) {
myTarget = theValue;
return this;
}
}
@Override
public String getResourceName() {
return "Procedure";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU1;
}
}