Add accession number and studyuid in patient data.
This commit is contained in:
@@ -25,6 +25,26 @@ std::string PatientData::getPatientName() const
|
||||
return mPatientName;
|
||||
}
|
||||
|
||||
void PatientData::setAccessionNumber(const std::string &aAccessionNumber)
|
||||
{
|
||||
mAccessionNumber = aAccessionNumber;
|
||||
}
|
||||
|
||||
std::string PatientData::getAccessionNumber() const
|
||||
{
|
||||
return mAccessionNumber;
|
||||
}
|
||||
|
||||
void PatientData::setStudyUID(const std::string &aPatientStudyUID)
|
||||
{
|
||||
mStudyUID = aPatientStudyUID;
|
||||
}
|
||||
|
||||
std::string PatientData::getStudyUID() const
|
||||
{
|
||||
return mStudyUID;
|
||||
}
|
||||
|
||||
void PatientData::setReferringPhysicianName(const std::string& aReferringPhysicianName)
|
||||
{
|
||||
mReferringPhysicianName = aReferringPhysicianName;
|
||||
|
||||
@@ -11,6 +11,8 @@ public:
|
||||
PatientData();
|
||||
std::string getPatientID() const;
|
||||
std::string getPatientName() const;
|
||||
std::string getAccessionNumber() const;
|
||||
std::string getStudyUID() const;
|
||||
std::string getReferringPhysicianName() const;
|
||||
std::string getInstituationName() const;
|
||||
std::string getInstituationAddress() const;
|
||||
@@ -23,6 +25,8 @@ public:
|
||||
private:
|
||||
void setPatientID(const std::string& aPatientID);
|
||||
void setPatientName(const std::string& aPatientName);
|
||||
void setAccessionNumber(const std::string& aAccessionNumber);
|
||||
void setStudyUID(const std::string& aPatientStudyUID);
|
||||
void setReferringPhysicianName(const std::string& aReferringPhysicianName);
|
||||
void setInstituationName(const std::string& aInstituationName);
|
||||
void setInstituationAddress(const std::string& aInstituationAddress);
|
||||
@@ -35,6 +39,8 @@ private:
|
||||
private:
|
||||
std::string mPatientID;
|
||||
std::string mPatientName;
|
||||
std::string mAccessionNumber;
|
||||
std::string mStudyUID;
|
||||
std::string mReferringPhysicianName;
|
||||
std::string mInstituationName;
|
||||
std::string mInstituationAddress;
|
||||
|
||||
@@ -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