-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from HicServices/develop
Release v4.0.3
- Loading branch information
Showing
9 changed files
with
182 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
DicomTypeTranslation/TableCreation/ImageTableTemplateObjectFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
using FAnsi.Discovery; | ||
using FAnsi.Discovery.TypeTranslation; | ||
using System; | ||
using System; | ||
using TypeGuesser; | ||
using YamlDotNet.Serialization; | ||
using YamlDotNet.Serialization.ObjectFactories; | ||
|
||
namespace DicomTypeTranslation.TableCreation | ||
namespace DicomTypeTranslation.TableCreation; | ||
|
||
internal class ImageTableTemplateObjectFactory : ObjectFactoryBase | ||
{ | ||
internal class ImageTableTemplateObjectFactory : IObjectFactory | ||
public override object Create(Type type) | ||
{ | ||
public object Create(Type type) | ||
{ | ||
if(type == typeof(DatabaseTypeRequest)) | ||
return new DatabaseTypeRequest(typeof(string),null,null); | ||
|
||
return Activator.CreateInstance(type); | ||
} | ||
return type == typeof(DatabaseTypeRequest) | ||
? new DatabaseTypeRequest(typeof(string), null, null) | ||
: Activator.CreateInstance(type); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
Tables: | ||
- TableName: StudyTable | ||
Columns: | ||
- ColumnName: PatientID | ||
- ColumnName: StudyInstanceUID | ||
- ColumnName: StudyDate | ||
AllowNulls: true | ||
- ColumnName: StudyTime | ||
AllowNulls: true | ||
- ColumnName: ModalitiesInStudy | ||
AllowNulls: true | ||
- ColumnName: StudyDescription | ||
AllowNulls: true | ||
- ColumnName: AccessionNumber | ||
AllowNulls: true | ||
- ColumnName: PatientSex | ||
AllowNulls: true | ||
- ColumnName: PatientAge | ||
AllowNulls: true | ||
- ColumnName: NumberOfStudyRelatedInstances | ||
AllowNulls: true | ||
- ColumnName: PatientBirthDate | ||
AllowNulls: true | ||
- ColumnName: SeriesInstanceUID | ||
- ColumnName: Modality | ||
AllowNulls: true | ||
- ColumnName: InstitutionName | ||
AllowNulls: true | ||
- ColumnName: ProtocolName | ||
AllowNulls: true | ||
- ColumnName: ProcedureCodeSequence_CodeValue | ||
Type: | ||
CSharpType: System.String | ||
Size: | ||
IsEmpty: true | ||
Width: 16 | ||
AllowNulls: true | ||
- ColumnName: PerformedProcedureStepDescription | ||
AllowNulls: true | ||
- ColumnName: SeriesDescription | ||
AllowNulls: true | ||
- ColumnName: SeriesDate | ||
AllowNulls: true | ||
- ColumnName: SeriesTime | ||
AllowNulls: true | ||
- ColumnName: BodyPartExamined | ||
AllowNulls: true | ||
- ColumnName: DeviceSerialNumber | ||
AllowNulls: true | ||
- ColumnName: SeriesNumber | ||
AllowNulls: true | ||
- ColumnName: SOPInstanceUID | ||
IsPrimaryKey: true | ||
- ColumnName: BurnedInAnnotation | ||
AllowNulls: true | ||
- ColumnName: RelativeFileArchiveURI | ||
AllowNulls: true | ||
- ColumnName: MessageGuid | ||
AllowNulls: true | ||
- ColumnName: ImageType | ||
AllowNulls: true | ||
- ColumnName: ManufacturerModelName | ||
AllowNulls: true | ||
- ColumnName: Manufacturer | ||
AllowNulls: true | ||
- ColumnName: SoftwareVersions | ||
AllowNulls: true | ||
- ColumnName: PhotometricInterpretation | ||
AllowNulls: true | ||
- ColumnName: AcquisitionNumber | ||
AllowNulls: true | ||
- ColumnName: AcquisitionDate | ||
AllowNulls: true | ||
- ColumnName: AcquisitionTime | ||
AllowNulls: true | ||
- ColumnName: PixelSpacing | ||
AllowNulls: true | ||
- ColumnName: AcquisitionDeviceProcessingDescription | ||
AllowNulls: true | ||
- ColumnName: NumberOfWaveformChannels | ||
AllowNulls: true | ||
- ColumnName: NumberOfWaveformSamples | ||
AllowNulls: true | ||
- ColumnName: SamplingFrequency | ||
AllowNulls: true | ||
- ColumnName: WaveformBitsAllocated | ||
AllowNulls: true | ||
- ColumnName: WaveformSequence | ||
AllowNulls: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters