Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="affectedEntity"></param>
 /// <param name="tag"></param>
 /// <param name="prefix"></param>
 /// <param name="initialValue"></param>
 /// <param name="increment"></param>
 /// <param name="fieldSize"></param>
 public TagValueAutoIncrement(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag, System.String prefix, int initialValue, int increment, int fieldSize)
     : base(affectedEntity, tag)
 {
     _prefix       = prefix;
     _initialValue = initialValue;
     _increment    = increment;
     _fieldSize    = fieldSize;
 }
Beispiel #2
0
        /// <summary>
        /// Update the default DICOM Tag Values grouped by the given affected entity.
        /// Any 'auto' default value in the affected entity will get it's next value.
        /// </summary>
        /// <param name="affectedEntity">Affected Entity enum - to update.</param>
        public void UpdateInstantiatedDefaultTagValues(AffectedEntityEnum affectedEntity)
        {
            foreach (BaseDicomTagValue defaultTagValue in _defaultDicomTagValues)
            {
                if (defaultTagValue.AffectedEntity == affectedEntity)
                {
                    // Try to get the instantiated default tag value
                    BaseDicomTagValue instantiatedDefaultTagValue = _instantiatedDefaultTagValues.Find(defaultTagValue.Tag);
                    if (instantiatedDefaultTagValue != null)
                    {
                        // Remove the existing tag value
                        _instantiatedDefaultTagValues.Remove(instantiatedDefaultTagValue);

                        // Add the updated value
                        // The Value property of defaultTagValue returns the next instantiated value based on the
                        // how the default value was defined at setup.
                        _instantiatedDefaultTagValues.Add(new DicomTagValue(defaultTagValue.Tag, defaultTagValue.Value));
                    }
                }
            }
        }
Beispiel #3
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="affectedEntity">Affected Entity</param>
 /// <param name="tag">Tag</param>
 public BaseDicomTagValue(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag)
 {
     _affectedEntity = affectedEntity;
     _tag = tag;
 }
Beispiel #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="affectedEntity"></param>
 /// <param name="tag"></param>
 /// <param name="root"></param>
 /// <param name="format"></param>
 public DicomTagValueAutoSetUid(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag, System.String root, int format)
     : base(affectedEntity, tag)
 {
     _root = root.TrimEnd('.');
     _format = format;
 }
Beispiel #5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="affectedEntity"></param>
 /// <param name="tag"></param>
 public DicomTagValueAutoSetTime(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag)
     : base(affectedEntity, tag)
 {
 }
Beispiel #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="affectedEntity"></param>
 /// <param name="tag"></param>
 /// <param name="prefix"></param>
 /// <param name="initialValue"></param>
 /// <param name="increment"></param>
 /// <param name="fieldSize"></param>
 public DicomTagValueAutoIncrement(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag, System.String prefix, int initialValue, int increment, int fieldSize)
     : base(affectedEntity, tag)
 {
     _prefix = prefix;
     _initialValue = initialValue;
     _increment = increment;
     _fieldSize = fieldSize;
 }
Beispiel #7
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="affectedEntity">Affected Entity</param>
 /// <param name="tag">Tag</param>
 public BaseTagValue(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag)
 {
     _affectedEntity = affectedEntity;
     _tag            = tag;
 }
Beispiel #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="affectedEntity"></param>
 /// <param name="tag"></param>
 public TagValueAutoSetTime(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag)
     : base(affectedEntity, tag)
 {
 }
Beispiel #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="affectedEntity"></param>
 /// <param name="tag"></param>
 /// <param name="root"></param>
 /// <param name="format"></param>
 public TagValueAutoSetUid(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag, System.String root, int format)
     : base(affectedEntity, tag)
 {
     _root   = root.TrimEnd('.');
     _format = format;
 }
Beispiel #10
0
 /// <summary>
 /// Update the default DICOM Tag Values grouped by the given affected entity.
 /// Any 'auto' default value in the affected entity will get it's next value.
 /// </summary>
 /// <param name="affectedEntity">Affected Entity enum - to update.</param>
 public void UpdateInstantiatedDefaultTagValues(AffectedEntityEnum affectedEntity)
 {
     _defaultValueManager.UpdateInstantiatedDefaultTagValues(affectedEntity);
 }
Beispiel #11
0
 /// <summary>
 /// Update the default DICOM Tag Values grouped by the given affected entity.
 /// Any 'auto' default value in the affected entity will get it's next value.
 /// </summary>
 /// <param name="affectedEntity">Affected Entity enum - to update.</param>
 public void UpdateInstantiatedDefaultTagValues(AffectedEntityEnum affectedEntity)
 {
     _defaultValueManager.UpdateInstantiatedDefaultTagValues(affectedEntity);
 }
Beispiel #12
0
        /// <summary>
        /// Update the default DICOM Tag Values grouped by the given affected entity.
        /// Any 'auto' default value in the affected entity will get it's next value.
        /// </summary>
        /// <param name="affectedEntity">Affected Entity enum - to update.</param>
        public void UpdateInstantiatedDefaultTagValues(AffectedEntityEnum affectedEntity)
        {
            foreach(BaseDicomTagValue defaultTagValue in _defaultDicomTagValues)
            {
                if (defaultTagValue.AffectedEntity == affectedEntity)
                {
                    // Try to get the instantiated default tag value
                    BaseDicomTagValue instantiatedDefaultTagValue = _instantiatedDefaultTagValues.Find(defaultTagValue.Tag);
                    if (instantiatedDefaultTagValue != null)
                    {
                        // Remove the existing tag value
                        _instantiatedDefaultTagValues.Remove(instantiatedDefaultTagValue);

                        // Add the updated value
                        // The Value property of defaultTagValue returns the next instantiated value based on the
                        // how the default value was defined at setup.
                        _instantiatedDefaultTagValues.Add(new DicomTagValue(defaultTagValue.Tag, defaultTagValue.Value));
                    }
                }
            }
        }