Mercurial > hg > orthanc
comparison OrthancServer/UnitTestsSources/UnitTestsMain.cpp @ 4504:7d1eabfac6e0
removed cached dicom-as-json from DicomInstanceToStore
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Feb 2021 11:29:53 +0100 |
parents | d9473bd5ed43 |
children | 8f9090b137f1 |
comparison
equal
deleted
inserted
replaced
4503:b525e0c3cff0 | 4504:7d1eabfac6e0 |
---|---|
248 element->getTag().getEVR() == EVR_US); | 248 element->getTag().getEVR() == EVR_US); |
249 | 249 |
250 DicomInstanceToStore toStore; | 250 DicomInstanceToStore toStore; |
251 toStore.SetParsedDicomFile(dicom); | 251 toStore.SetParsedDicomFile(dicom); |
252 | 252 |
253 Json::Value dicomAsJson; | |
254 OrthancConfiguration::DefaultDicomDatasetToJson(dicomAsJson, toStore.GetParsedDicomFile()); | |
255 | |
253 DicomMap m; | 256 DicomMap m; |
254 m.FromDicomAsJson(toStore.GetJson()); | 257 m.FromDicomAsJson(dicomAsJson); |
255 | 258 |
256 ASSERT_EQ("ISO_IR 100", m.GetValue(DICOM_TAG_SPECIFIC_CHARACTER_SET).GetContent()); | 259 ASSERT_EQ("ISO_IR 100", m.GetValue(DICOM_TAG_SPECIFIC_CHARACTER_SET).GetContent()); |
257 | 260 |
258 ASSERT_FALSE(m.GetValue(DICOM_TAG_PATIENT_NAME).IsBinary()); | 261 ASSERT_FALSE(m.GetValue(DICOM_TAG_PATIENT_NAME).IsBinary()); |
259 ASSERT_EQ("Hello", m.GetValue(DICOM_TAG_PATIENT_NAME).GetContent()); | 262 ASSERT_EQ("Hello", m.GetValue(DICOM_TAG_PATIENT_NAME).GetContent()); |