Exemple #1
0
 private void coerceNCreateRQ(Command rspCmd, Dataset rqData) {
   rqData.putUI(Tags.SOPClassUID, rspCmd.getAffectedSOPClassUID());
   rqData.putUI(Tags.SOPInstanceUID, rspCmd.getAffectedSOPInstanceUID());
   initSPSModificationDateandTime(rqData);
   if (!rqData.containsValue(Tags.WorklistLabel))
     rqData.putLO(Tags.WorklistLabel, service.getWorklistLabel());
 }
Exemple #2
0
 private static void type1(Dataset rqData, int tag, int... sqTags) throws DcmServiceException {
   if (!rqData.containsValue(tag)) {
     type2(rqData, tag, sqTags);
     new DcmServiceException(
         sqTags.length == 0 ? Status.MissingAttributeValue : Status.InvalidAttributeValue,
         errorMessage("Missing Attribute Value: ", tag, sqTags));
   }
 }
Exemple #3
0
 private static void shallBeEmpty(Dataset rqData, int tag, int... sqTags)
     throws DcmServiceException {
   type2(rqData, tag, sqTags);
   if (rqData.containsValue(tag)) {
     throw new DcmServiceException(
         Status.InvalidAttributeValue, errorMessage("Shall be empty Attribute: ", tag, sqTags));
   }
 }