protected AimTemplateTreeValidTerm(StandardCodeSequence standardCodeSequence, bool defaultAnswer, string nextId, bool noMoreQuestions, List<StandardValidTerm> standardValidTerms) : base(standardCodeSequence, standardValidTerms) { DefaultAnswer = defaultAnswer; NextId = nextId; NoMoreQuestions = noMoreQuestions; }
protected AimTemplateTreeValidTerm(StandardCodeSequence standardCodeSequence, bool defaultAnswer, string nextId, bool noMoreQuestions, List <StandardValidTerm> standardValidTerms) : base(standardCodeSequence, standardValidTerms) { DefaultAnswer = defaultAnswer; NextId = nextId; NoMoreQuestions = noMoreQuestions; }
public CharacteristicQuantificationAllowedTerm( List <AimTemplateTreeCharacteristicQuantification> characteristicQuantifications, StandardCodeSequence standardCodeSequence, bool defaultAnswer, string nextId, bool noMoreQuestions, List <StandardValidTerm> standardValidTerms) : base(standardCodeSequence, defaultAnswer, nextId, noMoreQuestions, standardValidTerms) { CharacteristicQuantifications = characteristicQuantifications; }
private Dictionary <string, HashSet <int> > _sopInstanceUidAndFrameNumber; // if specified, annotation is created for these SOP Instances with the specified frame numbers only. The images must belong to the same series. public AimAnnotationCreationContext(AnnotationKind annotationKind, TemplateTree.StandardCodeSequence annotationTypeCode, TemplateTree.AimTemplateTree templateTree, int seriesNumber) { Platform.CheckForNullReference(annotationTypeCode, "annotationTypeCode"); Platform.CheckForNullReference(templateTree, "templateTree"); _annotationKind = annotationKind; _annotationTypeCode = annotationTypeCode; _templateTree = templateTree; _seriesNumber = seriesNumber; _includeCalculations = true; }
public CharacteristicQuantificationAllowedTerm( List<AimTemplateTreeCharacteristicQuantification> characteristicQuantifications, StandardCodeSequence standardCodeSequence, bool defaultAnswer, string nextId, bool noMoreQuestions, List<StandardValidTerm> standardValidTerms) : base(standardCodeSequence, defaultAnswer, nextId, noMoreQuestions, standardValidTerms) { CharacteristicQuantifications = characteristicQuantifications; }
private Dictionary<string, HashSet<int>> _sopInstanceUidAndFrameNumber; // if specified, annotation is created for these SOP Instances with the specified frame numbers only. The images must belong to the same series. #endregion Fields #region Constructors public AimAnnotationCreationContext(AnnotationKind annotationKind, TemplateTree.StandardCodeSequence annotationTypeCode, TemplateTree.AimTemplateTree templateTree, int seriesNumber) { Platform.CheckForNullReference(annotationTypeCode, "annotationTypeCode"); Platform.CheckForNullReference(templateTree, "templateTree"); _annotationKind = annotationKind; _annotationTypeCode = annotationTypeCode; _templateTree = templateTree; _seriesNumber = seriesNumber; _includeCalculations = true; }
public override bool Equals(object obj) { if (obj == null || !(obj is StandardCodeSequence)) { return(false); } StandardCodeSequence objCode = (StandardCodeSequence)obj; return(CodeValue == objCode.CodeValue && CodeMeaning == objCode.CodeMeaning && CodingSchemeDesignator == objCode.CodingSchemeDesignator && CodingSchemeVersion == objCode.CodingSchemeVersion); }
public static bool IsNullCodeSequence(StandardCodeSequence codeSequence) { if (codeSequence == null) { return(true); } if (codeSequence.CodeMeaning == AimAnnotationComponent.NullCodeValue.CodeMeaning && codeSequence.CodeValue == AimAnnotationComponent.NullCodeValue.CodeValue) { return(true); } return(false); }
public override int GetHashCode() { int hashCode = StandardCodeSequence == null ? "".GetHashCode() : StandardCodeSequence.GetHashCode(); if (StandardValidTerms != null) { CollectionUtils.ForEach(StandardValidTerms, term => { if (term != null) { hashCode ^= term.GetHashCode(); } }); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null || !(obj is StandardValidTerm)) { return(false); } StandardValidTerm validTerm = (StandardValidTerm)obj; return((StandardCodeSequence == null ? validTerm.StandardCodeSequence == null : StandardCodeSequence.Equals(validTerm.StandardCodeSequence)) && (StandardValidTerms == null ? validTerm.StandardValidTerms == null : CollectionUtils.Equal <StandardValidTerm>(StandardValidTerms, validTerm.StandardValidTerms, true))); }
public AimTemplateTreeAlgorithm( StandardCodeSequence standardCodeSequence, List <AimTemplateTreeAlgorithm> algorithmTypes, string description, string uniqueIdentifier, string algorithmName, string algorithmVersion, string mathMl) : base(standardCodeSequence.CodeValue, standardCodeSequence.CodeValue, standardCodeSequence.CodingSchemeDesignator, standardCodeSequence.CodingSchemeDesignator) { AlgorithmTypes = algorithmTypes; Description = description; UniqueIdentifier = uniqueIdentifier; AlgorithmName = algorithmName; AlgorithmVersion = algorithmVersion; MathMl = mathMl; }
public AimTemplateTreeAlgorithm( StandardCodeSequence standardCodeSequence, List<AimTemplateTreeAlgorithm> algorithmTypes, string description, string uniqueIdentifier, string algorithmName, string algorithmVersion, string mathMl) : base(standardCodeSequence.CodeValue, standardCodeSequence.CodeValue, standardCodeSequence.CodingSchemeDesignator, standardCodeSequence.CodingSchemeDesignator) { AlgorithmTypes = algorithmTypes; Description = description; UniqueIdentifier = uniqueIdentifier; AlgorithmName = algorithmName; AlgorithmVersion = algorithmVersion; MathMl = mathMl; }
public AimTemplateTreeAllowedTerm(StandardCodeSequence standardCodeSequence, bool defaultAnswer, string nextId, bool noMoreQuestions, List <StandardValidTerm> standardValidTerms) : base(standardCodeSequence, defaultAnswer, nextId, noMoreQuestions, standardValidTerms) { // Because the constructor isn't called during deserialization Initialize(new StreamingContext()); }
public StandardValidTerm(StandardCodeSequence standardCodeSequence, List<StandardValidTerm> standardValidTerms) { StandardCodeSequence = standardCodeSequence; StandardValidTerms = standardValidTerms; }
public AimTemplateTreeCalculationType(StandardCodeSequence standardCodeSequence, List<AimTemplateTreeAlgorithm> algorithms, List<StandardValidTerm> standardValidTerms) : base(standardCodeSequence, standardValidTerms) { AlgorithmTypes = algorithms; }
public StandardValidTerm(StandardCodeSequence standardCodeSequence, List <StandardValidTerm> standardValidTerms) { StandardCodeSequence = standardCodeSequence; StandardValidTerms = standardValidTerms; }
public AimTemplateTreeAllowedTerm(StandardCodeSequence standardCodeSequence, bool defaultAnswer, string nextId, bool noMoreQuestions, List<StandardValidTerm> standardValidTerms) : base(standardCodeSequence, defaultAnswer, nextId, noMoreQuestions, standardValidTerms) { // Because the constructor isn't called during deserialization Initialize(new StreamingContext()); }
public AimTemplateTreeCalculationType(StandardCodeSequence standardCodeSequence, List <AimTemplateTreeAlgorithm> algorithms, List <StandardValidTerm> standardValidTerms) : base(standardCodeSequence, standardValidTerms) { AlgorithmTypes = algorithms; }