/** * Gets the first repetition for <b>exposure</b> (Suspected substance), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * An exposure to a substance that preceded a reaction occurrence * </p> */ public Exposure getExposureFirstRep() { if (getExposure().isEmpty()) { return addExposure(); } return getExposure().get(0); }
/** * Gets the first repetition for <b>identifier</b> (External Ids for this adverse reaction), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * This records identifiers associated with this reaction 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>symptom</b> (What was reaction?), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The signs and symptoms that were observed as part of the reaction * </p> */ public Symptom getSymptomFirstRep() { if (getSymptom().isEmpty()) { return addSymptom(); } return getSymptom().get(0); }
@Override public Map<String, String> getDetail() { Map<String, String> details = new HashMap<String, String>(); details.put("subject", myResource.getSubject().getReference().getValue()); details.put("version", myResource.getId().getVersionIdPart()); return details; }
@Override public BaseIdentifierDt getIdentifier() { if(myResource == null) return null; return myResource.getIdentifierFirstRep(); }
/** * Adds and returns a new value for <b>identifier</b> (External Ids for this adverse reaction) * * <p> * <b>Definition:</b> * This records identifiers associated with this reaction 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; }
/** * Adds and returns a new value for <b>exposure</b> (Suspected substance) * * <p> * <b>Definition:</b> * An exposure to a substance that preceded a reaction occurrence * </p> */ public Exposure addExposure() { Exposure newType = new Exposure(); getExposure().add(newType); return newType; }
/** * Adds and returns a new value for <b>symptom</b> (What was reaction?) * * <p> * <b>Definition:</b> * The signs and symptoms that were observed as part of the reaction * </p> */ public Symptom addSymptom() { Symptom newType = new Symptom(); getSymptom().add(newType); return newType; }
@Override public String getName() { if(myResource == null) return null; return "AdverseReaction:" + myResource.getIdentifierFirstRep().getValue(); }