Inheritance: AbstractTO
コード例 #1
0
ファイル: ObservationTO.cs プロジェクト: govtmirror/RAPTOR-1
 public ObservationTO(Observation mdo)
 {
     if (mdo == null)
     {
         return;
     }
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Recorder != null)
     {
         this.recorder = new AuthorTO(mdo.Recorder);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
 }
コード例 #2
0
ファイル: LabReportTO.cs プロジェクト: kunalkot/mdws
        public LabReportTO(LabReport report)
        {
            if (report == null)
            {
                return;
            }
            this.panel = new LabPanelTO(report.Panel);
            //if (report.Tests != null && report.Tests.Count > 0)
            //{
            //    tests = new LabTestArray(report.Tests);
            //}
            if (report.Result != null)
            {
                result = new LabResultTO(report.Result);
            }
            author = new AuthorTO(report.Author);
            caseNumber = report.CaseNumber;
            comment = report.Comment;
            if (report.Facility != null)
            {
                facility = new SiteTO(new mdo.Site(report.Facility.Id, report.Facility.Name));
            }
            id = report.Id;
            //Specimen = new LabSpecimenTO(report.Specimen);
            timestamp = report.Timestamp;
            title = report.Title;
            type = report.Type;
            text = report.Text;

            if (report.Specimen != null)
            {
                specimen = new LabSpecimenTO(report.Specimen);
            }
        }
コード例 #3
0
 public ProblemTO(Problem mdo)
 {
     this.id                = mdo.Id;
     this.status            = mdo.Status;
     this.providerNarrative = mdo.ProviderNarrative;
     this.onsetDate         = mdo.OnsetDate;
     this.modifiedDate      = mdo.ModifiedDate;
     this.exposures         = mdo.Exposures;
     this.noteNarrative     = mdo.NoteNarrative;
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
     if (mdo.OrganizationProperties != null && mdo.OrganizationProperties.Count > 0)
     {
         this.organizationalProperties = new TaggedTextArray(mdo.OrganizationProperties);
     }
 }
コード例 #4
0
ファイル: ObservationTO.cs プロジェクト: OSEHRA/mdws
 public ObservationTO(Observation mdo)
 {
     if (mdo == null)
     {
         return;
     }
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Recorder != null)
     {
         this.recorder = new AuthorTO(mdo.Recorder);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
 }
コード例 #5
0
        public RadiologyReportTO(RadiologyReport mdo)
        {
            if (null == mdo)
            {
                return;
            }

            this.id        = mdo.Id;
            this.title     = mdo.Title;
            this.timestamp = mdo.Timestamp;
            if (mdo.Author != null)
            {
                this.author = new AuthorTO(mdo.Author);
            }
            this.text = mdo.Text;
            if (mdo.Facility != null)
            {
                this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
            }
            this.status          = mdo.Status;
            this.cptCode         = mdo.CptCode;
            this.clinicalHx      = mdo.ClinicalHx;
            this.impression      = mdo.Impression;
            this.accessionNumber = mdo.AccessionNumber;
            this.caseNumber      = mdo.CaseNumber;
        }
コード例 #6
0
 public VitalSignTO(VitalSign mdo)
 {
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Recorder != null)
     {
         this.recorder = new AuthorTO(mdo.Recorder);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment    = mdo.Comment;
     this.value1     = mdo.Value1;
     this.value2     = mdo.Value2;
     this.units      = mdo.Units;
     this.qualifiers = mdo.Qualifiers;
 }
コード例 #7
0
ファイル: VitalSignTO.cs プロジェクト: OSEHRA/mdws
 public VitalSignTO(VitalSign mdo)
 {
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Recorder != null)
     {
         this.recorder = new AuthorTO(mdo.Recorder);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
     this.value1 = mdo.Value1;
     this.value2 = mdo.Value2;
     this.units = mdo.Units;
     this.qualifiers = mdo.Qualifiers;
 }
コード例 #8
0
        public LabReportTO(LabReport report)
        {
            if (report == null)
            {
                return;
            }
            this.panel = new LabPanelTO(report.Panel);
            //if (report.Tests != null && report.Tests.Count > 0)
            //{
            //    tests = new LabTestArray(report.Tests);
            //}
            if (report.Result != null)
            {
                result = new LabResultTO(report.Result);
            }
            author     = new AuthorTO(report.Author);
            caseNumber = report.CaseNumber;
            comment    = report.Comment;
            if (report.Facility != null)
            {
                facility = new SiteTO(new mdo.Site(report.Facility.Id, report.Facility.Name));
            }
            id = report.Id;
            //Specimen = new LabSpecimenTO(report.Specimen);
            timestamp = report.Timestamp;
            title     = report.Title;
            type      = report.Type;
            text      = report.Text;

            if (report.Specimen != null)
            {
                specimen = new LabSpecimenTO(report.Specimen);
            }
        }
コード例 #9
0
ファイル: ProblemTO.cs プロジェクト: OSEHRA/mdws
 public ProblemTO(Problem mdo)
 {
     this.id = mdo.Id;
     this.status = mdo.Status;
     this.providerNarrative = mdo.ProviderNarrative;
     this.onsetDate = mdo.OnsetDate;
     this.modifiedDate = mdo.ModifiedDate;
     this.exposures = mdo.Exposures;
     this.noteNarrative = mdo.NoteNarrative;
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
     if (mdo.OrganizationProperties != null && mdo.OrganizationProperties.Count > 0)
     {
         this.organizationalProperties = new TaggedTextArray(mdo.OrganizationProperties);
     }
 }
コード例 #10
0
ファイル: MedicationTO.cs プロジェクト: govtmirror/RAPTOR-1
        public MedicationTO(Medication mdo)
        {
            this.id             = mdo.Id;
            this.name           = mdo.Name;
            this.rxNum          = mdo.RxNumber;
            this.quantity       = mdo.Quantity;
            this.expirationDate = mdo.ExpirationDate;
            this.issueDate      = mdo.IssueDate;
            this.startDate      = mdo.StartDate;
            this.stopDate       = mdo.StopDate;
            this.orderId        = mdo.OrderId;
            this.status         = mdo.Status;
            this.refills        = mdo.Refills;
            this.isOutpatient   = mdo.IsOutpatient;
            this.isInpatient    = mdo.IsInpatient;
            this.isIV           = mdo.IsIV;
            this.isUnitDose     = mdo.IsUnitDose;
            this.isNonVA        = mdo.IsNonVA;
            this.lastFillDate   = mdo.LastFillDate;
            this.remaining      = mdo.Remaining;
            if (mdo.Facility != null)
            {
                this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
            }
            if (mdo.Provider != null)
            {
                this.provider = new AuthorTO(mdo.Provider);
            }
            this.cost           = mdo.Cost;
            this.sig            = mdo.Sig;
            this.type           = mdo.Type;
            this.additives      = mdo.Additives;
            this.solution       = mdo.Solution;
            this.rate           = mdo.Rate;
            this.route          = mdo.Route;
            this.dose           = mdo.Dose;
            this.instruction    = mdo.Instruction;
            this.comment        = mdo.Comment;
            this.dateDocumented = mdo.DateDocumented;
            if (mdo.Documentor != null)
            {
                this.documentor = new AuthorTO(mdo.Documentor);
            }
            this.detail     = mdo.Detail;
            this.schedule   = mdo.Schedule;
            this.daysSupply = mdo.DaysSupply;
            this.isImo      = mdo.IsImo;
            if (!String.IsNullOrEmpty(mdo.Hospital.Value))
            {
                this.hospital = new TaggedText(mdo.Hospital);
            }
            if (!String.IsNullOrEmpty(mdo.Drug.Value))
            {
                this.drug = new TaggedText(mdo.Drug);
            }

            this.isSupply = mdo.IsSupply;
        }
コード例 #11
0
 public AllergyTO(Allergy mdo)
 {
     this.allergenId   = mdo.AllergenId;
     this.allergenName = mdo.AllergenName;
     this.allergenType = mdo.AllergenType;
     if (mdo.Reactions != null)
     {
         this.reactions = new SymptomTO[mdo.Reactions.Count];
         for (int i = 0; i < mdo.Reactions.Count; i++)
         {
             this.reactions[i] = new SymptomTO(mdo.Reactions[i]);
         }
     }
     this.severity = mdo.Severity;
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Recorder != null)
     {
         this.recorder = new AuthorTO(mdo.Recorder);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
     if (mdo.DrugIngredients != null)
     {
         this.drugIngredients = new TaggedText[mdo.DrugIngredients.Count];
         int idx = 0;
         foreach (DictionaryEntry de in mdo.DrugIngredients)
         {
             this.drugIngredients[idx++] = new TaggedText(de);
         }
     }
     if (mdo.DrugClasses != null)
     {
         this.drugClasses = new TaggedText[mdo.DrugClasses.Count];
         int idx = 0;
         foreach (DictionaryEntry de in mdo.DrugClasses)
         {
             this.drugClasses[idx++] = new TaggedText(de);
         }
     }
 }
コード例 #12
0
ファイル: AllergyTO.cs プロジェクト: OSEHRA/mdws
 public AllergyTO(Allergy mdo)
 {
     this.allergenId = mdo.AllergenId;
     this.allergenName = mdo.AllergenName;
     this.allergenType = mdo.AllergenType;
     if (mdo.Reactions != null)
     {
         this.reactions = new SymptomTO[mdo.Reactions.Count];
         for (int i = 0; i < mdo.Reactions.Count; i++)
         {
             this.reactions[i] = new SymptomTO(mdo.Reactions[i]);
         }
     }
     this.severity = mdo.Severity;
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Recorder != null)
     {
         this.recorder = new AuthorTO(mdo.Recorder);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Location != null)
     {
         this.location = new HospitalLocationTO(mdo.Location);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
     if (mdo.DrugIngredients != null)
     {
         this.drugIngredients = new TaggedText[mdo.DrugIngredients.Count];
         int idx = 0;
         foreach (DictionaryEntry de in mdo.DrugIngredients)
         {
             this.drugIngredients[idx++] = new TaggedText(de);
         }
     }
     if (mdo.DrugClasses != null)
     {
         this.drugClasses = new TaggedText[mdo.DrugClasses.Count];
         int idx = 0;
         foreach (DictionaryEntry de in mdo.DrugClasses)
         {
             this.drugClasses[idx++] = new TaggedText(de);
         }
     }
 }
コード例 #13
0
 public LabReportTO(LabReport report)
 {
     Author = new AuthorTO(report.Author);
     CaseNumber = report.CaseNumber;
     Comment = report.Comment;
     if (report.Facility != null)
     {
         Facility = new SiteTO(new mdo.Site(report.Facility.Id, report.Facility.Name));
     }
     Id = report.Id;
     Specimen = new LabSpecimenTO(report.Specimen);
     Timestamp = report.Timestamp;
     Title = report.Title;
 }
コード例 #14
0
 public LabReportTO(LabReport report)
 {
     Author     = new AuthorTO(report.Author);
     CaseNumber = report.CaseNumber;
     Comment    = report.Comment;
     if (report.Facility != null)
     {
         Facility = new SiteTO(new mdo.Site(report.Facility.Id, report.Facility.Name));
     }
     Id        = report.Id;
     Specimen  = new LabSpecimenTO(report.Specimen);
     Timestamp = report.Timestamp;
     Title     = report.Title;
 }
コード例 #15
0
ファイル: ProblemTO.cs プロジェクト: govtmirror/RAPTOR-1
 public ProblemTO(Problem mdo)
 {
     if (mdo == null)
     {
         return;
     }
     this.resolvedDate = mdo.ResolvedDate;
     this.removed      = mdo.Removed;
     this.verified     = mdo.Verified;
     if (mdo.Comments != null && mdo.Comments.Count > 0)
     {
         Note[] noteComments = new Note[mdo.Comments.Count];
         mdo.Comments.CopyTo(noteComments, 0);
         this.comments = new TaggedNoteArray("comments", noteComments);
     }
     this.acuity            = new TaggedText(mdo.Acuity);
     this.id                = mdo.Id;
     this.status            = mdo.Status;
     this.providerNarrative = mdo.ProviderNarrative;
     this.onsetDate         = mdo.OnsetDate;
     this.modifiedDate      = mdo.ModifiedDate;
     this.exposures         = mdo.Exposures;
     this.noteNarrative     = mdo.NoteNarrative;
     this.priority          = mdo.Priority;
     this.resolvedDate      = mdo.ResolvedDate;
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     this.comment = mdo.Comment;
     if (mdo.OrganizationProperties != null && mdo.OrganizationProperties.Count > 0)
     {
         this.organizationalProperties = new TaggedTextArray(mdo.OrganizationProperties);
     }
     this.timestamp = mdo.Timestamp;
 }
コード例 #16
0
ファイル: SymptomTO.cs プロジェクト: monkeyglasses/mdws
 public SymptomTO(Symptom mdo)
 {
     this.id         = mdo.Id;
     this.name       = mdo.Name;
     this.isNational = mdo.IsNational;
     this.vuid       = mdo.Vuid;
     if (mdo.Type != null)
     {
         this.type = new ObservationTypeTO(mdo.Type);
     }
     if (mdo.Observer != null)
     {
         this.observer = new AuthorTO(mdo.Observer);
     }
     this.timestamp = mdo.Timestamp;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
 }
コード例 #17
0
 public MicrobiologyRpt(MicrobiologyReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     this.sample  = mdo.Sample;
     this.text    = mdo.Text;
 }
コード例 #18
0
ファイル: MicrobiologyRpt.cs プロジェクト: OSEHRA/mdws
 public MicrobiologyRpt(MicrobiologyReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     this.sample = mdo.Sample;
     this.text = mdo.Text;
 }
コード例 #19
0
 public NoteTO(Note mdoNote)
 {
     if (mdoNote == null) // || ((mdoNote.Id == null || mdoNote.Id == "") && mdoNote.ApprovedBy == null))
     {
         return;
     }
     this.id                 = mdoNote.Id;
     this.timestamp          = mdoNote.Timestamp;
     this.admitTimestamp     = mdoNote.AdmitTimestamp;
     this.dischargeTimestamp = mdoNote.DischargeTimestamp;
     this.localTitle         = mdoNote.LocalTitle;
     this.standardTitle      = mdoNote.StandardTitle;
     this.serviceCategory    = mdoNote.ServiceCategory;
     if (mdoNote.Author != null)
     {
         this.author = new AuthorTO(mdoNote.Author);
     }
     if (mdoNote.Location != null)
     {
         this.location = new HospitalLocationTO(mdoNote.Location);
     }
     // Why is this here? Site is not the same as location...
     //else if (!String.IsNullOrEmpty(mdoNote.SiteId.Id) || !String.IsNullOrEmpty(mdoNote.SiteId.Name))
     //{
     //    HospitalLocation hl = new HospitalLocation(mdoNote.SiteId.Id, mdoNote.SiteId.Name);
     //    this.location = new HospitalLocationTO(hl);
     //}
     this.text           = mdoNote.Text;
     this.hasAddendum    = mdoNote.HasAddendum;
     this.isAddendum     = mdoNote.IsAddendum;
     this.originalNoteID = mdoNote.OriginalNoteId;
     this.hasImages      = mdoNote.HasImages;
     if (mdoNote.ApprovedBy != null)
     {
         this.approvedBy = new AuthorTO(mdoNote.ApprovedBy);
     }
     this.status             = mdoNote.Status;
     this.type               = mdoNote.Type;
     this.signatureTimestamp = mdoNote.ProcTimestamp;
 }
コード例 #20
0
ファイル: SurgeryReportTO.cs プロジェクト: OSEHRA/mdws
 public SurgeryReportTO(SurgeryReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     this.text = mdo.Text;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     this.status = mdo.Status;
     this.specialty = new TaggedText(mdo.Specialty);
     this.preOpDx = mdo.PreOpDx;
     this.postOpDx = mdo.PostOpDx;
     this.labWork = mdo.LabWork;
     this.dictationTimestamp = mdo.DictationTimestamp;
     this.transcriptionTimestamp = mdo.TranscriptionTimestamp;
 }
コード例 #21
0
ファイル: SurgeryReportTO.cs プロジェクト: monkeyglasses/mdws
 public SurgeryReportTO(SurgeryReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     this.text = mdo.Text;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     this.status                 = mdo.Status;
     this.specialty              = new TaggedText(mdo.Specialty);
     this.preOpDx                = mdo.PreOpDx;
     this.postOpDx               = mdo.PostOpDx;
     this.labWork                = mdo.LabWork;
     this.dictationTimestamp     = mdo.DictationTimestamp;
     this.transcriptionTimestamp = mdo.TranscriptionTimestamp;
 }
コード例 #22
0
 public SurgicalPathologyRpt(SurgicalPathologyReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.clinicalHx  = mdo.ClinicalHx;
     this.description = mdo.Description;
     this.exam        = mdo.Exam;
     this.diagnosis   = mdo.Diagnosis;
     this.comment     = mdo.Comment;
 }
コード例 #23
0
ファイル: NoteTO.cs プロジェクト: OSEHRA/mdws
 public NoteTO(Note mdoNote)
 {
     if (mdoNote == null) // || ((mdoNote.Id == null || mdoNote.Id == "") && mdoNote.ApprovedBy == null))
     {
         return;
     }
     this.id = mdoNote.Id;
     this.timestamp = mdoNote.Timestamp;
     this.admitTimestamp = mdoNote.AdmitTimestamp;
     this.dischargeTimestamp = mdoNote.DischargeTimestamp;
     this.localTitle = mdoNote.LocalTitle;
     this.standardTitle = mdoNote.StandardTitle;
     this.serviceCategory = mdoNote.ServiceCategory;
     if (mdoNote.Author != null)
     {
         this.author = new AuthorTO(mdoNote.Author);
     }
     if (mdoNote.Location != null)
     {
         this.location = new HospitalLocationTO(mdoNote.Location);
     }
     else if (!String.IsNullOrEmpty(mdoNote.SiteId.Id) || !String.IsNullOrEmpty(mdoNote.SiteId.Name))
     {
         HospitalLocation hl = new HospitalLocation(mdoNote.SiteId.Id, mdoNote.SiteId.Name);
         this.location = new HospitalLocationTO(hl);
     }
     this.text = mdoNote.Text;
     this.hasAddendum = mdoNote.HasAddendum;
     this.isAddendum = mdoNote.IsAddendum;
     this.originalNoteID = mdoNote.OriginalNoteId;
     this.hasImages = mdoNote.HasImages;
     if (mdoNote.ApprovedBy != null)
     {
         this.approvedBy = new AuthorTO(mdoNote.ApprovedBy);
     }
     this.status = mdoNote.Status;
 }
コード例 #24
0
ファイル: ChemHemRpt.cs プロジェクト: OSEHRA/mdws
 public ChemHemRpt(ChemHemReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     if (mdo.Results != null)
     {
         this.results = new LabResultTO[mdo.Results.Length];
         for (int i = 0; i < mdo.Results.Length; i++)
         {
             this.results[i] = new LabResultTO(mdo.Results[i]);
         }
     }
     if (mdo.LabSites != null)
     {
         this.labSites = new SiteTO[mdo.LabSites.Count];
         int i = 0;
         foreach (DictionaryEntry de in mdo.LabSites)
         {
             this.labSites[i++] = new SiteTO((Site)de.Value);
         }
     }
 }
コード例 #25
0
 public ChemHemRpt(ChemHemReport mdo)
 {
     this.id        = mdo.Id;
     this.title     = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.comment = mdo.Comment;
     if (mdo.Results != null)
     {
         this.results = new LabResultTO[mdo.Results.Length];
         for (int i = 0; i < mdo.Results.Length; i++)
         {
             this.results[i] = new LabResultTO(mdo.Results[i]);
         }
     }
     if (mdo.LabSites != null)
     {
         this.labSites = new SiteTO[mdo.LabSites.Count];
         int i = 0;
         foreach (DictionaryEntry de in mdo.LabSites)
         {
             this.labSites[i++] = new SiteTO((Site)de.Value);
         }
     }
 }
コード例 #26
0
ファイル: CytologyRpt.cs プロジェクト: OSEHRA/mdws
 public CytologyRpt(CytologyReport mdo)
 {
     this.id = mdo.Id;
     this.title = mdo.Title;
     this.timestamp = mdo.Timestamp;
     if (mdo.Author != null)
     {
         this.author = new AuthorTO(mdo.Author);
     }
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Specimen != null)
     {
         this.specimen = new LabSpecimenTO(mdo.Specimen);
     }
     this.clinicalHx = mdo.ClinicalHx;
     this.description = mdo.Description;
     this.exam = mdo.Exam;
     this.diagnosis = mdo.Diagnosis;
     this.comment = mdo.Comment;
     this.supplementalRpt = mdo.SupplementalReport;
 }
コード例 #27
0
ファイル: MedicationTO.cs プロジェクト: OSEHRA/mdws
 public MedicationTO(Medication mdo)
 {
     this.id = mdo.Id;
     this.name = mdo.Name;
     this.rxNum = mdo.RxNumber;
     this.quantity = mdo.Quantity;
     this.expirationDate = mdo.ExpirationDate;
     this.issueDate = mdo.IssueDate;
     this.startDate = mdo.StartDate;
     this.stopDate = mdo.StopDate;
     this.orderId = mdo.OrderId;
     this.status = mdo.Status;
     this.refills = mdo.Refills;
     this.isOutpatient = mdo.IsOutpatient;
     this.isInpatient = mdo.IsInpatient;
     this.isIV = mdo.IsIV;
     this.isUnitDose = mdo.IsUnitDose;
     this.isNonVA = mdo.IsNonVA;
     this.lastFillDate = mdo.LastFillDate;
     this.remaining = mdo.Remaining;
     if (mdo.Facility != null)
     {
         this.facility = new TaggedText(mdo.Facility.Id, mdo.Facility.Name);
     }
     if (mdo.Provider != null)
     {
         this.provider = new AuthorTO(mdo.Provider);
     }
     this.cost = mdo.Cost;
     this.sig = mdo.Sig;
     this.type = mdo.Type;
     this.additives = mdo.Additives;
     this.solution = mdo.Solution;
     this.rate = mdo.Rate;
     this.route = mdo.Route;
     this.dose = mdo.Dose;
     this.instruction = mdo.Instruction;
     this.comment = mdo.Comment;
     this.dateDocumented = mdo.DateDocumented;
     if (mdo.Documentor != null)
     {
         this.documentor = new AuthorTO(mdo.Documentor);
     }
     this.detail = mdo.Detail;
     this.schedule = mdo.Schedule;
     this.daysSupply = mdo.DaysSupply;
     this.isImo = mdo.IsImo;
     if(!String.IsNullOrEmpty(mdo.Hospital.Value))
         this.hospital = new TaggedText(mdo.Hospital);
     if (!String.IsNullOrEmpty(mdo.Drug.Value))
         this.drug = new TaggedText(mdo.Drug);
 }