###############################################################################
#  IPConfig.site - Imaging Services site customization file for IP version 3.1
#  Emanuel Medical Center
#  WLR, Nov 24, 2006, created for disabling the reorientation rules
#  for DX images generated by Revolution XR/d device from GE Medical Systems
#  (Cf ISG CI# 988)
#  [WT Feb 14, 2008 ] - Use "Full Range" LUT Validator for Toshiba Aquilion CT images
#  (recorded REI #5610)
#
#  [WT May, 21, 2008 ] - Use "Full Range" LUT Validator for Toshiba_Mec MRT200PP5
#  MR images (recorded REI #7900)
#  [LT Mar 24, 2010] - Apply estimate W/L then Gamma LUT=0.8 for images from 
#                      SIEMENS ARCADIS CR Modality (REI 18779)
#  [LT Oct 22, 2008 ] - Disable orientation correction for image from HITACHI 
#                       Altaire MR modality (REI #22630)
#  [MD Oct 25, 2012] - Disabled orientation correction rule for images from
#                 		 FUJIFILM Corporation FDXCSL CR device  (REI 30229)
#  [2016 June 17 NHagihristos] - Disable orientation correction for Carestream DRX-Revolution CR images [REI: 43576]
###############################################################################

#------------------------------------------------------------------------------
# DX GE Revolution RDx images scope
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
vManufacturerElement_GE.type    = TDicomElement
vManufacturerElement_GE.m_ID    = vManufacturerNameElementID
vManufacturerElement_GE.m_Value = "GE MEDICAL SYSTEMS"
#------------------------------------------------------------------------------
vManufacturerScopeEntry_GE.type          = TScopeEntry
vManufacturerScopeEntry_GE.m_MatchWeight = 20
vManufacturerScopeEntry_GE.m_Elements.1  = vManufacturerElement_GE
#------------------------------------------------------------------------------
vModelElement_RevolutionXrd.type    = TDicomElement
vModelElement_RevolutionXrd.m_ID    = vManufacturerModelNameElementID
vModelElement_RevolutionXrd.m_Value = "Revolution XR/d"
#------------------------------------------------------------------------------
vModelScopeEntry_RevolutionXrd.type          = TScopeEntry
vModelScopeEntry_RevolutionXrd.m_MatchWeight = 20
vModelScopeEntry_RevolutionXrd.m_Elements.1  = vModelElement_RevolutionXrd
#------------------------------------------------------------------------------
vScope_DX_GE_RevolutionXrd.type = TScope
vScope_DX_GE_RevolutionXrd.m_Entries.1 = vDXImageScopeEntry
vScope_DX_GE_RevolutionXrd.m_Entries.2 = vManufacturerScopeEntry_GE
vScope_DX_GE_RevolutionXrd.m_Entries.3 = vModelScopeEntry_RevolutionXrd
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Initial presentation for DX GE Revolution RDx images scope
# does not propose any reorientation correction
# The images from this device will be always displayed "as acquired"
#------------------------------------------------------------------------------
vDX_GE_RevolutionXrd_Pres.type           = TInitialPresentationOption
vDX_GE_RevolutionXrd_Pres.m_Usage        = eInitialPresentationUsage
vDX_GE_RevolutionXrd_Pres.m_Scope        = vScope_DX_GE_RevolutionXrd
vDX_GE_RevolutionXrd_Pres.m_Presentation = vInitialPresentation
vDX_GE_RevolutionXrd_Pres.m_Presentation.m_bHasOrientationCorrection = false
#------------------------------------------------------------------------------

#==============================================================================
# >> construct TOSHIBA  Aquilion CT w/l image scope LUT Validator
#==============================================================================

#------------------------------------------------------------------------------
vManufacturerElement_Toshiba.type                = TDicomElement
vManufacturerElement_Toshiba.m_ID                = vManufacturerNameElementID
vManufacturerElement_Toshiba.m_Value             = "TOSHIBA"
#------------------------------------------------------------------------------
vManufacturerScopeEntry_Toshiba.type             = TScopeEntry
vManufacturerScopeEntry_Toshiba.m_MatchWeight    = 100
vManufacturerScopeEntry_Toshiba.m_Elements.1     = vManufacturerElement_Toshiba
#------------------------------------------------------------------------------
vModelElement_Aquilion.type                          = TDicomElement
vModelElement_Aquilion.m_ID                          = vManufacturerModelNameElementID
vModelElement_Aquilion.m_Value                       = "Aquilion"
#------------------------------------------------------------------------------
vModelScopeEntry_Aquilion.type                       = TScopeEntry
vModelScopeEntry_Aquilion.m_MatchWeight              = 100
vModelScopeEntry_Aquilion.m_Elements.1               = vModelElement_Aquilion
#------------------------------------------------------------------------------
vScope_CT_Toshiba_Aquilion.type                      = TScope
vScope_CT_Toshiba_Aquilion.m_Entries.1               = vManufacturerScopeEntry_Toshiba
vScope_CT_Toshiba_Aquilion.m_Entries.2               = vModelScopeEntry_Aquilion
vScope_CT_Toshiba_Aquilion.m_Entries.3               = vCTImageScopeEntry
vScope_CT_Toshiba_Aquilion.m_Entries.1.m_MatchWeight = 100
vScope_CT_Toshiba_Aquilion.m_Entries.2.m_MatchWeight = 100
vScope_CT_Toshiba_Aquilion.m_Entries.3.m_MatchWeight = 100
#-----------------------------------------------------------------------------
# Original Presentation for CT Image Scope should use Full Range LUT Validator
#-----------------------------------------------------------------------------
aToshibaAquilionCTOriginalPres.type      = TOriginalPresentationOption
aToshibaAquilionCTOriginalPres.m_Usage   = eOriginalPresentationUsage
aToshibaAquilionCTOriginalPres.m_Scope   = vScope_CT_Toshiba_Aquilion
aToshibaAquilionCTOriginalPres.m_Options = vDefaultOriginalPresentation
aToshibaAquilionCTOriginalPres.m_Options.m_LutValidatorInfo.m_ValidatorType = eFullRangeLutValidation
------------------------------------------------------------------------------

#==============================================================================
# >> construct TOSHIBA  Aquilion CT w/l image scope LUT Validator
#==============================================================================

#------------------------------------------------------------------------------
vManufacturerElement_Toshiba_Mec.type                = TDicomElement
vManufacturerElement_Toshiba_Mec.m_ID                = vManufacturerNameElementID
vManufacturerElement_Toshiba_Mec.m_Value             = "TOSHIBA_MEC"
#------------------------------------------------------------------------------
vManufacturerScopeEntry_Toshiba_Mec.type             = TScopeEntry
vManufacturerScopeEntry_Toshiba_Mec.m_MatchWeight    = 100
vManufacturerScopeEntry_Toshiba_Mec.m_Elements.1     = vManufacturerElement_Toshiba_Mec
#------------------------------------------------------------------------------
vModelElement_MRT200PP5.type                          = TDicomElement
vModelElement_MRT200PP5.m_ID                          = vManufacturerModelNameElementID
vModelElement_MRT200PP5.m_Value                       = "MRT200PP5"
#------------------------------------------------------------------------------
vModelScopeEntry_MRT200PP5.type                       = TScopeEntry
vModelScopeEntry_MRT200PP5.m_MatchWeight              = 100
vModelScopeEntry_MRT200PP5.m_Elements.1               = vModelElement_MRT200PP5
#------------------------------------------------------------------------------
vScope_MR_TOSHMEC_MRT200PP5.type                      = TScope
vScope_MR_TOSHMEC_MRT200PP5.m_Entries.1               = vManufacturerScopeEntry_Toshiba_Mec
vScope_MR_TOSHMEC_MRT200PP5.m_Entries.2               = vModelScopeEntry_MRT200PP5
vScope_MR_TOSHMEC_MRT200PP5.m_Entries.3               = vMRImageScopeEntry
vScope_MR_TOSHMEC_MRT200PP5.m_Entries.1.m_MatchWeight = 100
vScope_MR_TOSHMEC_MRT200PP5.m_Entries.2.m_MatchWeight = 100
vScope_MR_TOSHMEC_MRT200PP5.m_Entries.3.m_MatchWeight = 100
#-----------------------------------------------------------------------------
# Original Presentation for CT Image Scope should use Full Range LUT Validator
#-----------------------------------------------------------------------------
aToshMecMRT200PP5OriginalPres.type      = TOriginalPresentationOption
aToshMecMRT200PP5OriginalPres.m_Usage   = eOriginalPresentationUsage
aToshMecMRT200PP5OriginalPres.m_Scope   = vScope_MR_TOSHMEC_MRT200PP5
aToshMecMRT200PP5OriginalPres.m_Options = vDefaultOriginalPresentation
aToshMecMRT200PP5OriginalPres.m_Options.m_LutValidatorInfo.m_ValidatorType = eFullRangeLutValidation
------------------------------------------------------------------------------

#==============================================================================
# >> construct the Siemens ARCADIS image scope presentation
#==============================================================================
vManufacturerElementSiemens.type				= TDicomElement
vManufacturerElementSiemens.m_ID				= vManufacturerNameElementID
vManufacturerElementSiemens.m_Value				= "SIEMENS"
#==============================================================================
vManufacturerScopyEntrySiemens.type				= TScopeEntry
vManufacturerScopyEntrySiemens.m_Elements.1		= vManufacturerElementSiemens
vManufacturerScopyEntrySiemens.m_MatchWeight	= 100
#==============================================================================
vModelElementARCADIS.type					= TDicomElement
vModelElementARCADIS.m_ID					= vManufacturerModelNameElementID
vModelElementARCADIS.m_Value				= "ARCADIS"
#==============================================================================
vModelScopeEntryARCADIS.type				= TScopeEntry
vModelScopeEntryARCADIS.m_Elements.1		= vModelElementARCADIS
vModelScopeEntryARCADIS.m_MatchWeight		= 100
#==============================================================================
vSiemensARCADISCRImageScope.type				= TScope
vSiemensARCADISCRImageScope.m_Entries.1		= vManufacturerScopyEntrySiemens
vSiemensARCADISCRImageScope.m_Entries.2		= vModelScopeEntryARCADIS
vSiemensARCADISCRImageScope.m_Entries.3		= vCRImageScopeEntry
vSiemensARCADISCRImageScope.m_Entries.3.m_MatchWeight	= 100
#==============================================================================

#==============================================================================
# Always use estimated W/L for CR images from Siemens ARCADIS modalities.
#==============================================================================
vSiemensARCADISCRImagePres.type			= TInitialPresentationOption
vSiemensARCADISCRImagePres.m_Usage       	= eInitialPresentationUsage
vSiemensARCADISCRImagePres.m_Scope       	= vSiemensARCADISCRImageScope
vSiemensARCADISCRImagePres.m_Presentation	= vInitialPresentation
vSiemensARCADISCRImagePres.m_Presentation.m_LutSelectionOption  = vDefaultLutSelectionIP
vSiemensARCADISCRImagePres.m_Presentation.m_LutSelectionOption.m_bSelectLinearFirst        = false
vSiemensARCADISCRImagePres.m_Presentation.m_LutSelectionOption.m_LinearLutSelectionType    = eVoiSelectNone
vSiemensARCADISCRImagePres.m_Presentation.m_LutSelectionOption.m_NonLinearLutSelectionType = eVoiSelectNone
vSiemensARCADISCRImagePres.m_Presentation.m_LutSelectionOption.m_bHasEstimator       		= true
vSiemensARCADISCRImagePres.m_Presentation.m_LutSelectionOption.m_Estimator  				= vDefaultLutIP
vSiemensARCADISCRImagePres.m_Presentation.m_Description   = "Always Estimate W/L Presentation for Siemens ARCADIS CR"
#==============================================================================

#==============================================================================
# LUT Estimator uses Gamma with gain = 0.8
#==============================================================================
vSiemensARCADISCRLutEstimator.type                                          = TScopedLut
vSiemensARCADISCRLutEstimator.m_Usage                                       = eInitialLutEstimatorUsage
vSiemensARCADISCRLutEstimator.m_Scope                                       = vSiemensARCADISCRImageScope
vSiemensARCADISCRLutEstimator.m_LutInfo                                     = vDefaultLutIP
vSiemensARCADISCRLutEstimator.m_LutInfo.m_Description                       = "Siemens ARCADIS CR image gamma corrected LUT estimator"
vSiemensARCADISCRLutEstimator.m_LutInfo.m_Range.m_LutRangeType              = eFullRange
vSiemensARCADISCRLutEstimator.m_LutInfo.m_Shape.m_ShapeType                 = eFunctionShape
vSiemensARCADISCRLutEstimator.m_LutInfo.m_Shape.m_Function                  = vGammaLutFunction
vSiemensARCADISCRLutEstimator.m_LutInfo.m_Shape.m_Function.m_parameters.1.m_ActualValue = 0.8


#------------------------------------------------------------------------------
# >> Construct HITACHI Altaire MR image scope
#------------------------------------------------------------------------------
vHITACHIManufacturerElement.type              = TDicomElement
vHITACHIManufacturerElement.m_ID              = vManufacturerNameElementID
vHITACHIManufacturerElement.m_Value           = "HITACHI MEDICAL CORPORATION"
#------------------------------------------------------------------------------
vHITACHIScopeEntry.type           = TScopeEntry
vHITACHIScopeEntry.m_MatchWeight  = 100
vHITACHIScopeEntry.m_Elements.1   = vHITACHIManufacturerElement
#------------------------------------------------------------------------------
vAltaireManufacturerModelElement.type     = TDicomElement
vAltaireManufacturerModelElement.m_ID     = vManufacturerModelNameElementID
vAltaireManufacturerModelElement.m_Value  = "Altaire"
#------------------------------------------------------------------------------
vAltaireScopeEntry.type           = TScopeEntry
vAltaireScopeEntry.m_MatchWeight  = 100
vAltaireScopeEntry.m_Elements.1   = vAltaireManufacturerModelElement
#------------------------------------------------------------------------------
vHITACHIAltaireMRImageScope.type                 	  = TScope
vHITACHIAltaireMRImageScope.m_Entries.1               = vHITACHIScopeEntry
vHITACHIAltaireMRImageScope.m_Entries.2               = vAltaireScopeEntry
vHITACHIAltaireMRImageScope.m_Entries.3               = vMRImageScopeEntry
vHITACHIAltaireMRImageScope.m_Entries.1.m_MatchWeight = 100
vHITACHIAltaireMRImageScope.m_Entries.2.m_MatchWeight = 100
vHITACHIAltaireMRImageScope.m_Entries.3.m_MatchWeight = 100
#------------------------------------------------------------------------------
vHITACHIAltaireMRImagePres.type           = TInitialPresentationOption
vHITACHIAltaireMRImagePres.m_Usage        = eInitialPresentationUsage
vHITACHIAltaireMRImagePres.m_Scope        = vHITACHIAltaireMRImageScope
vHITACHIAltaireMRImagePres.m_Presentation = vInitialPresentation
vHITACHIAltaireMRImagePres.m_Presentation.m_bHasOrientationCorrection = false
vHITACHIAltaireMRImagePres.m_Presentation.m_Description = "HITACHI Altaire MR"


#==============================================================================
# >> construct FUJIFILM Corporation FDXCSL CR images scope
#==============================================================================
vStationNameElementID.type				= TDicomElementID
vStationNameElementID.m_GroupID				= 0008
vStationNameElementID.m_ElementID			= 1010
vStationNameElementID.m_ValueIndex			= 0
vStationNameElementID.m_IndexInValue			= -1
#==============================================================================
vStationNameElement.type					= TDicomElement
vStationNameElement.m_ID					= vStationNameElementID
vStationNameElement.m_Value				= "FDXCSL"
#==============================================================================
vStationNameScopeEntry.type					= TScopeEntry
vStationNameScopeEntry.m_Elements.1				= vStationNameElement
#==============================================================================
#------------------------------------------------------------------------------
vManufacturerElement_FUJIFILM.type                = TDicomElement
vManufacturerElement_FUJIFILM.m_ID                = vManufacturerNameElementID
vManufacturerElement_FUJIFILM.m_Value             = "FUJIFILM Corporation"
#------------------------------------------------------------------------------
vManufacturerScopeEntry_FUJIFILM.type             = TScopeEntry
vManufacturerScopeEntry_FUJIFILM.m_MatchWeight    = 100
vManufacturerScopeEntry_FUJIFILM.m_Elements.1     = vManufacturerElement_FUJIFILM
#------------------------------------------------------------------------------
vFUJIFILM_FDXCSL_CR_ImageScope.type					= TScope
vFUJIFILM_FDXCSL_CR_ImageScope.m_Entries.1				= vStationNameScopeEntry
vFUJIFILM_FDXCSL_CR_ImageScope.m_Entries.2				= vManufacturerScopeEntry_FUJIFILM
vFUJIFILM_FDXCSL_CR_ImageScope.m_Entries.3				= vCRImageScopeEntry
vFUJIFILM_FDXCSL_CR_ImageScope.m_Entries.1.m_MatchWeight		= 100
vFUJIFILM_FDXCSL_CR_ImageScope.m_Entries.2.m_MatchWeight		= 100
vFUJIFILM_FDXCSL_CR_ImageScope.m_Entries.3.m_MatchWeight		= 100
#==============================================================================
# >> construct FUJIFILM Corporation FDXCSL CR image presentation orientation
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
aFUJIFILM_FDXCSL_CR_ImagePres.type                        =  TInitialPresentationOption
aFUJIFILM_FDXCSL_CR_ImagePres.m_Usage                     =  eInitialPresentationUsage
aFUJIFILM_FDXCSL_CR_ImagePres.m_Scope                     =  vFUJIFILM_FDXCSL_CR_ImageScope
aFUJIFILM_FDXCSL_CR_ImagePres.m_Presentation              =  vInitialPresentation
aFUJIFILM_FDXCSL_CR_ImagePres.m_Presentation.m_bHasOrientationCorrection = false
aFUJIFILM_FDXCSL_CR_ImagePres.m_Presentation.m_Description = "Siemens AXIOM_Artis no Orientation correction"
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~


#******************************************************************************
# >> Disable orientation correction for Carestream DRX-Revolution CR images [REI: 43576]
#******************************************************************************
vCarestreamHealthManufacturerElement.type                    = TDicomElement
vCarestreamHealthManufacturerElement.m_ID                    = vManufacturerNameElementID
vCarestreamHealthManufacturerElement.m_Value                 = "CARESTREAM HEALTH"
#--
vCarestreamHealthScopeEntry.type                             = TScopeEntry
vCarestreamHealthScopeEntry.m_Elements.1                     = vCarestreamHealthManufacturerElement
vCarestreamHealthScopeEntry.m_MatchWeight                    = 100
#------------------------------------------------------------------------------
vDrxRevolutionManufacturerModelElement.type                  = TDicomElement
vDrxRevolutionManufacturerModelElement.m_ID                  = vManufacturerModelNameElementID
vDrxRevolutionManufacturerModelElement.m_Value               = "DRX-REVOLUTION"
#--
vDrxRevolutionScopeEntry.type                                = TScopeEntry
vDrxRevolutionScopeEntry.m_Elements.1                        = vDrxRevolutionManufacturerModelElement
vDrxRevolutionScopeEntry.m_MatchWeight                       = 100
#------------------------------------------------------------------------------
vCarestreamHealthDrxRevolutionCrImageScope.type                       = TScope
vCarestreamHealthDrxRevolutionCrImageScope.m_Entries.1                = vCarestreamHealthScopeEntry
vCarestreamHealthDrxRevolutionCrImageScope.m_Entries.2                = vDrxRevolutionScopeEntry
vCarestreamHealthDrxRevolutionCrImageScope.m_Entries.3                = vCRImageScopeEntry
vCarestreamHealthDrxRevolutionCrImageScope.m_Entries.1.m_MatchWeight  = 100
vCarestreamHealthDrxRevolutionCrImageScope.m_Entries.2.m_MatchWeight  = 100
vCarestreamHealthDrxRevolutionCrImageScope.m_Entries.3.m_MatchWeight  = 100
#------------------------------------------------------------------------------
vCarestreamHealthDrxRevolutionCrImagePres.type                        = TInitialPresentationOption
vCarestreamHealthDrxRevolutionCrImagePres.m_Usage                     = eInitialPresentationUsage
vCarestreamHealthDrxRevolutionCrImagePres.m_Scope                     = vCarestreamHealthDrxRevolutionCrImageScope
vCarestreamHealthDrxRevolutionCrImagePres.m_Presentation              = vInitialPresentation
vCarestreamHealthDrxRevolutionCrImagePres.m_Presentation.m_bHasOrientationCorrection = false