fix: PatientDataReader can not read null patient information.
This commit is contained in:
@@ -96,6 +96,11 @@ PatientData PatientDataReader::getPatientDataFromHJ(const std::string& aFilePath
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
if(!jsonObj.at("Patient Info").is_string())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
patientJsonString = jsonObj.at("Patient Info").get<std::string>();
|
||||
patientJsonString = AESEncryptHelper::decrypt(patientJsonString);
|
||||
if(patientJsonString.empty())
|
||||
|
||||
Reference in New Issue
Block a user