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; }
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); } }
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); } }
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; }
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; }
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; }
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); } } }
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; }
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; }
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); } }
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; }
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; }
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; }
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; }
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; }
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); } } }
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; }
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); }