/** * Gets the first repetition for <b>codedDiagnosis</b> (Codes for the conclusion), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * * </p> */ public CodeableConceptDt getCodedDiagnosisFirstRep() { if (getCodedDiagnosis().isEmpty()) { return addCodedDiagnosis(); } return getCodedDiagnosis().get(0); }
/** * Gets the first repetition for <b>image</b> (Key images associated with this report), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) * </p> */ public Image getImageFirstRep() { if (getImage().isEmpty()) { return addImage(); } return getImage().get(0); }
/** * Gets the first repetition for <b>presentedForm</b> (Entire Report as issued), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. * </p> */ public AttachmentDt getPresentedFormFirstRep() { if (getPresentedForm().isEmpty()) { return addPresentedForm(); } return getPresentedForm().get(0); }
@Override public Map<String, String> getDetail() { Map<String, String> details = new HashMap<String, String>(); details.put("dateIssued", myDiagnosticReport.getIssued().getValueAsString()); details.put("version", myDiagnosticReport.getId().getVersionIdPart()); details.put("subject", myDiagnosticReport.getSubject().getReference().getValue()); return details; }
@Override public IdentifierDt getIdentifier() { if(myDiagnosticReport != null){ return myDiagnosticReport.getIdentifier(); } return null; }
/** * Adds and returns a new value for <b>codedDiagnosis</b> (Codes for the conclusion) * * <p> * <b>Definition:</b> * * </p> */ public CodeableConceptDt addCodedDiagnosis() { CodeableConceptDt newType = new CodeableConceptDt(); getCodedDiagnosis().add(newType); return newType; }
/** * Adds and returns a new value for <b>image</b> (Key images associated with this report) * * <p> * <b>Definition:</b> * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) * </p> */ public Image addImage() { Image newType = new Image(); getImage().add(newType); return newType; }
/** * Adds and returns a new value for <b>imagingStudy</b> (Reference to full details of imaging associated with the diagnostic report) * * <p> * <b>Definition:</b> * One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images * </p> */ public ResourceReferenceDt addImagingStudy() { ResourceReferenceDt newType = new ResourceReferenceDt(); getImagingStudy().add(newType); return newType; }
@Override public String getName() { if(myDiagnosticReport != null){ return "Diagnostic Report: " + myDiagnosticReport.getName().getText().getValue(); } return null; }