From 2f25eea27f2de33d5ee46635a05cf36b6aeea018 Mon Sep 17 00:00:00 2001 From: sunwen Date: Mon, 23 Sep 2024 16:14:30 +0800 Subject: [PATCH] fix: Mpps action when patient has no accession. --- src/dicom/MPPSManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dicom/MPPSManager.cpp b/src/dicom/MPPSManager.cpp index 21b1c10..9a33e96 100644 --- a/src/dicom/MPPSManager.cpp +++ b/src/dicom/MPPSManager.cpp @@ -68,7 +68,11 @@ MPPSManager* MPPSManager::getInstance() void MPPSManager::sendMPPS() { AccessionInformation* accession = ScanProcessSequence::getInstance()->topAccession().first; - if (accession != nullptr && JsonObject::Instance()->getMppsOpen() && !accession->mSPSID.isEmpty() && accession->mMPPSUID.isEmpty()) + if(accession == nullptr) + { + return; + } + if (JsonObject::Instance()->getMppsOpen() && !accession->mSPSID.isEmpty() && accession->mMPPSUID.isEmpty()) { action->setAccession(accession); action->execute();