We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug We have a dcm file with invalid privateCreator data element like below const string json = @" { ""00090010"": { ""vr"": ""US"", ""Value"": [ 1234, 3333 ] }, ""00091001"": { ""vr"": ""CS"", ""Value"": [ ""00"" ] } } ";
Note: the 00090010 is a private creator tag, it needs to be VR: LO and VM:1 https://dicom.nema.org/dicom/2013/output/chtml/part05/sect_7.8.html
This bad data fails to deserialize with below exception even when autovalidate is set to false for the serializer.
DICOM element (xxxx,0010) must contain a single value, but contains 4
To Reproduce const string json = @" { ""00090010"": { ""vr"": ""US"", ""Value"": [ 1234, 3333 ] }, ""00091001"": { ""vr"": ""CS"", ""Value"": [ ""00"" ] } } ";
// make sure below serialization does not throw DicomDataset ds = DicomJson.ConvertJsonToDicom(json, autoValidate: false);
Expected behavior Conversion to succeed to the best effort.
Screenshots or test DICOM files Included above
Environment Fellow Oak DICOM version: 5.0.3
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
We have a dcm file with invalid privateCreator data element like below
const string json = @"
{
""00090010"": {
""vr"": ""US"",
""Value"": [
1234,
3333
]
},
""00091001"": {
""vr"": ""CS"",
""Value"": [
""00""
]
}
} ";
Note: the 00090010 is a private creator tag, it needs to be VR: LO and VM:1 https://dicom.nema.org/dicom/2013/output/chtml/part05/sect_7.8.html
This bad data fails to deserialize with below exception even when autovalidate is set to false for the serializer.
DICOM element (xxxx,0010) must contain a single value, but contains 4
To Reproduce
const string json = @"
{
""00090010"": {
""vr"": ""US"",
""Value"": [
1234,
3333
]
},
""00091001"": {
""vr"": ""CS"",
""Value"": [
""00""
]
}
} ";
Expected behavior
Conversion to succeed to the best effort.
Screenshots or test DICOM files
Included above
Environment
Fellow Oak DICOM version: 5.0.3
The text was updated successfully, but these errors were encountered: