/** * Gets the first repetition for <b>referenceRange</b> (Provides guide for interpretation), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Guidance on how to interpret the value by comparison to a normal or recommended range * </p> */ public ReferenceRange getReferenceRangeFirstRep() { if (getReferenceRange().isEmpty()) { return addReferenceRange(); } return getReferenceRange().get(0); }
/** * Gets the first repetition for <b>related</b> (Observations related to this observation), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Related observations - either components, or previous observations, or statements of derivation * </p> */ public Related getRelatedFirstRep() { if (getRelated().isEmpty()) { return addRelated(); } return getRelated().get(0); }
@Override public BaseIdentifierDt getIdentifier() { return myResource.getIdentifier(); }
@Override public Map<String, String> getDetail() { if(myResource == null) return null; Map<String, String> details = new HashMap<String, String>(); details.put("dateIssued", myResource.getIssued().getValueAsString()); details.put("version", myResource.getId().getVersionIdPart()); details.put("subject", myResource.getSubject().getReference().getValue()); return details; }
/** * Sets the value(s) for <b>reliability</b> (ok | ongoing | early | questionable | calibrating | error +) * * <p> * <b>Definition:</b> * An estimate of the degree to which quality issues have impacted on the value reported * </p> */ public Observation setReliability(ObservationReliabilityEnum theValue) { getReliability().setValueAsEnum(theValue); return this; }
/** * Adds and returns a new value for <b>performer</b> (Who did the observation) * * <p> * <b>Definition:</b> * Who was responsible for asserting the observed value as \"true\" * </p> */ public ResourceReferenceDt addPerformer() { ResourceReferenceDt newType = new ResourceReferenceDt(); getPerformer().add(newType); return newType; }
/** * Adds and returns a new value for <b>referenceRange</b> (Provides guide for interpretation) * * <p> * <b>Definition:</b> * Guidance on how to interpret the value by comparison to a normal or recommended range * </p> */ public ReferenceRange addReferenceRange() { ReferenceRange newType = new ReferenceRange(); getReferenceRange().add(newType); return newType; }
/** * Adds and returns a new value for <b>related</b> (Observations related to this observation) * * <p> * <b>Definition:</b> * Related observations - either components, or previous observations, or statements of derivation * </p> */ public Related addRelated() { Related newType = new Related(); getRelated().add(newType); return newType; }
@Override public String getName() { if(myResource == null) return null; return "Observation:" + myResource.getName().getCodingFirstRep().getCode().getValue(); }