Skip to content
New issue

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

Worklist correct dico mtags #4

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
9c955ae
ExportROIs
rossetantoine Feb 26, 2013
2861b37
Invert Data plugin available in PluginManager
rossetantoine Feb 27, 2013
09647ff
Resample Data plugin available in PluginManager
rossetantoine Mar 11, 2013
01e906b
ResampleData plugin
rossetantoine Mar 11, 2013
1c35329
Update ExportROIsPlugin.m
crubb Mar 13, 2013
a0ef1b7
adding DicomUnEnhancer
aglv Mar 13, 2013
23c5a45
english
aglv Mar 13, 2013
749c8fa
Add function Hotkeys.
b-deville Mar 19, 2013
3f7575a
Swizzle cmd-p when PrintingLayout plugin is present.
b-deville Mar 19, 2013
1aa7278
Scale to fit option on thumbnails.
b-deville Mar 20, 2013
228d216
Should remove the warning if executeFilterFromString: is declared in …
b-deville Mar 20, 2013
fa62f23
No annotation on thumbnails in editing mode. Will be added on PDF dep…
b-deville Mar 20, 2013
79c9b86
Annotation management.
b-deville Mar 20, 2013
81418db
Warnings removed
b-deville Mar 21, 2013
3688fdb
annotation: not used
b-deville Mar 21, 2013
a185192
Comments
b-deville Mar 21, 2013
34f7870
Cleaning
b-deville Mar 21, 2013
5e5ee4b
Prevent annotations to be shown on PLThumbnailView
b-deville Mar 21, 2013
14bccb2
Bug removed: Width and Height fields were not properly updated when i…
b-deville Mar 21, 2013
417614d
Cleaning
b-deville Mar 21, 2013
74cd8cc
Cleaning
b-deville Mar 21, 2013
1912501
Bug: rotation propagation on exported document resolved.
b-deville Mar 21, 2013
0463506
misc
rossetantoine Mar 25, 2013
cba07b8
Change no annotations to only graphic annotations (because of ROIs)
b-deville Mar 26, 2013
28049a9
Bug resolved: importing only a part of the series was not working if …
b-deville Mar 26, 2013
43f6407
Move to new OsiriXAPI.framework
rossetantoine Apr 28, 2013
f7770f3
merged
May 8, 2013
f28c86a
Reporter 1.2.1
May 15, 2013
df8ccdb
SandBox plugin initial import
thomasstrgar May 29, 2013
14b456a
SandBox commit
thomasstrgar Jun 6, 2013
18608a9
dunno
aglv Jun 7, 2013
83a84e6
merged
aglv Jun 7, 2013
2d00289
Merge branch 'develop' of https://github.com/pixmeo/osirixplugins int…
aglv Jun 11, 2013
6fdeb1a
SandBox (keep only DicomFolder)
thomasstrgar Jun 13, 2013
4610a12
ASOC
jacquesfauquex Jun 19, 2013
b87b4d5
ignore user settings for jacquesfauquex in project. ignore .DS_Store …
jacquesfauquex Jun 20, 2013
a8ecd53
README.txt
jacquesfauquex Jun 21, 2013
e277fac
misc
rossetantoine Jul 2, 2013
01874c7
HSS 1.1.4: resolve case when folder description is <null> instead of …
b-deville Aug 15, 2013
5f6923d
1.3.2
rossetantoine Aug 20, 2013
c67ea27
gitignore
rossetantoine Aug 20, 2013
a1b6c96
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Aug 20, 2013
06064b2
Backward compatibility
rossetantoine Aug 28, 2013
29a397a
1.3.3
rossetantoine Aug 28, 2013
fff8eb9
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Aug 29, 2013
8187874
1.8
rossetantoine Sep 4, 2013
4800788
misc
rossetantoine Sep 12, 2013
34cc2c1
Merge branch 'develop' of https://github.com/pixmeo/osirixplugins int…
rossetantoine Sep 12, 2013
0adea4a
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Sep 16, 2013
78c1259
SandBox : SandboxWindowController inherits from BurnerWindowController
thomasstrgar Oct 8, 2013
4524ace
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Oct 18, 2013
91c9846
SandBox : Misc
thomasstrgar Oct 21, 2013
bd9d942
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Oct 22, 2013
aebab89
pluginGenerator
rossetantoine Nov 5, 2013
8f196d3
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Nov 6, 2013
25ed047
HL7 to DICOM PDF example with Mirth
rossetantoine Nov 10, 2013
90e993f
mirth channel
rossetantoine Nov 10, 2013
955b26a
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Nov 12, 2013
4895a1d
KeyObjectSelection: small project settings changes
b-deville Nov 13, 2013
1ff9a1c
KeyObjectSelection: autorouting and export confirmation support
b-deville Nov 13, 2013
b63a17a
plugin generator
rossetantoine Nov 13, 2013
5d16784
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Nov 14, 2013
0f85bf2
SandBox : Diabolic bug fixed!
thomasstrgar Nov 26, 2013
5f3c138
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Nov 27, 2013
1f9df8b
HSS 1.1.5 : deactivate the medcase name field while waiting for the l…
b-deville Dec 10, 2013
7ea192d
misc
rossetantoine Dec 26, 2013
2689047
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Jan 2, 2014
6a98f11
PDF2DICOM: copy studyDescription
rossetantoine Feb 2, 2014
05b9ea2
Merge branch 'develop' of https://github.com/pixmeo/osirixplugins int…
rossetantoine Feb 2, 2014
adc78cb
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Feb 3, 2014
dffd3fa
NSUserDefaults Handle As Compound Value
rossetantoine Feb 14, 2014
2c57ae0
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Feb 17, 2014
d8e4b3a
HSS 1.1.5.1
b-deville Feb 19, 2014
7aad3f0
Compatibility
rossetantoine Mar 30, 2014
3e7fb1e
Merge branch 'develop' of https://github.com/pixmeo/osirixplugins int…
rossetantoine Mar 30, 2014
b81457c
Merge branch 'develop' of http://github.com/pixmeo/osirixplugins into…
b-deville Mar 31, 2014
b09a2b2
HipArthroplastyTemplating 2.4.4
b-deville Mar 31, 2014
d71b0c6
HipArthroplastyTemplating 2.4.4
b-deville Mar 31, 2014
a2c496f
Worklists
b-deville Mar 31, 2014
d3f2d13
.gitignore update
b-deville Mar 31, 2014
1aa16aa
misc
rossetantoine Apr 2, 2014
940815b
Merge branch 'develop' of https://github.com/pixmeo/osirixplugins int…
rossetantoine Apr 2, 2014
723b822
misc
rossetantoine Apr 3, 2014
73ad3bb
DiscPublishing: bug with series parsing
rossetantoine May 25, 2014
4e2c0d4
misc
rossetantoine May 29, 2014
0b62870
Reporter 5.2 compatibility
rossetantoine Jun 4, 2014
7ac571e
version number
rossetantoine Jun 16, 2014
782b905
folder name
rossetantoine Jun 24, 2014
5a4a532
ReduceSeries updated to new API
rossetantoine Jul 3, 2014
c4fec9f
Worklist
rossetantoine Aug 7, 2014
fbe2bf7
misc
rossetantoine Aug 8, 2014
4ceea2b
DiscPublishing tests
rossetantoine Aug 10, 2014
3d31dd5
misc
rossetantoine Aug 12, 2014
7ddfb29
HSS 1.2: Add all key images from selected patient
b-deville Aug 22, 2014
7829d74
HSS: minor string correction
b-deville Aug 25, 2014
3be9a70
Merge branch 'HSS-AddKeyImagesAtPatientAndStudyLevel' into develop
b-deville Aug 25, 2014
ff8b703
Worklist 1.1.1: updating DCM tags
b-deville Aug 29, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
1.8
rossetantoine committed Sep 4, 2013
commit 81878748bd6879b4bf2bdb2d96c4d94f990306fa
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -18,3 +18,15 @@ DiscPublishing/Libs/*
DiscPublishing/DiscPublishing.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate

DiscPublishing/DiscPublishing.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate

PDF to DICOM/PDFToDicom.xcodeproj/project.xcworkspace/contents.xcworkspacedata

PDF to DICOM/PDFToDicom.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/PDFToDICOM.xcscheme

PDF to DICOM/PDFToDicom.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist

Reporter/Reporter.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Reporter.xcscheme

Reporter/Reporter.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/ReporterPrefs.xcscheme

Reporter/Reporter.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist
2 changes: 1 addition & 1 deletion PDF to DICOM/DCMPDFImportFilter.h
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
//

#import <Foundation/Foundation.h>
#import "OsiriXAPI/PluginFilter.h"
#import <OsiriXAPI/PluginFilter.h>

@class DCMCalendarDate;

247 changes: 129 additions & 118 deletions PDF to DICOM/DCMPDFImportFilter.m
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@

#import "OsiriXAPI/browserController.h"
#import "OsiriXAPI/DicomFile.h"
#import "OsiriXAPI/DicomDatabase.h"

@implementation DCMPDFImportFilter

@@ -47,8 +48,7 @@ - (long) filterImage:(NSString*) menuName
NSDirectoryEnumerator *dirEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:fpath];
NSString *path;
while (path = [dirEnumerator nextObject])
if ([[NSImage imageFileTypes] containsObject:[path pathExtension]]
|| [[NSImage imageFileTypes] containsObject:NSFileTypeForHFSTypeCode([[[[NSFileManager defaultManager] fileSystemAttributesAtPath:path] objectForKey:NSFileHFSTypeCode] longValue])])
if ([[NSImage imageFileTypes] containsObject:[path pathExtension]])
[self convertImageToDICOM:[fpath stringByAppendingPathComponent:path] source: source];
}
else
@@ -65,122 +65,133 @@ - (long) filterImage:(NSString*) menuName

- (void)convertImageToDICOM:(NSString *)path source:(NSString *) source
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

NSMutableData *pdf = nil;
if ([[path pathExtension] isEqualToString:@"pdf"])
pdf = [NSMutableData dataWithContentsOfFile:path];

//if we have an image get the info we need from the imageRep.
if( pdf)
{
id patientName = nil, patientID = nil, studyDescription = nil, studyUID = nil, studyID = nil, studyDate = nil;
id studyTime = nil, seriesDate = nil, seriesTime = nil, acquisitionDate = nil, acquisitionTime = nil;
id contentDate = nil, contentTime = nil, charSet = nil, patientSex = nil, accessionNumber = nil, patientsBirthDate = nil, referringPhysiciansName = nil;

if ([DicomFile isDICOMFile: source])
{
DCMObject *dcmObject = [DCMObject objectWithContentsOfFile: source decodingPixelData:NO];

patientName = [dcmObject attributeValueWithName:@"PatientsName"];
patientID = [dcmObject attributeValueWithName:@"PatientID"];
studyDescription = [dcmObject attributeValueWithName:@"StudyDescription"];
studyUID = [dcmObject attributeValueWithName:@"StudyInstanceUID"];
studyID = [dcmObject attributeValueWithName:@"StudyID"];
studyDate = [dcmObject attributeValueWithName:@"StudyDate"];
studyTime = [dcmObject attributeValueWithName:@"StudyTime"];
seriesDate = [dcmObject attributeValueWithName:@"SeriesDate"];
seriesTime = [dcmObject attributeValueWithName:@"SeriesTime"];
acquisitionDate = [dcmObject attributeValueWithName:@"AcquisitionDate"];
acquisitionTime = [dcmObject attributeValueWithName:@"AcquisitionTime"];
contentDate = [dcmObject attributeValueWithName:@"ContentDate"];
contentTime = [dcmObject attributeValueWithName:@"ContentTime"];
charSet = [dcmObject attributeValueWithName:@"SpecificCharacterSet"];
patientSex = [dcmObject attributeValueWithName:@"PatientsSex"];
accessionNumber = [dcmObject attributeValueWithName:@"AccessionNumber"];
patientsBirthDate = [dcmObject attributeValueWithName:@"PatientsBirthDate"];

referringPhysiciansName = [dcmObject attributeValueWithName:@"ReferringPhysiciansName"];
}

// pad data
if ([pdf length] % 2 != 0)
[pdf increaseLengthBy:1];
// create DICOM OBJECT
DCMObject *dcmObject = [DCMObject encapsulatedPDF:pdf];

if( charSet)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: charSet] forName:@"SpecificCharacterSet"];

[dcmObject setAttributeValues:[NSArray arrayWithObject: studyUID] forName:@"StudyInstanceUID"];
[dcmObject setAttributeValues:[NSArray arrayWithObject: [[path lastPathComponent] stringByDeletingPathExtension]] forName:@"SeriesDescription"];

if (patientName)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientName] forName:@"PatientsName"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: @""] forName:@"PatientsName"];

if (patientID)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientID] forName:@"PatientID"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: @"0"] forName:@"PatientID"];

if (patientsBirthDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientsBirthDate] forName:@"PatientsBirthDate"];

if (accessionNumber)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: accessionNumber] forName:@"AccessionNumber"];

if( referringPhysiciansName)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: referringPhysiciansName] forName:@"ReferringPhysiciansName"];

if (patientSex)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientSex] forName:@"PatientsSex"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: @""] forName:@"PatientsSex"];

if (patientsBirthDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientsBirthDate] forName:@"PatientsBirthDate"];

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: [[path lastPathComponent] stringByDeletingPathExtension]] forName:@"DocumentTitle"];

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%d", imageNumber]] forName:@"InstanceNumber"];

if ( studyID)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%d", studyID]] forName:@"StudyID"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%d", 0001]] forName:@"StudyID"];

if (studyDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:studyDate] forName:@"StudyDate"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomDateWithDate:[NSDate date]]] forName:@"StudyDate"];

if (studyTime)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:studyTime] forName:@"StudyTime"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomTimeWithDate:[NSDate date]]] forName:@"StudyTime"];
@autoreleasepool
{
NSMutableData *pdf = nil;
if ([[path pathExtension] isEqualToString:@"pdf"])
pdf = [NSMutableData dataWithContentsOfFile:path];

//if we have an image get the info we need from the imageRep.
if( pdf)
{
id patientName = nil, patientID = nil, studyDescription = nil, studyUID = nil, studyID = nil, studyDate = nil;
id studyTime = nil, seriesDate = nil, seriesTime = nil, acquisitionDate = nil, acquisitionTime = nil;
id contentDate = nil, contentTime = nil, charSet = nil, patientSex = nil, accessionNumber = nil, patientsBirthDate = nil, referringPhysiciansName = nil, institutionName = nil;

if ([DicomFile isDICOMFile: source])
{
DCMObject *dcmObject = [DCMObject objectWithContentsOfFile: source decodingPixelData:NO];

patientName = [dcmObject attributeValueWithName:@"PatientsName"];
patientID = [dcmObject attributeValueWithName:@"PatientID"];
studyDescription = [dcmObject attributeValueWithName:@"StudyDescription"];
studyUID = [dcmObject attributeValueWithName:@"StudyInstanceUID"];
studyID = [dcmObject attributeValueWithName:@"StudyID"];
studyDate = [dcmObject attributeValueWithName:@"StudyDate"];
studyTime = [dcmObject attributeValueWithName:@"StudyTime"];
seriesDate = [dcmObject attributeValueWithName:@"SeriesDate"];
seriesTime = [dcmObject attributeValueWithName:@"SeriesTime"];
acquisitionDate = [dcmObject attributeValueWithName:@"AcquisitionDate"];
acquisitionTime = [dcmObject attributeValueWithName:@"AcquisitionTime"];
contentDate = [dcmObject attributeValueWithName:@"ContentDate"];
contentTime = [dcmObject attributeValueWithName:@"ContentTime"];
charSet = [dcmObject attributeValueWithName:@"SpecificCharacterSet"];
patientSex = [dcmObject attributeValueWithName:@"PatientsSex"];
accessionNumber = [dcmObject attributeValueWithName:@"AccessionNumber"];
patientsBirthDate = [dcmObject attributeValueWithName:@"PatientsBirthDate"];
institutionName = [dcmObject attributeValueWithName:@"InstitutionName"];

referringPhysiciansName = [dcmObject attributeValueWithName:@"ReferringPhysiciansName"];
}

// pad data
if ([pdf length] % 2 != 0)
[pdf increaseLengthBy:1];
// create DICOM OBJECT
DCMObject *dcmObject = [DCMObject encapsulatedPDF:pdf];

if( charSet)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: charSet] forName:@"SpecificCharacterSet"];

[dcmObject setAttributeValues:[NSArray arrayWithObject: studyUID] forName:@"StudyInstanceUID"];
[dcmObject setAttributeValues:[NSArray arrayWithObject: [[path lastPathComponent] stringByDeletingPathExtension]] forName:@"SeriesDescription"];

if (patientName)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientName] forName:@"PatientsName"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: @""] forName:@"PatientsName"];

if (patientID)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientID] forName:@"PatientID"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: @"0"] forName:@"PatientID"];

if (patientsBirthDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientsBirthDate] forName:@"PatientsBirthDate"];

if (accessionNumber)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: accessionNumber] forName:@"AccessionNumber"];

if( referringPhysiciansName)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: referringPhysiciansName] forName:@"ReferringPhysiciansName"];

if( institutionName)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: institutionName] forName:@"InstitutionName"];

if (patientSex)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientSex] forName:@"PatientsSex"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: @""] forName:@"PatientsSex"];

if (patientsBirthDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: patientsBirthDate] forName:@"PatientsBirthDate"];

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject: [[path lastPathComponent] stringByDeletingPathExtension]] forName:@"DocumentTitle"];

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%d", imageNumber]] forName:@"InstanceNumber"];

if ( studyID)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%d", (int) studyID]] forName:@"StudyID"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%d", 0001]] forName:@"StudyID"];

if (studyDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:studyDate] forName:@"StudyDate"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomDateWithDate:[NSDate date]]] forName:@"StudyDate"];

if (studyTime)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:studyTime] forName:@"StudyTime"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomTimeWithDate:[NSDate date]]] forName:@"StudyTime"];

if (seriesDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:seriesDate] forName:@"SeriesDate"];
else

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomTimeWithDate:[NSDate date]]] forName:@"SeriesDate"];

if (seriesTime)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:seriesTime] forName:@"SeriesTime"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomTimeWithDate:[NSDate date]]] forName:@"SeriesTime"];

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:@"9997"] forName:@"SeriesNumber"];

//get Incoming Folder Path;
NSString *destination = [NSString stringWithFormat: @"%@/INCOMING.noindex/PDF%d%d.dcm", [[BrowserController currentBrowser] documentsDirectory], studyID, imageNumber++];

if ([dcmObject writeToFile:destination withTransferSyntax:[DCMTransferSyntax ExplicitVRLittleEndianTransferSyntax] quality:DCMLosslessQuality atomically:YES])
NSLog(@"Wrote PDF to %@", destination);
}

[pool release];
if (seriesDate)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:seriesDate] forName:@"SeriesDate"];
else

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomTimeWithDate:[NSDate date]]] forName:@"SeriesDate"];

if (seriesTime)
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:seriesTime] forName:@"SeriesTime"];
else
[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:[DCMCalendarDate dicomTimeWithDate:[NSDate date]]] forName:@"SeriesTime"];

[dcmObject setAttributeValues:[NSMutableArray arrayWithObject:@"9997"] forName:@"SeriesNumber"];

NSString *filePath = [BrowserController.currentBrowser.database uniquePathForNewDataFileWithExtension: @"dcm"];

if( [dcmObject writeToFile:filePath withTransferSyntax:[DCMTransferSyntax ExplicitVRLittleEndianTransferSyntax] quality:DCMLosslessQuality atomically:YES])
NSLog(@"Wrote PDF to %@", filePath);

if( [[NSFileManager defaultManager] fileExistsAtPath: filePath])
[BrowserController.currentBrowser.database addFilesAtPaths: [NSArray arrayWithObject: filePath]
postNotifications: YES
dicomOnly: YES
rereadExistingItems: YES
generatedByOsiriX: YES];


}
}
}
@end
Binary file modified PDF to DICOM/English.lproj/InfoPlist.strings
Binary file not shown.
2 changes: 1 addition & 1 deletion PDF to DICOM/Info.plist
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.7</string>
<string>1.8</string>
<key>MenuTitles</key>
<array>
<string>PDF to DICOM</string>
Loading