Exemplo n.º 1
0
        /// <summary>
        /// Adds the lab test.
        /// </summary>
        /// <param name="labTestInfo">The lab test info.</param>
        /// <returns>A LabTest.</returns>
        public virtual LabTest AddLabTest(LabTestInfo labTestInfo)
        {
            var labTest = new LabTest {
                LabSpecimen = this
            };

            labTest.ReviseLabTestInfo(labTestInfo);
            _labTests.Add(labTest);

            NotifyItemAdded(() => LabTests, labTest);
            return(labTest);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Removes the lab test.
 /// </summary>
 /// <param name="labTest">The lab test.</param>
 public virtual void RemoveLabTest(LabTest labTest)
 {
     _labTests.Remove(labTest);
     NotifyItemRemoved(() => LabTests, labTest);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Adds the lab test.
        /// </summary>
        /// <param name="labTestInfo">The lab test info.</param>
        /// <returns>A LabTest.</returns>
        public virtual LabTest AddLabTest(LabTestInfo labTestInfo)
        {
            var labTest = new LabTest { LabSpecimen = this };
            labTest.ReviseLabTestInfo ( labTestInfo );
            _labTests.Add(labTest);

            NotifyItemAdded(() => LabTests, labTest);
            return labTest;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Removes the lab test.
 /// </summary>
 /// <param name="labTest">The lab test.</param>
 public virtual void RemoveLabTest(LabTest labTest)
 {
     _labTests.Remove(labTest);
     NotifyItemRemoved(() => LabTests, labTest);
 }
 private LabResult BuildLabResult( LabTest labTest, CodedConcept labTestResultNameCodedConcept, double value )
 {
     var labResult = new LabResultBuilder ()
         .WithLabTestResultNameCodedConcept ( labTestResultNameCodedConcept )
         .WithValue ( value ).Build ();
     labTest.AddLabResult ( labResult );
     Session.SaveOrUpdate ( labResult );
     return labResult;
 }