/** * Gets the first repetition for <b>evidence</b> (Supporting evidence), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed * </p> */ public Evidence getEvidenceFirstRep() { if (getEvidence().isEmpty()) { return addEvidence(); } return getEvidence().get(0); }
/** * Gets the first repetition for <b>identifier</b> (External Ids for this condition), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) * </p> */ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /**
/** * Gets the first repetition for <b>location</b> (Anatomical location, if relevant), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The anatomical location where this condition manifests itself * </p> */ public Location getLocationFirstRep() { if (getLocation().isEmpty()) { return addLocation(); } return getLocation().get(0); }
/** * Gets the first repetition for <b>relatedItem</b> (Causes or precedents for this Condition), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition * </p> */ public RelatedItem getRelatedItemFirstRep() { if (getRelatedItem().isEmpty()) { return addRelatedItem(); } return getRelatedItem().get(0); }
/** * Sets the value(s) for <b>status</b> (provisional | working | confirmed | refuted) * * <p> * <b>Definition:</b> * The clinical status of the condition * </p> */ public Condition setStatus(ConditionStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; }
/** * Adds and returns a new value for <b>evidence</b> (Supporting evidence) * * <p> * <b>Definition:</b> * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed * </p> */ public Evidence addEvidence() { Evidence newType = new Evidence(); getEvidence().add(newType); return newType; }
/** * Adds and returns a new value for <b>location</b> (Anatomical location, if relevant) * * <p> * <b>Definition:</b> * The anatomical location where this condition manifests itself * </p> */ public Location addLocation() { Location newType = new Location(); getLocation().add(newType); return newType; }
/** * Adds and returns a new value for <b>relatedItem</b> (Causes or precedents for this Condition) * * <p> * <b>Definition:</b> * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition * </p> */ public RelatedItem addRelatedItem() { RelatedItem newType = new RelatedItem(); getRelatedItem().add(newType); return newType; }
/** * Adds and returns a new value for <b>identifier</b> (External Ids for this condition) * * <p> * <b>Definition:</b> * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) * </p> */ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; }
@Override protected void render(Condition problem, List<Object> columns) { CodingDt coding = problem.getCode().getCodingFirstRep(); columns.add(coding.getDisplay().getValue()); }