Add accession number and studyuid in patient data.
This commit is contained in:
@@ -65,6 +65,12 @@ PatientData PatientDataReader::getPatientDataFromKIT(const std::string& aFilePat
|
||||
//PatientName
|
||||
result.setPatientName(getPatientStringData(patMat,"PatientName"));
|
||||
|
||||
//AccessionNumber
|
||||
result.setAccessionNumber(getPatientStringData(patMat,"AccessionNumber"));
|
||||
|
||||
//StudyUID
|
||||
result.setStudyUID(getPatientStringData(patMat,"StudyUID"));
|
||||
|
||||
//PatientSex
|
||||
result.setPatientSex(getPatientStringData(patMat,"PatientSex"));
|
||||
|
||||
@@ -139,6 +145,16 @@ PatientData PatientDataReader::getPatientDataFromHJ(const std::string& aFilePath
|
||||
{
|
||||
result.setLaterality(patientObj.at("Laterality").get<std::string>());
|
||||
}
|
||||
|
||||
if(patientObj.contains("AccessionNumber"))
|
||||
{
|
||||
result.setAccessionNumber(patientObj.at("AccessionNumber").get<std::string>());
|
||||
}
|
||||
|
||||
if(patientObj.contains("StudyUID"))
|
||||
{
|
||||
result.setStudyUID(patientObj.at("StudyUID").get<std::string>());
|
||||
}
|
||||
delete[] patientCString;
|
||||
stream.close();
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user