/// <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; }
/// <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)); } } } }
/// <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; }
/// <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; }
/// <summary> /// /// </summary> /// <param name="affectedEntity"></param> /// <param name="tag"></param> public DicomTagValueAutoSetTime(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag) : base(affectedEntity, tag) { }
/// <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; }
/// <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; }
/// <summary> /// /// </summary> /// <param name="affectedEntity"></param> /// <param name="tag"></param> public TagValueAutoSetTime(AffectedEntityEnum affectedEntity, DvtkData.Dimse.Tag tag) : base(affectedEntity, tag) { }
/// <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; }
/// <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); }
/// <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)); } } } }