public AimAnnotationCreationContext(AnnotationKind annotationKind, StandardCodeSequence annotationTypeCode, string name)
 {
     _annotationKind      = annotationKind;
     _annotationTypeCode  = annotationTypeCode;
     _annotationName      = name;
     _includeCalculations = true;
 }
        private User _user; // annotation creator's information

        #endregion Fields

        #region Constructors

        public AimAnnotationCreationContext(AnnotationKind annotationKind, StandardCodeSequence annotationTypeCode, string name)
        {
            _annotationKind = annotationKind;
            _annotationTypeCode = annotationTypeCode;
            _annotationName = name;
            _includeCalculations = true;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public AimAnnotationComponent(IDesktopWindow desktopWindow)
            : base(desktopWindow)
        {
            // TODO: 1. New default (-1) when UI is present for selecting the type;
            AnnotationType = 4; // NOTE: Setting annotation type triggers ontology loading

            _annotationTypeCode = this.AvailableAnnotationTypes[0];
        }
 public AimAnnotationComponent(IDesktopWindow desktopWindow)
     : base(desktopWindow)
 {
     if (AvailableAnnotationTypes.Count > 0)
     {
         _annotationTypeCode = AvailableAnnotationTypes[0];
     }
     AnnotationName = CreateDefaultAnnotationName();
 }
        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 Inference ToInference(StandardCodeSequence codeSequence)
 {
     return(codeSequence == null
                                 ? null
                                 : new Inference
     {
         CodeValue = codeSequence.CodeValue,
         CodeMeaning = codeSequence.CodeMeaning,
         CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
         CodingSchemeVersion = codeSequence.CodingSchemeVersion
     });
 }
 public static Calculation ToCalculation(StandardCodeSequence codeSequence)
 {
     return(codeSequence == null
                                 ? null
                                 : new Calculation
     {
         CodeValue = codeSequence.CodeValue,
         CodeMeaning = codeSequence.CodeMeaning,
         CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
         CodingSchemeVersion = codeSequence.CodingSchemeVersion
     });
 }
Пример #8
0
 public static AnatomicEntityCharacteristic ToAnatomicEntityCharacteristic(StandardCodeSequence codeSequence)
 {
     return(codeSequence == null
                                 ? null
                                 : new AnatomicEntityCharacteristic
     {
         CodeValue = codeSequence.CodeValue,
         CodeMeaning = codeSequence.CodeMeaning,
         CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
         CodingSchemeVersion = codeSequence.CodingSchemeVersion
     });
 }
 public static ImagingObservation ToImagingObservation(StandardCodeSequence codeSequence, string label)
 {
     return(codeSequence == null
                                 ? null
                                 : new ImagingObservation
     {
         CodeValue = codeSequence.CodeValue,
         CodeMeaning = codeSequence.CodeMeaning,
         CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
         CodingSchemeVersion = codeSequence.CodingSchemeVersion,
         Label = label
     });
 }
 public static AnatomicEntity ToAnatomicEntity(StandardCodeSequence codeSequence, string label)
 {
     return(codeSequence == null
                                 ? null
                                 : new AnatomicEntity
     {
         CodeValue = codeSequence.CodeValue,
         CodeMeaning = codeSequence.CodeMeaning,
         CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
         CodingSchemeVersion = codeSequence.CodingSchemeVersion,
         Label = label
     });
 }
Пример #11
0
		public static ImagingObservationCharacteristic ToImagingObservationCharacteristic(StandardCodeSequence codeSequence)
		{
			return codeSequence == null
					? null
					: new ImagingObservationCharacteristic
						{
							CodeValue = codeSequence.CodeValue,
							CodeMeaning = codeSequence.CodeMeaning,
							CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
							CodingSchemeVersion = codeSequence.CodingSchemeVersion
						};
		}
Пример #12
0
		public static bool IsAnnotationTypeVasari(StandardCodeSequence codeSequence)
    	{
    		return CollectionUtils.Contains(AnnotationTypeCodeSequencesVasari, p => p.Equals(codeSequence));
    	}
Пример #13
0
		public static Inference ToInference(StandardCodeSequence codeSequence)
		{
			return codeSequence == null
					? null
					: new Inference
						{
							CodeValue = codeSequence.CodeValue,
							CodeMeaning = codeSequence.CodeMeaning,
							CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
							CodingSchemeVersion = codeSequence.CodingSchemeVersion
						};
		}
Пример #14
0
 public StandardValidTerm(StandardCodeSequence standardCodeSequence)
 {
     _standardCodeSequence = standardCodeSequence;
     _standardValidTerms   = new List <StandardValidTerm>();
 }
 public StandardValidTerm(StandardCodeSequence standardCodeSequence)
 {
     _standardCodeSequence = standardCodeSequence;
     _standardValidTerms = new List<StandardValidTerm>();
 }
 public static ImagingObservation ToImagingObservation(StandardCodeSequence codeSequence, string label)
 {
     return codeSequence == null
             ? null
             : new ImagingObservation
                 {
                     CodeValue = codeSequence.CodeValue,
                     CodeMeaning = codeSequence.CodeMeaning,
                     CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
                     CodingSchemeVersion = codeSequence.CodingSchemeVersion,
                     Label = label
                 };
 }
 public static Calculation ToCalculation(StandardCodeSequence codeSequence)
 {
     return codeSequence == null
             ? null
             : new Calculation
                 {
                     CodeValue = codeSequence.CodeValue,
                     CodeMeaning = codeSequence.CodeMeaning,
                     CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
                     CodingSchemeVersion = codeSequence.CodingSchemeVersion
                 };
 }
 public static AnatomicEntity ToAnatomicEntity(StandardCodeSequence codeSequence, string label)
 {
     return codeSequence == null
             ? null
             : new AnatomicEntity
                 {
                     CodeValue = codeSequence.CodeValue,
                     CodeMeaning = codeSequence.CodeMeaning,
                     CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
                     CodingSchemeVersion = codeSequence.CodingSchemeVersion,
                     Label = label
                 };
 }
Пример #19
0
 public static ImagingObservationCharacteristic ToImagingObservationCharacteristic(StandardCodeSequence codeSequence)
 {
     return(codeSequence == null
                                 ? null
                                 : new ImagingObservationCharacteristic
     {
         CodeValue = codeSequence.CodeValue,
         CodeMeaning = codeSequence.CodeMeaning,
         CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
         CodingSchemeVersion = codeSequence.CodingSchemeVersion
     });
 }
Пример #20
0
		public static AnatomicEntityCharacteristic ToAnatomicEntityCharacteristic(StandardCodeSequence codeSequence)
		{
			return codeSequence == null
					? null
					: new AnatomicEntityCharacteristic
						{
							CodeValue = codeSequence.CodeValue,
							CodeMeaning = codeSequence.CodeMeaning,
							CodingSchemeDesignator = codeSequence.CodingSchemeDesignator,
							CodingSchemeVersion = codeSequence.CodingSchemeVersion
						};
		}
Пример #21
0
 public static bool IsAnnotationTypeVasari(StandardCodeSequence codeSequence)
 {
     return(CollectionUtils.Contains(AnnotationTypeCodeSequencesVasari, p => p.Equals(codeSequence)));
 }