Add accession number and studyuid in patient data.
This commit is contained in:
@@ -25,6 +25,26 @@ std::string PatientData::getPatientName() const
|
|||||||
return mPatientName;
|
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)
|
void PatientData::setReferringPhysicianName(const std::string& aReferringPhysicianName)
|
||||||
{
|
{
|
||||||
mReferringPhysicianName = aReferringPhysicianName;
|
mReferringPhysicianName = aReferringPhysicianName;
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ public:
|
|||||||
PatientData();
|
PatientData();
|
||||||
std::string getPatientID() const;
|
std::string getPatientID() const;
|
||||||
std::string getPatientName() const;
|
std::string getPatientName() const;
|
||||||
|
std::string getAccessionNumber() const;
|
||||||
|
std::string getStudyUID() const;
|
||||||
std::string getReferringPhysicianName() const;
|
std::string getReferringPhysicianName() const;
|
||||||
std::string getInstituationName() const;
|
std::string getInstituationName() const;
|
||||||
std::string getInstituationAddress() const;
|
std::string getInstituationAddress() const;
|
||||||
@@ -23,6 +25,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
void setPatientID(const std::string& aPatientID);
|
void setPatientID(const std::string& aPatientID);
|
||||||
void setPatientName(const std::string& aPatientName);
|
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 setReferringPhysicianName(const std::string& aReferringPhysicianName);
|
||||||
void setInstituationName(const std::string& aInstituationName);
|
void setInstituationName(const std::string& aInstituationName);
|
||||||
void setInstituationAddress(const std::string& aInstituationAddress);
|
void setInstituationAddress(const std::string& aInstituationAddress);
|
||||||
@@ -35,6 +39,8 @@ private:
|
|||||||
private:
|
private:
|
||||||
std::string mPatientID;
|
std::string mPatientID;
|
||||||
std::string mPatientName;
|
std::string mPatientName;
|
||||||
|
std::string mAccessionNumber;
|
||||||
|
std::string mStudyUID;
|
||||||
std::string mReferringPhysicianName;
|
std::string mReferringPhysicianName;
|
||||||
std::string mInstituationName;
|
std::string mInstituationName;
|
||||||
std::string mInstituationAddress;
|
std::string mInstituationAddress;
|
||||||
|
|||||||
@@ -65,6 +65,12 @@ PatientData PatientDataReader::getPatientDataFromKIT(const std::string& aFilePat
|
|||||||
//PatientName
|
//PatientName
|
||||||
result.setPatientName(getPatientStringData(patMat,"PatientName"));
|
result.setPatientName(getPatientStringData(patMat,"PatientName"));
|
||||||
|
|
||||||
|
//AccessionNumber
|
||||||
|
result.setAccessionNumber(getPatientStringData(patMat,"AccessionNumber"));
|
||||||
|
|
||||||
|
//StudyUID
|
||||||
|
result.setStudyUID(getPatientStringData(patMat,"StudyUID"));
|
||||||
|
|
||||||
//PatientSex
|
//PatientSex
|
||||||
result.setPatientSex(getPatientStringData(patMat,"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>());
|
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;
|
delete[] patientCString;
|
||||||
stream.close();
|
stream.close();
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user