dicom_util/src/main/java/com/google/cloud/healthcare/DicomWebClient.java [202:216]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void delete(InputStream stream) throws IDicomWebClient.DicomWebException {
    try {
      DicomInputStream dis = new DicomInputStream(stream);
      Attributes attrs = dis.readDataset(-1, Tag.PixelData);
      String instanceUrl =
          String.format(
              "studies/%s/series/%s/instances/%s",
              StringUtil.getTagValueAsStringOrException(attrs, Tag.StudyInstanceUID),
              StringUtil.getTagValueAsStringOrException(attrs, Tag.SeriesInstanceUID),
              StringUtil.getTagValueAsStringOrException(attrs, Tag.SOPInstanceUID));
      this.delete(instanceUrl);
    } catch (IOException e) {
      throw new IDicomWebClient.DicomWebException(e);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dicom_util/src/main/java/com/google/cloud/healthcare/DicomWebClientJetty.java [268:282]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void delete(InputStream stream) throws IDicomWebClient.DicomWebException {
    try {
      DicomInputStream dis = new DicomInputStream(stream);
      Attributes attrs = dis.readDataset(-1, Tag.PixelData);
      String instanceUrl =
          String.format(
              "%s/series/%s/instances/%s", // NOTE: /studies/ already in stowPath
              StringUtil.getTagValueAsStringOrException(attrs, Tag.StudyInstanceUID),
              StringUtil.getTagValueAsStringOrException(attrs, Tag.SeriesInstanceUID),
              StringUtil.getTagValueAsStringOrException(attrs, Tag.SOPInstanceUID));
      this.delete(instanceUrl);
    } catch (IOException e) {
      throw new IDicomWebClient.DicomWebException(e);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



