Exemplo n.º 1
0
        //
        // - Properties -
        //



        //
        // - Methods -
        //



        /// <summary>
        /// Do a static compare for the attribute sets supplied.
        ///
        /// Note that the parameters attributeSets, attributeSetDescriptions and compareFlagsForAttributeSets
        /// must have the same size and must be at least size 2.
        /// </summary>
        /// <param name="tableDescription">Description of the table.</param>
        /// <param name="attributeCollections">The attribute sets to compare with each other.</param>
        /// <param name="attributeCollectionDescriptions">The descriptions of the attribute sets.</param>
        /// <param name="flags">
        /// The compare flags that may be supplied. The following combination of flags may be supplied (using bitwise Or):
        /// - CompareFlags.None: when only supplying this flag, the attributes are only displayed and no compare is performed.
        /// - CompareFlags.Compare_present: a check is performed if all attributes with the same tag are present.
        /// - CompareFlags.Compare_values: a check is performed if all attributes with the same tag have the same values.
        /// - CompareFlags.Compare_VR: a check is performed if all attributes with the same tag have the same VR.
        /// </param>
        /// <returns>The results of the static compare presented as a table (that may be converted to HTML).</returns>
        public CompareResults CompareAttributeSets(String tableDescription, AttributeCollections attributeCollections, StringCollection attributeCollectionDescriptions, FlagsDicomAttribute flags)
        {
            CompareResults compareResults = null;

            for (int index = 0; index < attributeCollections.Count; index++)
            {
                (attributeCollections[index] as DicomAttributeCollection).Flags |= FlagsConvertor.ConvertToFlagsBase(flags);
            }

            compareResults = CompareAttributeSets(tableDescription, attributeCollections, attributeCollectionDescriptions);

            return(compareResults);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="attributeSetOnly">The actual collection of Dicom Attributes.</param>
 /// <param name="flagsDicomAttribute">The flags used for this collection.</param>
 internal DicomAttributeCollection(DvtkHighLevelInterface.Dicom.Other.AttributeSet attributeSetOnly, FlagsDicomAttribute flagsDicomAttribute)
 {
     this.attributeSetOnly = attributeSetOnly;
     Flags = FlagsConvertor.ConvertToFlagsBase(flagsDicomAttribute);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="hl7Tag">HL7 tag indicating the HL7 attribute to validate.</param>
        /// <param name="flagsHl7Attribute">The flag(s) indicating how to validate this HL7 Attribute.</param>
        public ValidationRuleHl7Attribute(Hl7Tag hl7Tag, FlagsHl7Attribute flagsHl7Attribute)
        {
            this.hl7Tag = hl7Tag;

            Flags = FlagsConvertor.ConvertToFlagsBase(flagsHl7Attribute);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="tagSequenceString">TagSequenceString indicating the Dicom attribute to validate.</param>
        /// <param name="flagsDicomAttribute">The flag(s) indicating how to validate this Dicom Attribute.</param>
        public ValidationRuleDicomAttribute(String tagSequenceString, FlagsDicomAttribute flagsDicomAttribute)
        {
            this.tagSequenceString = tagSequenceString;

            Flags = FlagsConvertor.ConvertToFlagsBase(flagsDicomAttribute);
        }
Exemplo n.º 5
0
 public Hl7AttributeCollection(Dvtk.Hl7.Messages.Hl7Message hl7MessageOnly, FlagsHl7Attribute flagsHl7Attribute)
 {
     this.hl7MessageOnly = hl7MessageOnly;
     Flags = FlagsConvertor.ConvertToFlagsBase(flagsHl7Attribute);
 }